Saving Causes Music Bug

So, I've just set up save points in my game! What fun! Unlike most games, the save points in my game are optional. They fully heal you and prompt you to save, sorta like a reminder to let you know that a big fight is coming up (as you can save any time in the menu).

Well, testing them out, they seem to work flawlessly, but I've run into a problem. Whenever I save using the save point, after choosing the file I wanna save to, it'll lag up for just a moment before playing the save sound effect. As soon as the sound starts, the music comes to a halt. Opening the menu will have the menu theme play, but this does not bring the music back when it's closed.

Most notably, the problem doesn't happen if I save through the menu, nor does it occur if I save through the menu first, then try saving with a save point. There's noticably less leg before the sound effect, so I think it has something to do with the game trying to load that file.

I don't know for sure what the issue is, but just in case my plugins have something to do with it, I've screenshotted them and included them in the post. Please let me know if you have a solution!
The exact same saving system I use for my current game, and have had no issues whatsoever. Best way to see if it's a plugin is by disabling them all and see if it still occurs. If no, turn them on 1 by 1 and test each time to see when the bug happens.
If it's not the plugins, check your eventing again.
The exact same saving system I use for my current game, and have had no issues whatsoever. Best way to see if it's a plugin is by disabling them all and see if it still occurs. If no, turn them on 1 by 1 and test each time to see when the bug happens.
If it's not the plugins, check your eventing again.
Even with all plugins off, the bug still occurs. I don't see anywhere where the eventing could cause this, but I'll post it just in case.
Version of RPG Maker MV?
Version of RPG Maker MV?
1.6.2.
version of project?
version of project?
I'm afraid I'm not familiar with project versions. Do you know where I can look to check that?
Also, the same happens in a completely new project?
Also, the same happens in a completely new project?
Just tested, no problems with a new project.

I have not tested this with any of my backups of this project, though, so they might have a clue.
Yes, even though you may have the latest version of MV, you actually need to update your projects manually in order for them to have the latest version. The update to MV which you get by downloading/installing the standalone, or possibly automatically if you're using steam, only updates the editor. All of your projects, unless you update them manually, will still be at the version of MV at the time you created the project.

To confirm, go into your project's folder, into the js folder, and open the rpg_core.js file in a text editor. On the first few lines, there will probably be a version number. If there isn't, it means your project is still at the very first version, 1.0.0

When you edit your maps and database, you're using the MV version. But when you play your game, you're using the project version, which could be quite a bit older, and still contain all the bugs that have been fixed since you created your project.

If you're not too far into it, and you confirm that your project has an older version, the easiest thing would be to create a brand new project and copy over everything from your current project except the js folder (and maybe the index.html file). Then redownload all your plugins to make sure you have the latest ones by each scripter, which will be compatible with the newer version of the core files.
Yes, even though you may have the latest version of MV, you actually need to update your projects manually in order for them to have the latest version. The update to MV which you get by downloading/installing the standalone, or possibly automatically if you're using steam, only updates the editor. All of your projects, unless you update them manually, will still be at the version of MV at the time you created the project.

To confirm, go into your project's folder, into the js folder, and open the rpg_core.js file in a text editor. On the first few lines, there will probably be a version number. If there isn't, it means your project is still at the very first version, 1.0.0

When you edit your maps and database, you're using the MV version. But when you play your game, you're using the project version, which could be quite a bit older, and still contain all the bugs that have been fixed since you created your project.

If you're not too far into it, and you confirm that your project has an older version, the easiest thing would be to create a brand new project and copy over everything from your current project except the js folder (and maybe the index.html file). Then redownload all your plugins to make sure you have the latest ones by each scripter, which will be compatible with the newer version of the core files.

Two things. Firstly, my project is 1.6.1, so it is an update behind. Transferring all my files sounds tedious, but if the difference in versions is the issue then it'll be worth the effort, so I may as well.

Secondly, I've got a lead! Ends up I do have a plugin that's causing problems: Himeworks' Menu Music plugin! I'm not sure if it's a bug with the plugin, or a bug with my eventing here (since I used a page to double up on tasks, it might be a problem). I'm going to double check and redownload the plugin to make sure it's up to date, but in the meantime please let me know if this event that I've included is the source of the problem.

EDIT: The plugin is updated, but the problem persists. I've also tested by removing the event that changes the music and creates the weather effect, which also does not fix the bug.

I have discovered that opening the menu at all causes the bug not to go through, so I think it's somehow tied to the Save Point opening the menu through means other than the menu button. Creating an event that opens the menu also causes the bug to occur.
do you have a link to the plugin? I don't know what it does, but are you meant to call the plugin command before changing the BGM or after? What is the purpose of the first two lines in your event? (ps - change that to a parallel process, so it runs before the map becomes visible)

Transferring files is really easy. Just copy the entire folders (apart from the js folder) and paste it into the new project, overwriting what's already there.

But I think you're right - spend some time trying to troubleshoot that plugin first.
do you have a link to the plugin? I don't know what it does, but are you meant to call the plugin command before changing the BGM or after? What is the purpose of the first two lines in your event? (ps - change that to a parallel process, so it runs before the map becomes visible)

Transferring files is really easy. Just copy the entire folders (apart from the js folder) and paste it into the new project, overwriting what's already there.

But I think you're right - spend some time trying to troubleshoot that plugin first.


This is the plugin.

You're supposed to call the plugin first, otherwise the plugin itself simply doesn't work.
Even with all plugins off, the bug still occurs.
Just a sanity check, if this is the case then why do you think the HIME plugin is causing the issue?
Just a sanity check, if this is the case then why do you think the HIME plugin is causing the issue?
I checked again with the plugins off and that time around fixed it. I guess when I checked the first time I must have skipped it somehow.
Update: Band Aid fix until I can find a better solution. I've made the save point events simply restart the song after saving, which seems to do the trick, though I'd prefer to find a better fix eventually.

Original thread: https://forums.rpgmakerweb.com/threads/saving-causes-music-bug.107262/