How to maintain save files' integrity?

Hi, I'm a Newbie.

Yet, I'm developing an adult game which is still in its early production and people were kind enough to show me their support while it progresses. Therefore, I show those people versions of my development as time goes by. For example, now the game is at its V.0.04 and they have tried out the game's earlier versions. Subsequently, those kind people sometimes get pissed because every time I give them my newest version, the previous save loads wont work. The fact that they lost all progress and items becomes an issue for both me and them.​

I believe there's something wrong that I've been doing that I shouldn't do between update that's causing it. Here are the things that I habitually do each update; I've been:
  1. changing the game's title version constantly (E.g Orange V.004, Orange V.005, etc)
  2. adding new maps/assets here and there
  3. adding new sprites both with and without variables/switches
  4. editing the dialogue constantly between updates
  5. Adding plugins between updates
I read from discussions that there's a way to make the previous saves possible for newer deployments. If I may know, what change should I avoid so people are able to use my previous files?

I thank you very much in advance.
Sincererly,
A Noob.
It's unavoidable to wreck safe files with updates. Stuff like new maps or events are usually fine, but new plugins and the like will inevitably make safes incompatible.
It's unavoidable to wreck safe files with updates. Stuff like new maps or events are usually fine, but new plugins and the like will inevitably make safes incompatible.
I see. If I were to restrain myself and keep the plugins as they are, what other things should I avoid to make the save files compatible?
Sit and plan the game properly so you can decide the "final" plugin list that goes in the game so you dont add 2-3 plugins every time you sit and work on it, just stop releasing stuff like crazy, sit,plan and then do a proper beta test release which you then can improve.

Put a disclaimer that the game is in development and saves might and probably will flop, thats normal for beta/in dev games even if they dont, people have been warned.

Keep in mind even if you keep a set plugin list changing existing items/skills will screw up older saves as the changes wont apply.
Yep, what @BK-tdm said. Of course people are gonna be mad if you release a save breaking update every other week.
Sit and plan the game properly so you can decide the "final" plugin list that goes in the game so you dont add 2-3 plugins every time you sit and work on it, just stop releasing stuff like crazy, sit,plan and then do a proper beta test release which you then can improve.

Put a disclaimer that the game is in development and saves might and probably will flop, thats normal for beta/in dev games even if they dont, people have been warned.

Keep in mind even if you keep a set plugin list changing existing items/skills will screw up older saves as the changes wont apply.
Thank you very much. I will keep in mind that plugins are the ones that are most crucial not to change. 😍

Yep, what @BK-tdm said. Of course people are gonna be mad if you release a save breaking update every other week.
I appreciate that, especially that the game I'm working on is yet to be finished until 2026 (at least). I thank you guys for the precious heads up and information 😂
As was mentioned, your best bet is to try to plan things out better, so that you're not making breaking changes too frequently. Off the top of my head, here are some of the most likely culprits (in no particular order):
  • Changing actor data (traits, stats, class, etc) in the database. Actor data gets baked into the save file, so any changes that you make in your database won't properly take effect in a preexisting save. You can add new actors, but you can't change existing actors.
  • Making big changes to the map that the player last saved on. For example, if you rearrange the structure of the map, they might load the game and find themself stuck inside a wall or something.
  • Changing the ID of existing switches/variables. You can add new ones, but if you move around the ones that already exist, it could cause problems.
  • Expecting certain switches/variables to already be set (from some past event), when those switches/variables didn't used to exist in previous versions of the game.
  • Changing plugins around *can* cause problems, but it can also be fine. It just depends on the nature of the plugin.
