Help - Search - Members - Calendar
Full Version: Continue Map's BGM after battle
RPG RPG Revolution Forums > Scripting > Script Submissions > RGSS-Submissions
bulletxt
Continue Map's BGM after battle

Author: BulletXt (bulletxt@gmail.com)
Version: 0.2
Date: 10/10/2009

Description:
This script will make your map's bgm continue playing after battle ends instead of restarting.
The demo includes the script and all necessary files. It should be compatible with all scripts. And before you ask, it does support ogg smile.gif

WARNING: you must have installed Microsoft Visual C++ 2008 Redistributable Package

WARNING 2: you must not set a battle BGM that is MIDI format and/or part of RTP.


Features:
- it continues playing map's bgm after battle ends instead of restarting
- if a switch is ON, map's bgm will continue playing in battle
- if a switch is ON, it activates random battle bgm

Download Demo: here (replace demo's script 0.2 with this new 0.3 one: here )


Cheers,
BulletXt
Garlyle
...seriously!? Niiice, dude 8D
l33tpie 6
You gotta be yanking my chain. Seriously?! Thanks! I'm going to try this out straight away!
Yanfly
I seriously love all the things you do to allow us to have quality audio control in our games.
IrukutheNinja
Im getting an error everytime i try opening my game.

Something about test mode.

I have put all the dlls from the demo in the games folder, i have put the script as the first in the materials thing. i have copied Start and Rescue.exes and the mplayer folder over to my games folder... i just can't figure it out.... sad.gif
bulletxt
QUOTE (IrukutheNinja @ Aug 8 2009, 04:00 PM) *
Im getting an error everytime i try opening my game.

Something about test mode.

I have put all the dlls from the demo in the games folder, i have put the script as the first in the materials thing. i have copied Start and Rescue.exes and the mplayer folder over to my games folder... i just can't figure it out.... sad.gif


What error? Please be more specific when reporting issues. If needed feel free to post a pic showing the error.
IrukutheNinja
QUOTE (bulletxt @ Aug 8 2009, 05:32 PM) *
QUOTE (IrukutheNinja @ Aug 8 2009, 04:00 PM) *
Im getting an error everytime i try opening my game.

Something about test mode.

I have put all the dlls from the demo in the games folder, i have put the script as the first in the materials thing. i have copied Start and Rescue.exes and the mplayer folder over to my games folder... i just can't figure it out.... sad.gif


What error? Please be more specific when reporting issues. If needed feel free to post a pic showing the error.


here
bulletxt
QUOTE (IrukutheNinja @ Aug 8 2009, 04:39 PM) *
QUOTE (bulletxt @ Aug 8 2009, 05:32 PM) *
QUOTE (IrukutheNinja @ Aug 8 2009, 04:00 PM) *
Im getting an error everytime i try opening my game.

Something about test mode.

I have put all the dlls from the demo in the games folder, i have put the script as the first in the materials thing. i have copied Start and Rescue.exes and the mplayer folder over to my games folder... i just can't figure it out.... sad.gif


What error? Please be more specific when reporting issues. If needed feel free to post a pic showing the error.


here


That's not an error. That happens when you press F12 when testing the game in Test mode.
If instead you are having this dialog under other conditions, for example as soon as you start the game, then it means you have a script that is doing something with F12 key, for example the F12 cleaner script. If you have that just remove the script.

Also be sure to be running script version 0.2 that is posted in main topic. Do not use the 0.1 version bundled with the demo.
IrukutheNinja
QUOTE (bulletxt @ Aug 8 2009, 05:53 PM) *
QUOTE (IrukutheNinja @ Aug 8 2009, 04:39 PM) *
QUOTE (bulletxt @ Aug 8 2009, 05:32 PM) *
QUOTE (IrukutheNinja @ Aug 8 2009, 04:00 PM) *
Im getting an error everytime i try opening my game.

Something about test mode.

I have put all the dlls from the demo in the games folder, i have put the script as the first in the materials thing. i have copied Start and Rescue.exes and the mplayer folder over to my games folder... i just can't figure it out.... sad.gif


What error? Please be more specific when reporting issues. If needed feel free to post a pic showing the error.


here


That's not an error. That happens when you press F12 when testing the game in Test mode.
If instead you are having this dialog under other conditions, for example as soon as you start the game, then it means you have a script that is doing something with F12 key, for example the F12 cleaner script. If you have that just remove the script.

Also be sure to be running script version 0.2 that is posted in main topic. Do not use the 0.1 version bundled with the demo.

I am.

And the problem started after i added the script. i think it was when i opened my game in full screen unadvertantly and was pressing the fnumber keys to find out which one put it back to windowed.

i removed your script and it worked again.

meh... ill experement.
bulletxt
QUOTE (IrukutheNinja @ Aug 8 2009, 05:04 PM) *
QUOTE (bulletxt @ Aug 8 2009, 05:53 PM) *
QUOTE (IrukutheNinja @ Aug 8 2009, 04:39 PM) *
QUOTE (bulletxt @ Aug 8 2009, 05:32 PM) *
QUOTE (IrukutheNinja @ Aug 8 2009, 04:00 PM) *
Im getting an error everytime i try opening my game.

Something about test mode.

I have put all the dlls from the demo in the games folder, i have put the script as the first in the materials thing. i have copied Start and Rescue.exes and the mplayer folder over to my games folder... i just can't figure it out.... sad.gif


What error? Please be more specific when reporting issues. If needed feel free to post a pic showing the error.


here


That's not an error. That happens when you press F12 when testing the game in Test mode.
If instead you are having this dialog under other conditions, for example as soon as you start the game, then it means you have a script that is doing something with F12 key, for example the F12 cleaner script. If you have that just remove the script.

Also be sure to be running script version 0.2 that is posted in main topic. Do not use the 0.1 version bundled with the demo.

I am.

And the problem started after i added the script. i think it was when i opened my game in full screen unadvertantly and was pressing the fnumber keys to find out which one put it back to windowed.

i removed your script and it worked again.

meh... ill experement.


Yes... unless you can reproduce this issue with the demo, it means there is something wrong in your game's script list.
IrukutheNinja
QUOTE (bulletxt @ Aug 8 2009, 06:30 PM) *
QUOTE (IrukutheNinja @ Aug 8 2009, 05:04 PM) *
QUOTE (bulletxt @ Aug 8 2009, 05:53 PM) *
QUOTE (IrukutheNinja @ Aug 8 2009, 04:39 PM) *
QUOTE (bulletxt @ Aug 8 2009, 05:32 PM) *
QUOTE (IrukutheNinja @ Aug 8 2009, 04:00 PM) *
Im getting an error everytime i try opening my game.

Something about test mode.

I have put all the dlls from the demo in the games folder, i have put the script as the first in the materials thing. i have copied Start and Rescue.exes and the mplayer folder over to my games folder... i just can't figure it out.... sad.gif


What error? Please be more specific when reporting issues. If needed feel free to post a pic showing the error.


here


That's not an error. That happens when you press F12 when testing the game in Test mode.
If instead you are having this dialog under other conditions, for example as soon as you start the game, then it means you have a script that is doing something with F12 key, for example the F12 cleaner script. If you have that just remove the script.

Also be sure to be running script version 0.2 that is posted in main topic. Do not use the 0.1 version bundled with the demo.

I am.

And the problem started after i added the script. i think it was when i opened my game in full screen unadvertantly and was pressing the fnumber keys to find out which one put it back to windowed.

i removed your script and it worked again.

meh... ill experement.


Yes... unless you can reproduce this issue with the demo, it means there is something wrong in your game's script list.


I FIXED IT!

i made a noob mistake....
i copyed the script in an unmarked part of the script thing. like the bar was blank and i forgot about it.

but now i have another problem.

My games battle theme comes in very delayed.
any ways i could fix that?
bulletxt
In theory, the battle music will have a delay only the first time you encounter a battle. From the second battle and on there shouldn't be any delay.

I can't guarantee this, the Play method is asynchronous so it's the OS that decides when the file can start playing. On all my tests, I encountered a delay only on the first battle.
Potatoman4
Every time I start a battle (In the demo btw) it freezes and both programs stop working.
bulletxt
QUOTE (Potatoman4 @ Aug 20 2009, 09:28 AM) *
Every time I start a battle (In the demo btw) it freezes and both programs stop working.


What CPU do you have?
Potatoman4
I'm not quite sure what it is you want to know but I think this should work
bulletxt
QUOTE (Potatoman4 @ Aug 20 2009, 10:49 AM) *
I'm not quite sure what it is you want to know but I think this should work


Ok, I need some more info. If you click on Rescue.exe, does it crash or does it start a small GUI?
Potatoman4
QUOTE (bulletxt @ Aug 21 2009, 12:34 PM) *
]
Ok, I need some more info. If you click on Rescue.exe, does it crash or does it start a small GUI?

