• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Other] Warp script leads to black screen

PHP:
#freespace 0xFF
#dynamic 0x2C8FAB

#org @start
lock
msgbox @travel 0x5
compare 0x800D 0x1
if 0x1 goto @warp
msgbox @notravel 0x6
release
end

#org @warp
warp 0x24 0x0 0xFF 0x07 0x07
waitstate
release
end

#org @travel
= Welcome to the Fast Travel\nNetwork!\pWould you like to go to the\nCentral Terminal?

#org @notravel
= Thanks for flying LizardNet.\nHave a nice day!

This script warps me to a black screen, but the correct music/header plays. I'm trying to warp to map 0 in map bank 36, which is a defined map. What's going on?
 
Your script looks fine to me. A few things to try out:

  • Reinsert your map over the same bank and map number. It seems like AdvanceMap sometimes writes the map data to an unaligned offset which can cause a black screen.
  • If there are any level scripts on your map, delete them and see if that works.
  • Also check if there is any overworld on your map that has an overly high picture number and adjust it in case.
That's all I can think of right now.
 
Back
Top