Does Android support love.filesystem?

Discuss any ports of LÖVE to different platforms.
Post Reply
Techron
Prole
Posts: 13
Joined: Fri Mar 06, 2015 11:06 pm

Does Android support love.filesystem?

Post by Techron » Mon Sep 19, 2016 12:53 am

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.

User avatar
bartbes
Sex machine
Posts: 4838
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: Does Android support love.filesystem?

Post by bartbes » Mon Sep 19, 2016 5:51 pm

Unsurprisingly, "Rar!" is exactly what a rar file starts with. Are you sure you've packaged the right file?
Cowardly acts and the eating of birds must not be the deeds of a Hero of Storms.

Techron
Prole
Posts: 13
Joined: Fri Mar 06, 2015 11:06 pm

Re: Does Android support love.filesystem?

Post by Techron » Mon Sep 19, 2016 6:58 pm

Yes because the .love works

User avatar
zorg
Party member
Posts: 1824
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: Does Android support love.filesystem?

Post by zorg » Thu Jan 12, 2017 8:47 pm

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.
Me and my stuff :3True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.

User avatar
raidho36
Party member
Posts: 1516
Joined: Mon Jun 17, 2013 12:00 pm

Re: Does Android support love.filesystem?

Post by raidho36 » Thu Jan 12, 2017 10:38 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests