Dealing with savegame incompatibility & Steam

Question for anyone who has published on Steam.

I know that with MV, it's difficult to support allowing people to keep their saves when you make updates.

I would be okay with wiping peoples' saves when I update, as an alternative, but I want to avoid a situation where a player has a savegame from an older version which is incompatible.

I've got an option on my main menu to wipe saves, which at least makes the problem fixable, but this isn't ideal.

For anyone who has published on Steam; does "pushing" an update automatically wipe older saves? (because presumably Steam just overwrites the old install, including deleting the savegames in the folder?)

If not, has anyone here used a plugin which, I dunno, stripes the savegames with a version number for the game, and automatically deletes saves if the user loads up a newer version of the game? Something like that?

I have to assume people have found some solution to this murky area.
presumably Steam just overwrites the old install, including deleting the savegames in the folder?
On Windows, copying a folder onto a folder of the same name merges their contents. Also, if you've ever updated a game you have on Steam, you can see it's a differential download, just applying what has changed - it doesn't delete the program and re-download the entire thing.

You could assign one of the game's variables to the version number, then try to write a plugin for the load game function that kicks out of it depending on what that value is. I haven't tried this, so I don't know how far into the load process it goes before you can read variables. Perhaps one of the meta-variable plugins would work better.
your problem is not that the saves will be deleted - it is that the still existing save no longer works in the updated program. And that update is automatic unless the player specifically disables automatic updates.

However you can try what the editor itself does: use different beta settings for different program versions.

that way the player can select which version of the game to run, and go back to an older version if he wants to load an older save.
that way the player can select which version of the game to run, and go back to an older version if he wants to load an older save.

Hmmm...

Is there a list anywhere of what MV games will "tolerate" from a savegame perspective, with regards to updates?

Obviously the best thing is just to release a game which doesn't need any updates, but I'm not so arrogant as to think I'll nail that.
Yes, while I was answering your first post my Googling revealed several lists on threads in this forum of what can and can't be added to the game while keeping saves compatible.
Is there a list anywhere of what MV games will "tolerate" from a savegame perspective, with regards to updates?
not a direct list, but general programmers knowledge.

it basically comes down to "only" two things that cause problems, but those two are really big.

1) anything that changes any ID in the database
The savefile stores everything by ID, and if you started with your first item being a dagger and the player has purchased four daggers, then the savefile stores "4x itemID 1".
If you change your database so that item 1 is the godslayer sword and the savefile is loaded after that, the player will loose 4x dagger and gain 4x godslayer sword, because that is what now is itemid 1.

You can add new entries with new IDs, but you cannot remove or reorder existing IDs.


2) any plugin that adds data to the savefile
no matter if you add or remove such a plugin, it will change what is stored inside the file.
and the new set of plugins expects the saves to follow the new list of data, causing the "Typeerror" message that are so common when loading incompatible saves.

so - easy to describe, difficult to avoid changing in updates.
not a direct list, but general programmers knowledge.

Thanks; it seems like an approach which wipes saves is probably the only really viable way, otherwise you're going to have to be so careful it might be difficult to update stuff.
Moderator note: Moving to General Discussion

This question is not specific to commercial games, nor to MV.

Another solution could be to make your game detect when a save file from an older (incompatible) version is loaded, and do whatever changes are necessary to update it to match the current version. If the incompatibility is due to a new script/plugin, this would require some programming skills.
Moderator note: Moving to General Discussion

This question is not specific to commercial games, nor to MV.

Another solution could be to make your game detect when a save file from an older (incompatible) version is loaded, and do whatever changes are necessary to update it to match the current version. If the incompatibility is due to a new script/plugin, this would require some programming skills.

That's definitely beyond my level of programming ability.

My game is relatively short, and chapter-based, and I save unlocks etc. via a "meta-progress" save (via Olivia's plugin) when users complete a chapter (so they can start their next chapter or replay earlier chapters).

So I think, for my first update post-release, I'll just add a feature where if the user has older saves, they get wiped, but the meta-progress stays valid, so players will only lose a modest amount of progress through the game. This reduces possible corner cases.

Original thread: https://forums.rpgmakerweb.com/threads/dealing-with-savegame-incompatibility-steam.137055/