Author Topic: Play BGM after battle where it left off  (Read 1967 times)

Offline ArcaneAlchemy

  • Awakened Visionist
  • **
  • Posts: 97
  • LV: 6
  • Gender: Male
    • View Profile
Play BGM after battle where it left off
« on: January 12, 2013, 01:30:54 AM »
I am sure that I have seen something about a continuous BGM before but I was wondering if there was a good way to return to the BGM where it left off after a battle. I am a ruby programmer, so I would prefer a RGSS scripting based answer and I would imagine that in this case, it would probably have to be. Anyway, I am thinking of something like a pause feature, but I am not sure how to do that or how to initiate the music again as soon as the scene returns to the map. Anyway, I know there is a ninja on here that will figure it out faster than me so thanks in advance :). If I figure it out before that though, I'll go ahead and post it here
"Wait? Do I look like a waiter?" -Kefka

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3197
  • LV: 385
  • Gender: Male
  • Choco Octo <3
    • View Profile
Re: Play BGM after battle where it left off
« Reply #1 on: January 12, 2013, 02:18:38 AM »
Pretty sure this has been asked for countless times and there are numerous scripts that do this.



Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!


Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: Play BGM after battle where it left off
« Reply #2 on: January 12, 2013, 03:36:28 AM »
In order for this to work, you would need to rewrite the Audio module and use a custom library. ForeverZer0 did something similar that relied on using Microsofts audio library, however, his method wasn't sure to work the same on every system. You can write your own Audio module using a library such as fmod or something similar, you'll just have to call upon a bunch of Win32api calls. But there's no real way to do it right now and it won't be something as simple as a small snippet either. You might be able to find a script over at HBGames.org, I think I saw someone recreate the Audio module over there before.

Offline ArcaneAlchemy

  • Awakened Visionist
  • **
  • Posts: 97
  • LV: 6
  • Gender: Male
    • View Profile
Re: Play BGM after battle where it left off
« Reply #3 on: January 12, 2013, 04:00:49 AM »
Okay, that's what I needed to hear. Yeah, I think that the module rewrite is the way to go in the event that someone wants to run on a Linux or Mac. I'll check out that site and hopefully resolve the issue.

EDIT:
Ah, the only stuff I found was tinkering with the registry which boots out any possible cross-compatibility. Oh well, Windows only for now. If I get a wild hair, I might try and figure out my own solution that will add a pause feature. Anyway, here is the link I found for anyone else who is looking for it.

http://www.santuariorpgmaker.com/forum/index.php?topic=5174

Please don't double post within a 24 hour period, thanks! ~ gameus
« Last Edit: January 12, 2013, 04:53:25 AM by gameus »
"Wait? Do I look like a waiter?" -Kefka

Offline ArcaneAlchemy

  • Awakened Visionist
  • **
  • Posts: 97
  • LV: 6
  • Gender: Male
    • View Profile
Re: Play BGM after battle where it left off
« Reply #4 on: January 12, 2013, 03:45:06 PM »
I feel like such a tard. Forever Zero has something right on here far beyond what I even dreamed of. Sorry for the waste of time.
"Wait? Do I look like a waiter?" -Kefka