Detecting previous version's save file?

Hello,

Is it possible to detect a previous version save file after an update? For example: my game is going to be updated to 1.3 and it will be using a whole new save file format and name for technical reasons. However I want to detect version 1.2 save file so that I can compensate the player, will the save file still be there once players update the game from 1.2 to 1.3?

I am being paranoid here and just need a confirmation because my game is dealing with in app purchases.

Thanks for the help!

  • Jeffrey Quek

@JeffreyQJr, the file your app saves in local drive will still be there when updated version of your app is installed on top of it.  However, if a user deletes/uninstalls v1.2 before installing v1.3, then the saved data from v1.2 will be lost.

Naomi

You can name your new settings file something different so they don’t overwrite and provide a conversion routine.   Personally though I would read the settings file and if one of my new keys was missing, I would convert it and then save it out.

@Naomi

Thanks for the confirmation. I will let people who bought the game know that they should reinstall it if they want the bonus before updating to 1.3.

@Rob Miracle

Hello, thanks again for replying to my question! A conversion is a good solution, but my old save system was a mess unfortunately. I didn’t plan properly before hand on my first release, and now I have learnt my lesson…

Thanks for the replies!

@JeffreyQJr, the file your app saves in local drive will still be there when updated version of your app is installed on top of it.  However, if a user deletes/uninstalls v1.2 before installing v1.3, then the saved data from v1.2 will be lost.

Naomi

You can name your new settings file something different so they don’t overwrite and provide a conversion routine.   Personally though I would read the settings file and if one of my new keys was missing, I would convert it and then save it out.

@Naomi

Thanks for the confirmation. I will let people who bought the game know that they should reinstall it if they want the bonus before updating to 1.3.

@Rob Miracle

Hello, thanks again for replying to my question! A conversion is a good solution, but my old save system was a mess unfortunately. I didn’t plan properly before hand on my first release, and now I have learnt my lesson…

Thanks for the replies!