Hi all,
Im finishing my game, and I want to save some basic data (lives,level progress,...) of each user. Im using gamecenter and Google play services for leaderboards... Actually I save this data in a local .txt, but I want to put It online.
I have been looking for answers, in this fórum...and I have seen some methods REST based like firebase or kinvey, i decide start with firebase and gideros, but the plugin i have found have no authentication function ( was in a 2012 thread).
Someone of you have used firebase or kinvey. Do you recomend me another method for this basic operation.
Thanks a lot.
Comments
Likes: theone10
https://deluxepixel.com
Likes: theone10
Likes: theone10, SinisterSoft
I have reading saved games info and they have changed the system on July this year. Hope gideros plugin keep working.
About functionallity, sometimes will be nice some examples... Because what is key argument in the functions. I know data is the info you want to save. But if I want to save the content of two different variables, how I have to do? Save each variable in different key? :-?
Likes: theone10
Likes: theone10
Likes: theone10
https://deluxepixel.com
@sinistersoft thanks for the info, very useful. @pie is this what you refer?
Likes: theone10
https://deluxepixel.com
Likes: theone10
Thanks again guys
Likes: totebo
When raise login complete i do loadstate(0) and when raise the loaded listener, I do as @sinistersoft wrote Up there.. and when saving i do exactly the same example Code. It fails any of event listener I load a local string.
Now Im handling some conflicts...
Likes: totebo
So, if there is something you want to send to your service, if you are offline then queue it (store local file), then the next time the app loads/resumes (or timer) you re-attempt the POST or send attempt. I used this approach for storing high scores in a cross platform way, although I wrote a custom service and host it in amazon aws.
Likes: theone10
You can use one of those below methods or even combine all of them to increase security;
1-Be sure to code your own hash system or use any current one so even the files are altered in offline mode you can be aware of it and act according to it, use the online version, warn the user etc... Try to save information in two or more separate files. And link those files secretly together.
So much simple example not to be implemented in this way:(Just to give you idea)
Number of Characters of File A must be the beginning of file b
Number of characters of file B*Number of Characters of File A*10 must be the beginning of file C
So in any case whenever your program opens those files for reading let it check for this relation between files. If any alterations occurred take necessary action.
2-You can encrypt your files always.
3-Logical tests while reading your file data or inside the program. For example: no one can click to screen more than 10 times a second.
4-Obfuscate your code to false direct your pray. Name hp variable as mana, or name it directly something not meaningful even:D and try not to use order in your save file.
5-Encrypt your project.
Of course those things are all can be discovered and despite of all your efforts your file can be altered. But in any way it is fun to implement those for me at least
Likes: antix, theone10
http://giderosmobile.com/forum/discussion/comment/52127#Comment_52127
Likes: theone10