Merging BGM and ME volume.

I've looked in RPG_Managers.js and tried to edit line 544 from

this.meVolume = this.readVolume(config, 'meVolume');

to

this.meVolume = this.readVolume(config, 'BgmVolume');

This ties both BGM and ME setting to one value, but once an ME is played and I alter the volume in the config menu, it does not take effect until the next BGM plays. MEs will stop playing altogether.
I'm afraid I'm going to have to bump.
Never understood why they are separate when it's both music so the volume should be adjusted the same way.

Did you ever saw a game where the victory music or an intro music which is only played once is considered separate in the volume options?

I'm bumping this because it feels important to fill and it's very wierd it's getting ignored.
Here you go!


I took your idea a step further and made a Master Volume plugin that encompasses all 4 sound profiles.
It's pretty much plug and play, so feel free to try it out!
(I'll post a proper topic a little later.)
You might want to update the info since it's describing you encounters plugin, not this one. And I'm okay with the master volume but I'm curious to know how you'd modify it so that I change the volume of BOTH BGM and ME at the same time. Nice collection of misc. (but useful) plugins some of us might not know we needed.
You might want to update the info since it's describing you encounters plugin, not this one. And I'm okay with the master volume but I'm curious to know how you'd modify it so that I change the volume of BOTH BGM and ME at the same time. Nice collection of misc. (but useful) plugins some of us might not know we needed.
Thanks. I'll edit it before the formal release. If you set the mode param to 1, it'll remove the other volume options only leaving the master which will change them all.

EDIT: And for the sake of me asking, your intent is to simply have only the BGM and ME sliders affect each other at the same time without any extra sliders involved?
@Maliki79 That's correct.
@BloodletterQ Hey, just wondering if this ever was solved?

Master Volume is great (I checked out your plugin @Maliki79 !) but I also would like to merge ME and BGM's sliders. Did a playtest and it's confusing to players why there are two different "music volume" options.

Thanks!
There's a setting to remove the extra sliders and only use the master volume.

EDIT: Nevermind. I see what you wanted.
That is doable, but will require a bit of reworking.
@Maliki79 Pardon, but do you mean a bit of reworking to your existing script, or the base RMMV .js file?
Is it OK to edit your .js (while still giving you credit of course), or is that not cool?

I'm a bit new to all this community stuff and need a bit of guidance. Thanks!
Yes. I mean reworking my plugin.
And of course you can edit it if you need to.
I likely would not have time to do it anyway.
Good luck!
@Fitferfer Edit lines 493 and 496 of rpg_managers.js to the following :

Code:
// line 493
return AudioManager._bgmVolume;

// line 496
AudioManager.bgmVolume = value;

That should link the BGM and ME volume levels.
@Ossra @BloodletterQ @lolshtar I've figured it out! 😀

The following line needs to be added to rpg_managers.js
Code:
// line 477
AudioManager.meVolume = value;
(It'll look like this now: )
Spoiler
Code:
//
Object.defineProperty(ConfigManager, 'bgmVolume', {
    get: function() {
        return AudioManager._bgmVolume;
    },
    set: function(value) {
        AudioManager.bgmVolume = value;
        AudioManager.meVolume = value;
    },
    configurable: true
});
Then to hide the ME option from visibility, change the following line in rpg_windows.js
Code:
// line 2684
/*this.addCommand(TextManager.meVolume, 'meVolume');*/

No need to change lines 493 or 496 of rpg_managers to get this to work. Hope this helps someone else in the future 🙂

Original thread: https://forums.rpgmakerweb.com/threads/merging-bgm-and-me-volume.75575/