- 93
- Posts
- 4
- Years
- Seen Sep 12, 2024
Hi there, I'm here to look for help, because I've experienced an error I haven't seen yet, and there doesn't seem to be any solution on the Internet.
I have no idea why, I didn't mess with scripts, but whenever I go from one connected map to another, I get this message
The line it refers to are these (I think):
Any idea how to fix it? Any help is appreciated ^^
I have no idea why, I didn't mess with scripts, but whenever I go from one connected map to another, I get this message
![[PokeCommunity.com] Map Transfer Music Error [PokeCommunity.com] Map Transfer Music Error](https://i.imgur.com/puw1RLM.png)
The line it refers to are these (I think):
Spoiler:
Code:
#===============================================================================
# Audio playing
#===============================================================================
def pbCueBGM(bgm,seconds,volume=nil,pitch=nil)
return if !bgm
bgm = pbResolveAudioFile(bgm,volume,pitch)
playingBGM = $game_system.playing_bgm
if !playingBGM || playingBGM.name!=bgm.name || playingBGM.pitch!=bgm.pitch
pbBGMFade(seconds)
if !$PokemonTemp.cueFrames
$PokemonTemp.cueFrames = (seconds*Graphics.frame_rate)*3/5
end
$PokemonTemp.cueBGM=bgm
elsif playingBGM
pbBGMPlay(bgm)
end
end
[I]def pbAutoplayOnTransition
surfbgm = pbGetMetadata(0,MetadataSurfBGM)
if $PokemonGlobal.surfing && surfbgm
pbBGMPlay(surfbgm)
else
$game_map.autoplayAsCue
end
end[/I]
def pbAutoplayOnSave
surfbgm = pbGetMetadata(0,MetadataSurfBGM)
if $PokemonGlobal.surfing && surfbgm
pbBGMPlay(surfbgm)
else
$game_map.autoplay
end
end