Sync Save Data

In RPG Maker, all of the game data is isolated within each save file.

This means that you can turn on a switch in one game, save the game, then load up another game, and see that the switch is still off.

However, there may be times when you want to turn on a switch in one game and have it turn on for other games as well. In particular, you might want to be able to be able to record the value of this switch during the title screen.

With this plugin, you can specify that certain data will be “synchronized”, which means if you change the value in one game, all other save files as well as the title screen will be affected as long as you save the game.

Note that data will only be synchronized during the save process. Simply turning on a switch does not mean it will be turned on everywhere else.

Download

Plugin: download here (right-click, save-as)

Installation

Download ths plugin and place it in the “plugins” folder in your project’s “js” folder. Then open your Plugin Manager (F10), double-click an empty row, and select the HIME_SyncSaveData plugin.

Once it is in your list of plugins, turn the plugin on.

Usage

Currently, only switches and variables can be synchronized.

Synchronize Switches

To synchronize switches, go to the “Control Switches” event command and select a switch. Then, rename the switches that should be synchronized with a [S] in front. For example:

[S] My Switch

When you save your game, all switches with an [S] in their name will be automatically synchronized. You can verify that the sync works when you load a different save file and check the value of the switch.

syncSaveData2

Synchronize Variables

To synchronize variables, go to the “Control Variables” event command and
select a variable. Then rename the variable with a [S] in front.

[S] My Variable

syncSaveData3

Manual Synchronization

By default, whenever you save or load the game, all sync data will be
automatically saved or loaded.

You can manually perform the synchronization using script calls:

DataManager.saveSyncData()

This will save all of the sync data, which will be applied to any other
save file upon loading.

You can also load the sync data manually:

DataManager.syncData()

You may also like...

38 Responses

  1. Timothyunode says:

    Ищете профессиональных грузчиков, которые справятся с любыми задачами быстро и качественно? Наши специалисты обеспечат аккуратную погрузку, транспортировку и разгрузку вашего имущества. Мы гарантируем грузчики в самаре недорого, внимательное отношение к каждой детали и доступные цены на все виды работ.

  2. Extraproxies says:

    An outstanding share! I have just forwarded this onto a coworker who was conducting a little homework on this. And he actually bought me breakfast due to the fact that I stumbled upon it for him… lol. So allow me to reword this…. Thank YOU for the meal!! But yeah, thanx for spending time to discuss this issue here on your web page.

  3. StevenOvems says:

    Уникальные фото различных тематик https://pro-dachnikov.com

  4. Hi, Neat post. There is an issue along with your website in internet explorer, could test this?IE still is the marketplace leader and a large part of people will miss your wonderful writing because of this problem.

  5. Haircuts says:

    Good day! Would you mind if I share your blog with my facebook group? There’s a lot of people that I think would really enjoy your content. Please let me know. Cheers

  6. I think one of your advertisings caused my internet browser to resize, you might want to put that on your blacklist.

  7. Haircuts says:

    One thing I’d prefer to say is that car insurance canceling is a dreadful experience so if you’re doing the correct things as being a driver you’ll not get one. Some people do get the notice that they have been officially dropped by their own insurance company and many have to struggle to get more insurance after a cancellation. Inexpensive auto insurance rates are frequently hard to get after having a cancellation. Knowing the main reasons regarding auto insurance canceling can help motorists prevent burning off one of the most significant privileges offered. Thanks for the strategies shared through your blog.

  8. Trasha says:

    Heya i am for the first time here. I found this board and I find It truly useful & it helped me out much.
    I hope to give something back and help others like
    you helped me.

  9. Way cool! Some very valid points! I appreciate you writing this write-up plus the rest of the site is also very good.

  10. Hi, I do believe this is an excellent blog. I stumbledupon it 😉 I may return once again since I book-marked it. Money and freedom is the best way to change, may you be rich and continue to help others.

  11. Halie says:

    Very good information. Lucky me I ran across your website by accident
    (stumbleupon). I’ve saved as a favorite for later!

  12. Adams says:

    Thanks for ones marvelous posting! I genuinely enjoyed reading it, you
    could be a great author.I will always bookmark your blog and may come
    back sometime soon. I want to encourage you to definitely continue your great work, have a
    nice evening!

  13. Hairstyles says:

    I’m so in love with this. You did a great job!!

  14. I ‘m fairly certain that you’re bang on with this.

  15. Anonymous says:

    Hi thanks! This may work for a Post-game content option I’m trying to do! I can contact you with my game when it’s finished, but it’ll be a good ways from now.

  16. Anonymous says:

    idk if ull see this but ive noticed even with the datamanage.syncdata that it still wont load my synced switches on the title screen

  17. Anonymous says:

    I am trying to make custome save/load system.. 9With Choices) so i use these commands:

    Save =
    //$gameSystem.onBeforeSave();
    //if (DataManager.saveGame(1)) {
    // StorageManager.cleanBackup(1); }

    Load =
    //if (DataManager.loadGame(1)) {
    //$gamePlayer.reserveTransfer($gameMap.mapId(), $gamePlayer.x, $gamePlayer.y);
    // $gamePlayer.requestMapReload();
    //SceneManager.goto(Scene_Map); }

    Is this plugin OK for these Commands.. I cant make it to work!

  18. Anonymous says:

    I am trying to make custome save/load system.. 9With Choices) so i use these commands:

    Save =
    $gameSystem.onBeforeSave();
    if (DataManager.saveGame(1)) {
    StorageManager.cleanBackup(1); }

    Load =
    if (DataManager.loadGame(1)) {
    $gamePlayer.reserveTransfer($gameMap.mapId(), $gamePlayer.x, $gamePlayer.y);
    $gamePlayer.requestMapReload();
    SceneManager.goto(Scene_Map); }

    Is this plugin OK for these Commands.. I cant make it to work!

  19. Anonymous says:

    Is there a way i can only effect 1 saveslot instead of all?

  20. duybakhiast says:

    Make this for VX Ace,please !!!!

  21. hee says:

    Great! I have difficulty using it because I do not know English, but I will use it really useful.
    This used a translator. Thank you for your effort.

  22. Christian Selberg says:

    OMG! i could make an achievement system just based on this! just have a switch condition turn on if lets say if variable 100 zombies killed, zombie hunter achievement gained, and on next game have condition string before game start if certain achievement is earned, the player gains a skill against zombies or something like that and make more conditions running depending on if its on or not or so.. x)

  23. Phoenix says:

    This might sound like a stupid question…but will this script work on RPG Maker VX Ace?

  24. Trak says:

    Hey, I just wanted to ask, is there any way to force the game to synchronize the Save without saving the game data?
    Like through a script command of sorts?

    • Hime says:

      You can try the script call

      DataManager.syncData();
      

      It is basically what I use during the save process.

      • Trak says:

        I uh, tried that.

        I doesn’t crash with a script error, but upon resetting the game the Variable I have set up for testing purposes resets back to 0.
        It does have the prefix too.

  25. Anonymous says:

    UNDERTALEEE <3 THANKS HIME :3

  26. EGT Games says:

    Thank you, I’ve been looking for a way to have a NG+ feature but everything I came across was really poor, or didn’t work at all. This works great, and seems really stable.

    @EGT_Games

Leave a Reply to Hime Cancel reply

Your email address will not be published. Required fields are marked *