I have a preload scene at the very beginning of my game. In there I check if there is a save in slot 0, and then proceed to continue with the new user flow, or load the save.
What I'm trying to do is have a specific migration flow, when the save version are different.
Here is a and example case, I'd love if you could tell me how you would approach this:
(using an imaginary example of updating the player's profile name)
- During application startup in my Preload I check that the slot 0 has a save.
- I detect that this save is of version 1. I trigger my save migration process
- Player has Save with version 1. The custom Saver 'PlayerProfile' (Key "profile") has a variable PlayerName="Alex" in its data (PlayerProfileData)
- I want to change "Alex" to for example, "Migrated_Alex"
- I want to update the save file, and reapply all savers
To give more detail as to why I need to this: In some of my savers, some data format has changed. A List<int> is now a List<string>. Since the game is already out (Squeakross DEMO), I need to migrate that save to a new format. For now simple making sure that list is initialized to a default state is good enough.
Thanks, hope it makes sense!