MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,876
Reaction score
4,816
First Language
English
Primarily Uses
RMMZ
@Nerine Yes, of course! You can share the fix here for everyone to see. It might take while before I release an official fix since the end of my university semester is approaching.
 

Username0987

Warper
Member
Joined
Apr 22, 2021
Messages
2
Reaction score
0
First Language
Polish
Primarily Uses
RMMZ
@MushroomCake28 Could you please fix the bug that when player returns to Main Menu, the BGM is still playing?
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,876
Reaction score
4,816
First Language
English
Primarily Uses
RMMZ
@MushroomCake28 Could you please fix the bug that when player returns to Main Menu, the BGM is still playing?
If you're referring to the Title screen, that bug should be fixed in the latest version if I recall correctly. If not I'll fix it in the next version.
 

Arpy_G

JRPGs are life
Member
Joined
Mar 13, 2021
Messages
14
Reaction score
7
First Language
English
Primarily Uses
RMMZ
I am so happy you have put the time in to add a spatial audio system to RPG Maker!!! I am new to RPG Maker, but this will be the first plugin I try to use A LOT of. Thank you for thinking of the music!
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,876
Reaction score
4,816
First Language
English
Primarily Uses
RMMZ
I am so happy you have put the time in to add a spatial audio system to RPG Maker!!! I am new to RPG Maker, but this will be the first plugin I try to use A LOT of. Thank you for thinking of the music!
Thanks! Glad I could help! I would recommend to sometimes check this thread since I do have some bugs to iron out. I'll post updates from times to times.
 

Username0987

Warper
Member
Joined
Apr 22, 2021
Messages
2
Reaction score
0
First Language
Polish
Primarily Uses
RMMZ
@MushroomCake28 If you're referring to the Title screen, that bug should be fixed in the latest version if I recall correctly. If not I'll fix it in the next version.
The bug still occurs.
Description:
BGM assigned to any channel still plays when player returns to the Title.
Steps to reproduce
1. Open the RPG Maker MZ
2. Make event with Plugin Command: MUSH_Audio_Engine, Play BGM
3. Assign any bgm file, channel, Auto Remover = true, Interrupt = Pause
4. Test the game
5. Trigger the event
6. Return to the Title menu
7. Notice that BGM is still playing (Reproduction 5/5)
Expected Result
When player returns to the Title, the BGM fade out.
 

Featherbrain

Prehistoric Gamer
Veteran
Joined
Jan 12, 2020
Messages
134
Reaction score
284
First Language
English
Primarily Uses
RMMV
The bug still occurs.
Description:
BGM assigned to any channel still plays when player returns to the Title.
Steps to reproduce
1. Open the RPG Maker MZ
2. Make event with Plugin Command: MUSH_Audio_Engine, Play BGM
3. Assign any bgm file, channel, Auto Remover = true, Interrupt = Pause
4. Test the game
5. Trigger the event
6. Return to the Title menu
7. Notice that BGM is still playing (Reproduction 5/5)
Expected Result
When player returns to the Title, the BGM fade out.

To stop all Mush BGM/BGS when going to title screen, try adding the following code snippet to the end of the plugin. I added this for the MV conversion, I have not double checked the MZ source code to verify the commandToTitle() function works the same, but I assume this will work for MZ too:

JavaScript:
//==============================================================================================================
// * 5.05 : Scene GameEnd
//==============================================================================================================

Mush.alias.Scene_GameEnd_CommandToTitle = Scene_GameEnd.prototype.commandToTitle;
Scene_GameEnd.prototype.commandToTitle = function() {
    Mush.alias.Scene_GameEnd_CommandToTitle.call(this);
    AudioManager.stopAllMushBgm(0);
    AudioManager.stopAllMushBgs(0);
};

Is there a way to modify a volume of already running track?

Good question. There's no dedicated way, and I'm not sure calling the play Mush BGM to play the same track with the same channel will work (it might work, but it'll probably throw an error).

Someone was asking about this functionality for the MV conversion, and it does seem like a good functionality to have. I haven't really looked into this yet but apparently calling the play command again with new parameters doesn't do it. No pressure, but is this something you're looking to add in a future update? I'd rather implement/convert your solution than figure it out myself, of course!
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,876
Reaction score
4,816
First Language
English
Primarily Uses
RMMZ
To stop all Mush BGM/BGS when going to title screen, try adding the following code snippet to the end of the plugin. I added this for the MV conversion, I have not double checked the MZ source code to verify the commandToTitle() function works the same, but I assume this will work for MZ too:

JavaScript:
//==============================================================================================================
// * 5.05 : Scene GameEnd
//==============================================================================================================

Mush.alias.Scene_GameEnd_CommandToTitle = Scene_GameEnd.prototype.commandToTitle;
Scene_GameEnd.prototype.commandToTitle = function() {
    Mush.alias.Scene_GameEnd_CommandToTitle.call(this);
    AudioManager.stopAllMushBgm(0);
    AudioManager.stopAllMushBgs(0);
};





Someone was asking about this functionality for the MV conversion, and it does seem like a good functionality to have. I haven't really looked into this yet but apparently calling the play command again with new parameters doesn't do it. No pressure, but is this something you're looking to add in a future update? I'd rather implement/convert your solution than figure it out myself, of course!
Sure, it wouldn't be that hard. My university semester ends next week so I'll probably release an update shortly after.
 

MushroomCake28

KAMO Studio
Global Mod
Joined
Nov 18, 2015
Messages
3,876
Reaction score
4,816
First Language
English
Primarily Uses
RMMZ
Released version 1.06
  • Made the Game End command stop all MUSH BGM and BGS.
  • Made the Return to Title event command stop all MUSH BGM and BGS.
  • Updated how the ME works (when it stops MUSH BGM and BGS).
  • Fixed the bug that triggered an alert after a battle on a map with spatial audio (by updating how the ME works).
  • Fixed a bug that made it so the game didn't update the spatial objects on load sometimes.
  • Added a developer mode parameter. When turned OFF, alerts will no longer appear in-game.
  • Added a Plugin Command that allows to change the volume of a MUSH BGM and BGS.
@Featherbrain I used your portion of the code for Scene_GameEnd. I mean, that's exactly how I would have done it. Thanks!
@Nerine @ToshaAngel The battle alert bug shouldn't occur anymore. Plus, I added the dev mode parameter, so when you turn it off it will just not notify the player of any error (some errors don't actually cause crashes and the game can continue running just fine).
@m03271996 There's now a plugin command that allows you to modify the volume of a MUSH BGM/BGS easily.
@Username0987 The bug where BGMs and BGSs continue playing after returning to the Title Screen is now fixed.
@Arpy_G If you haven't grabbed this new version I would suggest updating! The battle bug is now fixed! (it wasn't game breaking but it was annoying).
 

Latest Threads

Latest Profile Posts

here's another RPG Maker remake idea: "Plumbers Don't Wear Ties". I'll salute to whomever does this
I won't finish it today, I only will have time to work on that next Saturday, what a shame... :(
I made something for @LittenDev [as he requested]
It's been a weird while. I've been so torn down that even playing video games has been something I avoided. But I shouldn't forget two things. One, I love RPG Maker for a reason. Two, only way to eat an elephant is a bite at a time.

Forum statistics

Threads
111,385
Messages
1,060,722
Members
144,728
Latest member
Izaya_Nozomu
Top