Offline (local) persistent storage

Hey everyone. What do you use for persistent local storage? E.g. for saved games, user prefs, etc. on the device (not cloud).

I’ve been using the ICE library (ice.lua), but I’ve now had two beta testers tell me that they’ve suddenly lost all their saved games and user prefs. I can’t find any paths in my code that should even _remotely _cause this to happen, so I’m kinda stuck blaming the library.

And has anyone else had similar problems with ICE? What library do you use, and are you happy with it?

I am using the preference.lua (https://github.com/SatheeshJM/Lua-Preference-Library)

I generally json-encoded table into the ‘system.DocumentsDirectory’. So far, so good. No issues with it. You can also use the openSSL to encrypt the data.

I came across GGData…do people like that?

Personally I use the loadsave library. https://coronalabs.com/blog/2014/10/14/tutorial-saving-and-loading-lua-tables-with-json/

Nothing will help if they delete and reinstall the app however.

Rob

I am using the preference.lua (https://github.com/SatheeshJM/Lua-Preference-Library)

I generally json-encoded table into the ‘system.DocumentsDirectory’. So far, so good. No issues with it. You can also use the openSSL to encrypt the data.

I came across GGData…do people like that?

Personally I use the loadsave library. https://coronalabs.com/blog/2014/10/14/tutorial-saving-and-loading-lua-tables-with-json/

Nothing will help if they delete and reinstall the app however.

Rob