MZ Battle Test bug: is it fixable???

So, basically, I was trying to use the Battle Test feature to see if a sprite was placed right, but the music played was "Battle2" instead of a custom one:

1774117888963.png


This is weird, because I made sure the default battle music was none:
1774117945480.png

Weirdly, any music attempted to be played is also replaced by Battle2. Restarting MZ does nothing to fix it, nor testing other battles. Is there a fix?

Update:
So, I added a "Fadeout BGM" node above that Play BGM one from earlier, while changing the music, and now, any time I try testing a new fight, it's that new music that plays.

Is salvation possible
:rtear:

Update:
So, I added a "Fadeout BGM" node above that Play BGM one from earlier, while changing the music, and now, any time I try testing a new fight, it's that new music that plays.
Changing that new music after the Fadeout to None fixed it!

Changing that new music after the Fadeout to None fixed it!
Nevermind, it only works for that fight and makes the new music the one played everywhere no matter how I change it...

I have also checked and none of my plugins seem to modify audios... Anybody got a clue?
BGM music stands for Background music, which is what you hear on maps.

It's change "Battle BGM," but you can only change the Battle BGM before the battle starts and it can't be changed during battle.


Make sure you're saving/applying before doing a battle test as well.

And why not play the BGM you want to play by default?

Also, please don't double or triple post, just use the edit function to edit your original post.
to add to the above:
all those change commands change the settings in the map properties, and by default those are only loaded at the beginning of the battle. Changing them after the battle has started will NOT automatically make them work for the current battle, only for later ones.

However there is a script command to force the engine to update the settings during battle.
If you add that after a change of "battle BGM", then the new music will be used in the current battle.
Unfortunately I do not know that acript code for MZ, but hopefully this triggers the memory of someone else.
I don't fully understand what the issue is, but here's one possibility that could be a factor. Your Play BGM node doesn't run until the battle begins, which means after the "Emerges!" message is dismissed. This means the default battle BGM will start up, and then it'll switch to the BGM you wanted.

In other words: setting your BGM in the Turn 0 event is too late. You need to instead Change Battle BGM before the battle even starts (or use a plugin that binds BGMs to a troop).

This doesn't quite fit your scenario though, since your default BGM was none. But maybe it's part of your issue.

6 posts merged. In future, you can use the Edit button for quick updates. Thank you!

Moderator note: 6 posts merged. In future, you can use the View attachment 363320 button for quick updates. Thank you!
Thanks, I'll try to remember
to add to the above:
all those change commands change the settings in the map properties, and by default those are only loaded at the beginning of the battle. Changing them after the battle has started will NOT automatically make them work for the current battle, only for later ones.
Understood!

I have a last question, would you happen to know why it used to work before?
Understood!

I have a last question, would you happen to know why it used to work before?
My guy, you can't say understood then double post again 3 mins later lol.

Also, is the changing of Battle BGM music need for the actually game itself? You said you needed it to test sprite placement so really changing the battle BGM isn't a must epically if your doing it at the beginning.
My guy, you can't say understood then double post again 3 mins later lol.
That understood was for "Andar"'s tips. I didn't know pressing Enter could split quotes in half.

Also, is the changing of Battle BGM music need for the actually game itself? You said you needed it to test sprite placement so really changing the battle BGM isn't a must epically if your doing it at the beginning.
It was originally a test of the sprite change, but I realized the BGM problem halfway through.

And yes, it's needed, I don't think a boss fight should have the regular BGM i reserve for classic enemies...
That understood was for "Andar"'s tips. I didn't know pressing Enter could split quotes in half.


It was originally a test of the sprite change, but I realized the BGM problem halfway through.

And yes, it's needed, I don't think a boss fight should have the regular BGM i reserve for classic enemies...
Ah you'll get used to it.

So yeah, for testing purposes via the Battle test, the battle music shouldn't really matter.
It's just for testing purposes.

But for the actual game, if your regular battle theme is the classic one, then before the boss battle happens, just use the event command "Change Battle BGM" to the boss one and then again to revert it back to the classic one after the boss battle is done.

And that should solve the problem you're having.
I don't think a boss fight should have the regular BGM i reserve for classic enemies...
But a boss fight is almost always an evented fight, so simply place the change battle BGM command inside the map event, just before the battle processing of the boss fight - that way there is no problem because the problem is caused by the command in the troop instead of the map event.
But a boss fight is almost always an evented fight, so simply place the change battle BGM command inside the map event, just before the battle processing of the boss fight - that way there is no problem because the problem is caused by the command in the troop instead of the map event.
Yeah that's what I'm doing rn, but thanks again
But a boss fight is almost always an evented fight
I wonder if there are any real cases where this isn't true? I can't think of any; I did have a case in my game where I needed a different BGM for a random encounter and wrote custom code as a workaround, but that wasn't a boss, though it was plot-adjacent. (After a certain point, assassins start attacking you at random. It steps up in the final dungeon.)

Original thread: https://forums.rpgmakerweb.com/threads/battle-test-bug-is-it-fixable.182971/