Would someone explain Save files (.rpgsave)?

Hey guys!


Please bear with me, as I'm a RM (and MV) newbie and this is also my first time posting here! BD


I'm planning on making a rolling-release game, so there will be frequent content / bugfix updates. The biggest problem here is preserving the players' savefiles, so they don't have to start a new game every time a chapter is added, or a tidbit is fixed.


From what I see, making a new version of the game does not inherently break any old saves.


So what does break the savefile?


What is actually contained in the savefile?
Two things I know of can break the save file:


1: Changing anything in the database. The save file only records the id's of things, so for example if the weapon at ID 1 was a pointy sticky and the party had that equipped, but then you change it to the sword Excalibur, then anyone who loads up that save will have the weapon Excalibur in their inventory.


2: Adding scripts/plug-ins. Many of them add new variables and those would not exist in the save file made before the script or plug-in was added, which will crash the game the first time the variable is referenced.


I'm sure there's more, but those are the ones I've seen that will affect save files.
Two things I know of can break the save file:


2: Adding scripts/plug-ins. Many of them add new variables and those would not exist in the save file made before the script or plug-in was added, which will crash the game the first time the variable is referenced.


I'm sure there's more, but those are the ones I've seen that will affect save files.

In regards to #2, that is only true if the developer of the plugin doesn't take the time to check if the variables are valid, and if not create them on the spot. For the most part I'd like to think a lot of the developers do, I know Yanfly does most of the time, as well as myself albeit I don't develop plugins anymore.


If you are actually curious what the save file contains, here is an uncompressed save file for a default new game, with a few items in the inventory: http://pastebin.com/iKEQfLY9
@bgillisp Alright, then I won't change any of the old stuff between versions.


@Liquidize Thanks for taking the time to upload that 😛


Thanks, guys! You're amazing.


This answers all my questions.

Original thread: https://forums.rpgmakerweb.com/threads/would-someone-explain-save-files-rpgsave.62634/