Resource icon

Resource BGM Memory (Resume After Battle)

boonzeet

Developer of Pokemon: Secrets of the Ages
Member
Joined
Mar 13, 2019
Posts
57
boonzeet submitted a new resource:

BGM Memory (Resume After Battle) - Allow pausing BGM and resuming from the spot it was paused at, like the main series games.

Simple script that allows remembering a BGM's position so the next time it's played it plays from that spot.

This REQUIRES FMod and will not work without it. FMod can be set up by following these instructions.

Unfortunately this means this mod is not yet compatible with MKXP, due to a bug within MKXP itself. This is being worked on.

Place this script after FMod & RGSS Linker and above Main:

Ruby:
...

Read more about this resource...
 

thepsynergist

Rookie
Member
Joined
Mar 20, 2018
Posts
5
Can confirm the above still is present. It happens when the music changes too quickly. Another bug occurs if you start a save file on a map with an undefined BGM.
 

thepsynergist

Rookie
Member
Joined
Mar 20, 2018
Posts
5
Vendily helped me resolve this one:

Code:
  def bgm_fade(time) # :nodoc:
#    self.bgm_setpos(@playing_bgm.name, 0) if !@bgm_paused
  if !@bgm_paused && @playing_bgm
    @playing_bgm = nil
    Audio.bgm_fade((time*1000).floor) if !@defaultBGM
  end
  Audio.bgm_fade((time*1000).floor) if !@defaultBGM   # otherwise music will not fade back in smoothly
end

Would just need to replace the def bgm_fade(time) section with the above.
 

boonzeet

Developer of Pokemon: Secrets of the Ages
Member
Joined
Mar 13, 2019
Posts
57
Vendily helped me resolve this one:

Code:
  def bgm_fade(time) # :nodoc:
#    self.bgm_setpos(@playing_bgm.name, 0) if !@bgm_paused
  if !@bgm_paused && @playing_bgm
    @playing_bgm = nil
    Audio.bgm_fade((time*1000).floor) if !@defaultBGM
  end
  Audio.bgm_fade((time*1000).floor) if !@defaultBGM   # otherwise music will not fade back in smoothly
end

Would just need to replace the def bgm_fade(time) section with the above.
Thank you to you and Vendily for noticing this and fixing it! I'll update the script now
 
Top