Updating savegame to follow updated scripts

I think there was a script that did this a while back, but I cannot find it at all now.


Basically, the default of the engine is that if you start the game, save, then modify a script and try to reload, the saved game doesn't recognize the changes in the script. This often caused crashes. The script I found a while back allowed the player to hit F12 on the main menu or something, and then the savegame would update to the newest scripts.


Does one exist, or was I imagining it?


If I was imagining it and one could be made, I would be very thankful 🙂
It might have been this script, it's the only one that comes to mind when it comes to updating save files.
Well, there is this:


http://forums.rpgmakerweb.com/index.php?/topic/18457-rgss3-object-reinitializer/?hl=save


It works by creating new instances of every object in the savefile, then copying over any instance variables from the objects in the savefile to ensure they have a full set of instance variables. This should work for most scripts, since the reason they break is because they are missing instance variables added by the new script and set up in 'initialize' which would not run normally run again on the object loaded from the savefile. Other scripts may still not be compatible with old saves (usually, ones dealing with saves themselves) and you will still run into issues if you remove a script which has a custom class anywhere in the save data that would no longer exist when you try to load.
Thanks! I just tried the script by reloading an old file, and it seems to stop party members following me after a couple of steps, oddly. Could there be an issue or reason for that that could be fixed, or is it a re-initialization problem?

Original thread: https://forums.rpgmakerweb.com/threads/updating-savegame-to-follow-updated-scripts.21734/