Hello Everyone,
I have spent some time trying to find a good solution for saving game-data (e.g. save games) in a way that persists also after an update on itch.io.
So far my experiments on itch have revealed the following - and please correct me if I am wrong on this:
Any update of a game (even when uploading the same zip/build as an update), will put the game into a different domain (not sure if this is the right word). What I mean is, that any data stored in an indexedDB (afaik Unity also uses indexedDB to store playerprefs), will not be accessible after the update anymore because the browser treats this as a "new" instance the game.
This only leaves some unconvinient options to store playerdata:
- Host own user accounts. Players can create an account with a username, and the game will save game data on a 3rd party server. Players can retrieve their savegame by entering their username/password.
- Save-game-to-file. Players can export the savegame to XML/Json or an encrypted binary to their drive.
I have the feeling I am not seeing the obvious solution, or am understanding something fundamentally wrong with the way itch handles updates.
Thank you in advance,
The Dynamite Whale