I added some code to interact with a sqlite3 database in my game.
I added some code like
get("score") -- returns 0, the default
set("score", 1)
get("score") -- returns 1 |
When I re run it, the data is gone.
get("score") -- returns 0 |
How to make this persistent? I tried creating a db with the same file name in the root directory of my project, but that didn't work.
Also, where is the database of the instance that is run by the Gideros Player stored? I'd like to edit/test some things manually.
I could find any related tutorials either.
People call me "underscore".
Comments
Still looking for a way to interact with those file locally.
The real path however, where you can find these files physically, outside Gideros SDK are different.
on Windows XP: C:\Documents and Settings\[YOUR USER NAME]\Local Settings\Temp\gideros\[YOUR APP NAME]
on Windows Vista and Windows 7: C:\Users\[YOUR USER NAME]\AppData\Local\Temp\gideros\[YOUR APP NAME]
on Mac OS X: $TMPDIR/gideros/[YOUR APP NAME]
Here's some reading material:
http://www.giderosmobile.com/forum/discussion/136/save-files
Likes: ___
Thank you! I was waiting for an answer to this for days!
I can not imagine other users who is more active than me (