Personally, if I were in your shoes (making a game with the expectation of frequent incremental updates/changes), I would probably create a system that allows the players to import old saves. It probably wouldn't really be that huge of an endeavor to whip something like that up. If your game is receiving enough support from your patrons, then it might be worth trying to commission something like that, in order to keep them happy.
As was mentioned, your best bet is to try to plan things out better, so that you're not making breaking changes too frequently. Off the top of my head, here are some of the most likely culprits (in no particular order):
  • Changing actor data (traits, stats, class, etc) in the database. Actor data gets baked into the save file, so any changes that you make in your database won't properly take effect in a preexisting save. You can add new actors, but you can't change existing actors.
  • Making big changes to the map that the player last saved on. For example, if you rearrange the structure of the map, they might load the game and find themself stuck inside a wall or something.
  • Changing the ID of existing switches/variables. You can add new ones, but if you move around the ones that already exist, it could cause problems.
  • Expecting certain switches/variables to already be set (from some past event), when those switches/variables didn't used to exist in previous versions of the game.
  • Changing plugins around *can* cause problems, but it can also be fine. It just depends on the nature of the plugin.
Personally, if I were in your shoes (making a game with the expectation of frequent incremental updates/changes), I would probably create a system that allows the players to import old saves. It probably wouldn't really be that huge of an endeavor to whip something like that up. If your game is receiving enough support from your patrons, then it might be worth trying to commission something like that, in order to keep them happy.
Thank you for the detailed explanation and information! I will keep in mind 5 of those potential culprits. I must admit that I have been doing point 2, 3, 4 and 5 (lol... no wonder).
Additionally, for your solid suggestion:
Yes, that would be the only feature/compensation I can give. So, in the past 2-3 updates, I've been giving them test-out saves of which position and status likely wouldnt be too far from where they'd gone. I'll be writing your points above in my personal notes 🙏
I suggest maintain a number of saves from the currently released game at various points in your game. Use them to test the backwards compatibility of new versions. Let them know upfront if older saves are not compatible.

I follow this strategy when dealing with older saves. (Note: I always version my saves. Makes the code so much easier to write)
  1. Can the older save be migrated perfectly? Do that and use it without telling the player
  2. Can the older save be salvaged albeit with some losses? Tell the player about the consequences and ask if they still want to continue.
  3. Is the older save deprecated and cannot be used? Tell about it both in your update notes and in the game itself.

Let me give you an example of the second point. When I implemented Steam achievements I started recording some extra information about what happens as you play the game. This information was used to determine when to unlock certain achievements. Saves made with the non-Steam version would not contain that extra information. A player in the Steam version can load a non-Steam save. Should that happen I tell them that the save was made using the non-Steam version and as a result some achievements might not unlock, do they want to continue?

Often it is more cost-effective to simply deprecate saves that can be salvaged. For players I get the feeling that saves being deprecated in unfinished in-development games is more understandable than for finished games. Make sure to let them know upfront. Communication is important here.

Good luck with your game~
@fazthestampede
First of all, it appears that some of your testers don't understand what alpha-testing really means.
Even in beta-testing people are warned (if they enter it from professional companies) that their progress will likely be erased before release, and the alpha-testing before is (as the posts above explained) worse than that, with most updates requiring new starts.

You should explain that to them in detail.

Second, that is where the "cheat codes" really come from - they were entered by the developers to allow them to speed through already tested game areas to the parts where they need current test data, exactly because even the developers don't want to waste time by repeatedly playing through their game a hundred times.

In RM-Games the solution is often to place either a chest with a cheat item or a teleport to a cheat map near the starting point, to be deleted just before the game is completed.
the cheat item would call a common event with different cheat options by show choice, the map would simply have different shops and teleports and chests with unlimited gold or items or so.

Just make such a cheat for the early testing to enable your alpha-testers (because they are NOT players) to speed through the part of the games they already have.
Just be warned that you can't do balance testing with the cheat active.
I suggest maintain a number of saves from the currently released game at various points in your game. Use them to test the backwards compatibility of new versions. Let them know upfront if older saves are not compatible.

I follow this strategy when dealing with older saves. (Note: I always version my saves. Makes the code so much easier to write)
  1. Can the older save be migrated perfectly? Do that and use it without telling the player
  2. Can the older save be salvaged albeit with some losses? Tell the player about the consequences and ask if they still want to continue.
  3. Is the older save deprecated and cannot be used? Tell about it both in your update notes and in the game itself.

