I actually building a game that requires to create and save a file containing all of player’s data as he/she progress in the game (ie: score, level, money, etc.) …there is a question in my mind that i wanted to clear…
How about if a player who progress a lot in my game wanted to share the game’s apk on the other device using third party apps, will also the saved gamefile containing all of the players data transfer to the oyher device? …what if the other device install the game’s apk…will it also have the same progress as the player who really own the saved gamefile?..it it is possible, how to avoid it so that whenever the game’s apk shated to other device and install it, they will start in the beginning of the game?thanks!
The data you store using sys.save() will be stored outside of the apk and somewhere within the filesystem of your device. Installing the apk on another device will not bring with it any of the saved data.
Oh…thanks for the info…i know its like a silly question…but i just want it to be clear…coz i actually found some apk files before that contains a gamefile that when they install in the device, they already got a lot of money and powerful weapons that makes their gaming much easier… :’)
That sounds like a modified APK, which you can’t stop from happening. Someone could modify your APK to make it so when a new save data is created it is seeded with save data.
If you do want to make it so players can’t cheat like this you must make your game be always on server based and to not trust the game client at all, everything happens through server only.
I would believe that the best way to make gamedata persistent, would be to save it online someplace. Either run your own webservice, or use the Facebook API.