It starts the small GUI
(Good thing I know what that is)
bulletxt
QUOTE (Potatoman4 @ Aug 21 2009, 02:20 PM) *
QUOTE (bulletxt @ Aug 21 2009, 12:34 PM) *
]
Ok, I need some more info. If you click on Rescue.exe, does it crash or does it start a small GUI?

It starts the small GUI
(Good thing I know what that is)


Fine, then it means mplayer.exe is crashing. Download this file and replace it with the mplayer.exe you have in mplayer/ folder.

Download: here

Let me know if it works.
Potatoman4
That didn't work :/
After I win a battle it says the Rescue.exe has stopped working and needs to close (Then the music doesn't stop playing until it reaches the end...But I like most if not all FF battle themes >.> )
Potatoman4
Oh yeah. I have the 2008 version of Microsoft Visual C++ Redistributable Package (2005 wouldn't install)
bulletxt
QUOTE (Potatoman4 @ Aug 22 2009, 01:55 PM) *
Oh yeah. I have the 2008 version of Microsoft Visual C++ Redistributable Package (2005 wouldn't install)


Are you using script 0.1 of the demo or the newer one 0.2? Also, I'm not understanding very well. It seems battle bgm plays but then crashes when the battle ends?

Please give a detailed step by step situation till Rescue.exe crashes.

Last but not least, start the demo from Start.exe and not Game.exe .
Potatoman4
Okay I added the new script.

When I start from Game.exe:
I walk into the left building
I fight some monsters
When the battle ends (after the monsters are dead) the Rescue.exe stops working. And the game freezes

When I start from Start.exe:
Title screen comes up
Start.exe has stopped working and both programs freeze
Edit: The title screen doesn't get the chance to come up before the Start.exe crashes
Ziack
Hi there,

I KNOW this is a VX forum but i recently switched to XP when i learned how much better the mapping was...

What i'm wondering is... is there any way to get this working for XP because i have been racking my brain ENDLESSLY looking for this. There are supposed to be MORE scripts for XP but it seems harder to find things (im a MASSIVE noob at all this)

I'm not good with scripting or anything, i just need a program like this for XP, thanks in advance.
bulletxt
QUOTE (Ziack @ Sep 5 2009, 10:23 PM) *
Hi there,

I KNOW this is a VX forum but i recently switched to XP when i learned how much better the mapping was...

What i'm wondering is... is there any way to get this working for XP because i have been racking my brain ENDLESSLY looking for this. There are supposed to be MORE scripts for XP but it seems harder to find things (im a MASSIVE noob at all this)

I'm not good with scripting or anything, i just need a program like this for XP, thanks in advance.


Yes this can be easily ported to VX, but I won't do it as I don't have time and/or have XP. If you find someone to do it (it shouldn't take more than 1-2 hours) feel free to contact me if you're having issues to understand some parts of the script.
Runefreak
Awesome script smile.gif .
bulletxt
I updated the package. It now has the latest rgss script and almost all dll's have been updated. Most importantly, the demo now ships with a new version of mplayer which is compiled with runtime cpu detection. This means it doesn't matter if your cpu supports or not flags like SSE1 or SSE2. All people that are currently using this script is encouraged to update to this new release. Be sure to overwrite all the dlls and mplayer of your project to the new ones found in the demo.
Locke
Wjoa, nice script there i better use it now thanks for the script dude!
Michael
Seriously, awesome script now the battles can be more enjoyable. smile.gif
Shadow_Satey
There's a problem with the Audio Engine XT that I noticed while testing it. Whenever you ESCAPE from battle, the battle background music continues playing on the field, and it merges with the field BGM to make one very unrealistic beat. Thank you.

-Ian
bulletxt
QUOTE (Shadow_Satey @ Oct 17 2009, 11:34 PM) *
There's a problem with the Audio Engine XT that I noticed while testing it. Whenever you ESCAPE from battle, the battle background music continues playing on the field, and it merges with the field BGM to make one very unrealistic beat. Thank you.

-Ian


This doesn't happen in the demo. It means you are using a script that is causing a conflict. Please find out what script is causing this.
Zotmaster
Not to be a necro-bumper, but I just found this script and I really like it since it accomplishes exactly what I want it to do...

...except I'm getting an error at the end of battles.



I apologize again for the necro-bump, but I'm retarded when it comes to scripting sad.gif

EDIT: As I look through this topic again, I am now under the impression that this is not actually a VX script. As I'm using VX, would I be correct in assuming that that is the problem? Is it easy to fix? Or is it something else altogether?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.