Page 1 of 1
Does Android support love.filesystem?
Posted: Mon Sep 19, 2016 12:53 am
by Techron
Hey guys. I am making an Android game and I am trying to make a save system. It works perfect on PC, but not so well on Android. For example: say I had a variable named levels1, and it was equal to love.filesystem.read("levels1"). If I do print("levels1") on PC, it will show that levels1 is equal to "true". But on android, it shows that it is equal to "Rar!♣♣6s♣♣♣♣♣♣♣". I really need help.
Re: Does Android support love.filesystem?
Posted: Mon Sep 19, 2016 5:51 pm
by bartbes
Unsurprisingly, "Rar!" is exactly what a rar file starts with. Are you sure you've packaged the right file?
Re: Does Android support love.filesystem?
Posted: Mon Sep 19, 2016 6:58 pm
by Techron
Yes because the .love works
Re: Does Android support love.filesystem?
Posted: Thu Jan 12, 2017 8:47 pm
by zorg
that doesn't mean squat though. For some people, 7zip compressed love files worked, and for others, they didn't. It's probably the OS's hand in this one. (or rather, whatever löve on each platform uses to decompress files)
Make sure you're compressing with a plain old zip compressor.
Re: Does Android support love.filesystem?
Posted: Thu Jan 12, 2017 10:38 pm
by raidho36
More specifically, you should use DEFLATE algorithm, which is pretty much guaranteed to be supported. LZMA and the like are also widely supported but may or may not actually be included.
On unrelated note, you really shouldn't use Rar. It proliferates proprietary standards and what's worse, it's not even widely supported format so people would often have to install additional software just to extract it. It's not even that good at the one thing it should be doing, there are faster and tighter open source compressors out there.