• 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!
  • Which Pokémon Masters protagonist do you like most? Let us know by casting a vote in our Masters favorite protagonist poll here!
  • 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.

[Map✓] Black Screen

  • 4
    Posts
    5
    Years
    • Seen Jun 28, 2019
    It's probably as generic a problem as one can have.

    When entering one of my maps, it gets a black screen and the game presumably freezes. This occurred after adding a script with a type of "on entering map / not on menu close." It's the only script on the map. Removing the script "solves" the issue, but I would very much like to be able to have entering a map trigger an event.

    I saw a fix to a similar problem, but the map's footer offset already ends in an 8.

    Any ideas?

    Update: Messing around with the script type of the map header script partially solves the problem. Seems like I'm trying to manipulate things that don't exist yet by the game's reckoning, (ie "on enter" is literally as the player enters, which might mean that a lot of stuff isn't available for access).
     
    Last edited:
    Are you able to post the script here?

    #org 0x800026
    msgbox 0x8800033 MSG_NORMAL '"WHOA"
    end

    #org 0x800033
    = WHOA

    As you can tell, I got to the point where I was just trying to make any part of it work.

    "image removed"
     
    Last edited:
    #org 0x800026
    msgbox 0x8800033 MSG_NORMAL '"WHOA"
    end

    #org 0x800033
    = WHOA

    As you can tell, I got to the point where I was just trying to make any part of it work.

    "image removed"

    The msgbox command is not something to put in a type 03 level script (also not in 01, 04 and 05). The type 03 level script is typically used to set a certain weather, play a certain song or set a worldmapflag.

    If you want to display that message the first time you enter the map, you should make it a type 02 script. It needs a variable to trigger it and you also need to set that variable to something else in the script or else it will keep repeating itself (which doesn't work).

    Check this tutorial if you want to know how to work with type 02 level scripts: https://www.pokecommunity.com/threads/191500
     
    The msgbox command is not something to put in a type 03 level script (also not in 01, 04 and 05). The type 03 level script is typically used to set a certain weather, play a certain song or set a worldmapflag.

    If you want to display that message the first time you enter the map, you should make it a type 02 script. It needs a variable to trigger it and you also need to set that variable to something else in the script or else it will keep repeating itself (which doesn't work).

    Check this tutorial if you want to know how to work with type 02 level scripts:

    Thanks, that's exactly what I was looking for.
     
    Back
    Top