If I release an update of my game, how can my users update it without losing their game?

As the title says: I release an update of my game that includes some new maps and events, my users see it at my page and download it. How do they update the game that they had without losing it?

If you want specific information, just tell me.

It's urgent, please, somebody help me.

- Diego
How do they update the game that they had without losing it?

Do you mean the save game they had?
Yes. If it's possible...
The only way you can do that is
  1. Do not add any new plugins. You probably have experienced yourself that if you try using an old save file after installing a new plugin, you end up with a crash.
  2. Although you can add things to the data base, you cannot change what is already there without causing massive problems. They had 10 mega potions. You've now moved that to a different slot and use the original for something else e.g. item to remove sleep. That will have 10 sleep removers. They will not be pleased.
  3. Do not delete maps.
  4. Do not re-use switches and variables for something else. Use only new ones.
There could well be other things, these are just the ones that come instantly to mind.
Yeah, thank you! The community is awesome, especially moderators!!!
What Kes said covers most of the case, but there is one case I experienced before with this kind of "update". Your player saved his game inside a house, and the only way to get out of the house was through the door. However, I forgot to put a command Transfer Player for the door, so the player was stuck inside the house. And being aware of this, I released a patch which applying a Transfer Player command to the door, and gave the player "Mapxx.json" to fix it. However, the game did not update that map where the player was after the save, and I couldn't find a way to deal with this but to tell him to restart the game from the beginning.

Long story short, the game will not update any data of your current map where you save your game. It only updates if you leave that map and come back again. Be careful of this and try not to make your players stuck inside a map if you allow them to save there.
@JamesRyan - Actually, the game does update the map where you saved upon loading if conditions are met. The game checks the version of the game in the save file and the current game version (handled by the engine internally everytime you save in the editor) and calls for refreshing the current map data after loading the save file if those versions arent the same..

If your game doesnt, then a plugin you have or an edit to the JS files modified that behavior or the "patch" method you used was wrong.

Quite possibly, its because you only gave him the new Map json file which means the internal version of his game is still the same... If you have given him a new deployment instead of just that single map file, that would have caused his map to actually refresh upon loading and he wouldnt have lost his progress. Or you can try to find which game file has that data and include it into the "patch" in case you dont want to patch via full deployments.

IMHO, unless you know what you're doing, its better to use full deployment for updates/patches coz there are quite a few interlinks between the game files used by the engine. Or at least only leave the graphic/music assets out of your updates but include all other game files.
Quite possibly, its because you only gave him the new Map json file which means the internal version of his game is still the same... If you have given him a new deployment instead of just that single map file, that would have caused his map to actually refresh upon loading and he wouldnt have lost his progress. Or you can try to find which game file has that data and include it into the "patch" in case you dont want to patch via full deployments.

If i give the players the whole new deployment to paste their save files into, this is not really called an "update". People do not want to download the whole game again just for a some bug fixes, especially for those who have slow internet speed.
Let's use my problem as an example. I only add a command to an event in my game map to fix the bug, so besides the JSON of that map, what else should I give the player to make it load the new data?
Well that was the default way for updates for games made using the past makers especially for encrypted games made using the default encryption (because the encryption of older makers bundle the data files and the graphics into one file), so being old here, its kinda grown on me (especially since my games are very low file size anyway). Unless you use your own custom patching system, or simply dont encrypt the game so you can only update the data files without the graphics and music. They dont need to paste their saves into your new deployment, you paste the new deployment into their old files..

I admit its a bit file size hogging though esprcially if your game is huge.

As for the files you need, I havent checked yet which file has the versioning but if you include every file except for the graphics/music then you should be able to do it right without a very big patch file since its those resources that usually make the game big. But I think it would be somewhere on the xml file or something for the game.

Take note that this mostly applies to unencrypted games. If you have encryption in your game, the method will depend on how you encrypted your game files. Like does your encryption encrypt per file or does it bundle the files into a pack etc.
I only encrypt graphics and music files. I'm thinking of giving the players all JSON files and the XML one. At least the size of these files is light. Hope this will solve my problem.
If you want to go for a more meta approach you could release two versions, one with a “chapter select” or something of that nature.
Thank you guys for the help!

What Kes said covers most of the case, but there is one case I experienced before with this kind of "update". Your player saved his game inside a house, and the only way to get out of the house was through the door. However, I forgot to put a command Transfer Player for the door, so the player was stuck inside the house. And being aware of this, I released a patch which applying a Transfer Player command to the door, and gave the player "Mapxx.json" to fix it. However, the game did not update that map where the player was after the save, and I couldn't find a way to deal with this but to tell him to restart the game from the beginning.

Long story short, the game will not update any data of your current map where you save your game. It only updates if you leave that map and come back again. Be careful of this and try not to make your players stuck inside a map if you allow them to save there.

Thank you for the advice!!! I'll put that you can only save in an area that I will not change never.

Well that was the default way for updates for games made using the past makers especially for encrypted games made using the default encryption (because the encryption of older makers bundle the data files and the graphics into one file), so being old here, its kinda grown on me (especially since my games are very low file size anyway). Unless you use your own custom patching system, or simply dont encrypt the game so you can only update the data files without the graphics and music. They dont need to paste their saves into your new deployment, you paste the new deployment into their old files..

I admit its a bit file size hogging though esprcially if your game is huge.

As for the files you need, I havent checked yet which file has the versioning but if you include every file except for the graphics/music then you should be able to do it right without a very big patch file since its those resources that usually make the game big. But I think it would be somewhere on the xml file or something for the game.

Take note that this mostly applies to unencrypted games. If you have encryption in your game, the method will depend on how you encrypted your game files. Like does your encryption encrypt per file or does it bundle the files into a pack etc.

I will find out, thanks!
Or you can try to find which game file has that data and include it into the "patch" in case you dont want to patch via full deployments.
In MV, that is inside System.json
In MV, that is inside System.json
I think so...
Double-post notice: DiegoAngelGamer
It was actually a triple post. I have merged them for you this time.

If you want to add something, and no one has posted after you and it's less than 72 hours since your post, just use the Edit button and add any extra info/comment. If you want to quote more than one person, use the Multiquote Button, otherwise the forum software automatically creates a new post for each quote. Often you don't need to quote the person, just use @ followed by their username (which after a few letters you can select from the drop down list which appears) - like this @DiegoAngelGamer - and that will both make it clear who you are replying to, and notifiy them that you have mentioned them in this thread.
@Kes Oki doki!!!

Original thread: https://forums.rpgmakerweb.com/threads/if-i-release-an-update-of-my-game-how-can-my-users-update-it-without-losing-their-game.109853/