Play Map BGS During Battle

Could someone make a plugin that forces the BGS that was playing before a battle starts to be played all the way through the battle?


For example, we have this river map.


River_Map.png


We have the "River" BGS playing on the map.


But as soon as we enter a battle, the BGS stops until the battle is over.


River_Map_Battle.png


The battleback was created with Blender using MV tiles as textures.
this may help, as long as you have the bgm song set as same song as battle bgm it will just continue playing into battle.
I was saying BGS (Background Sound).
I was saying BGS (Background Sound).

It will play bgs also, you may have to copy from bgs file to bgm but the both ogg format so it's like a 15 second fix. Good luck. For this certain circumstance this will work however it will not work in every part of the game. As far as I see there is no way to carry bgs over to battle for all of your game but yeah like I said in this certain circumstance you can just set the bgs to the one you want to carry over to battle and it will with no interruptions for this scene.
I want the BGS to continue while the BGM changes for the battle.
I want the BGS to continue while the BGM changes for the battle.

Once again this will work....it will shut off the bgm for this battle and play your bgs into the battle. Only way bgm would continue is if you had some sort of weird fusion file of the bgs and bgm in your folder rofl.
Perhaps this is what you are after :


Scene_Map.prototype.stopAudioOnBattleStart = function() {
if (!AudioManager.isCurrentBgm($gameSystem.battleBgm())) {
AudioManager.stopBgm();
}
AudioManager.stopBgs(); // Remove Line
AudioManager.stopMe();
AudioManager.stopSe();
};


In the middle of a few things, so I am not able to whip up a quick plugin ... but if you put that into a JS file, drop it into your plugin directory and add it to your Plugin Manager, it should work.
Perhaps this is what you are after :



Scene_Map.prototype.stopAudioOnBattleStart = function() {
if (!AudioManager.isCurrentBgm($gameSystem.battleBgm())) {
AudioManager.stopBgm();
}
AudioManager.stopBgs(); // Remove Line
AudioManager.stopMe();
AudioManager.stopSe();
};


In the middle of a few things, so I am not able to whip up a quick plugin ... but if you put that into a JS file, drop it into your plugin directory and add it to your Plugin Manager, it should work.

Nice job, the 3 other topics I saw on this went completely unanswered [well answered but not close to solved] was really hoping my suggestion wasnt only way to get this done. 
That was the solution I was looking for, but it didn't quite work. There may be something else we have to change in order to get it to work.
That was the solution I was looking for, but it didn't quite work. There may be something else we have to change in order to get it to work.

maybe doing it manually would help? make a backup of rpg_scenes.js and then make the edit there the line is right here, shut off plugin. But also what didn't work about it, did the music just not keep playing or?


example.png
There was one other function that was calling stopBgs. This should work :

Code:
Scene_Map.prototype.stopAudioOnBattleStart = function() {
    if (!AudioManager.isCurrentBgm($gameSystem.battleBgm())) {
        AudioManager.stopBgm();
    }
    AudioManager.stopMe();
    AudioManager.stopSe();
};

BattleManager.playBattleBgm = function() {
    AudioManager.playBgm($gameSystem.battleBgm());
};
It's working now.
Hi guys. Somebody can create a plugin that permit to enable or disable BGS on the start of a battle?
Necro-post notice: DarkSearinox92

If it wasn't necroposting, it would be hi-jacking someone else's thread with a different query.
Please start your own thread, being as specific as possible with exactly what you want to happen.

Moderator note: Closing

Original thread: https://forums.rpgmakerweb.com/threads/play-map-bgs-during-battle.67950/