Let me give you an example of the second point. When I implemented Steam achievements I started recording some extra information about what happens as you play the game. This information was used to determine when to unlock certain achievements. Saves made with the non-Steam version would not contain that extra information. A player in the Steam version can load a non-Steam save. Should that happen I tell them that the save was made using the non-Steam version and as a result some achievements might not unlock, do they want to continue?

Often it is more cost-effective to simply deprecate saves that can be salvaged. For players I get the feeling that saves being deprecated in unfinished in-development games is more understandable than for finished games. Make sure to let them know upfront. Communication is important here.

Good luck with your game~
Thank you very much!
Those are solid points and I'll be keeping those in mind. Yes, I took the saving issue for granted and I didn't communicate well with my players. In result, some were frustrated and I realize it could affect their interest in the long run. Therefore, I appreciate your insight and I'll be trying those 😤
@fazthestampede
First of all, it appears that some of your testers don't understand what alpha-testing really means.
Even in beta-testing people are warned (if they enter it from professional companies) that their progress will likely be erased before release, and the alpha-testing before is (as the posts above explained) worse than that, with most updates requiring new starts.

You should explain that to them in detail.

Second, that is where the "cheat codes" really come from - they were entered by the developers to allow them to speed through already tested game areas to the parts where they need current test data, exactly because even the developers don't want to waste time by repeatedly playing through their game a hundred times.

In RM-Games the solution is often to place either a chest with a cheat item or a teleport to a cheat map near the starting point, to be deleted just before the game is completed.
the cheat item would call a common event with different cheat options by show choice, the map would simply have different shops and teleports and chests with unlimited gold or items or so.

Just make such a cheat for the early testing to enable your alpha-testers (because they are NOT players) to speed through the part of the games they already have.
Just be warned that you can't do balance testing with the cheat active.
Oh that is a crazy good idea! Ive never thought of doing that til you suggested it. Ive seen developers doing that in their games but never have I thought it could be done in a creative way. Plus, thanks for the morale support
First of all, it appears that some of your testers don't understand what alpha-testing really means.
I could be wrong, but I suspect that they don't exactly consider themselves to be alpha testers. As far as I know, the current popular monetization model for indie adult games is basically to get people to subscribe on patr3on, in exchange for granting them access to the game (with periodic content updates). I would imagine that the subscribers moreso think of themselves as people who are paying for the right to see new "episodes" as they come out... rather than as people who are paying for the right to be guinea pigs.

While I could be wrong, I am assuming that that's more-or-less the type of operation that the OP has going on, in which case, it would likely be in their best interest to try to make the transition between updates as seamless as possible. Rather than viewing the patrons as alpha testers who should know better than to expect anything more, I would assume that the model is more successful when you view them as customers who are paying for a service.
I could be wrong, but I suspect that they don't exactly consider themselves to be alpha testers. As far as I know, the current popular monetization model for indie adult games is basically to get people to subscribe on patr3on, in exchange for granting them access to the game (with periodic content updates). I would imagine that the subscribers moreso think of themselves as people who are paying for the right to see new "episodes" as they come out... rather than as people who are paying for the right to be guinea pigs.

While I could be wrong, I am assuming that that's more-or-less the type of operation that the OP has going on, in which case, it would likely be in their best interest to try to make the transition between updates as seamless as possible. Rather than viewing the patrons as alpha testers who should know better than to expect anything more, I would assume that the model is more successful when you view them as customers who are paying for a service.
Both of the views above are correct because it depends on how the developer gives the narrative to their patrons. Due to mine being an adult themed game, the patrons expect a perfect transition and complete version in each update. So, all of your insights and suggestions have helped me a lot. I thank you so much!
:VXA2:

Original thread: https://forums.rpgmakerweb.com/threads/how-to-maintain-save-files-integrity.153876/