• 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.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Scottie, Todd, Serena, Kris - 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✓] SERIOUS issue/glitch with map scripts.

  • 7
    Posts
    9
    Years
    • Seen Dec 6, 2015
    I'm a relatively new hacker(started a couple of months ago) who is hoping to release his first rom hack. Unfortunately, I've run an inexplicable issue when rom hacking.

    This isn't a simple issue but hopefully its one that someone here can assist me with.

    I'm hacking Pokemon Emerald using Advance Map 1.92 and I'm inserting a level/map script(02 Validates...) into a map. Of course I use a variable for that. And the script is supposed to increment the variable(so that the script doesn't ever occur again).

    The first time I enter the map, the map script works fine, but afterwards(the other times when nothing is supposed to happen) is when the problem occurs. The game more or less freezes and just shows an endless loop of text boxes and I can not move the character or exit.

    I'm not sure what to do, maybe someone here can help me. Hopefully, I did a decent job explaining the problem.
     
    Last edited:
    In Advance-Map, go into the Header tap on the map with the level script, and do the keyboard shortcut Ctrl + H to enable the Advanced view. Copy the script offset in the Map script offset: field, and then load your ROM in XSE. Do the shortcut Ctrl + D and uncheck Refactoring, and then click Apply. Paste the offset in the Offset field, and then click the Level Script button, and then the Decompile button. If the script that decompiles has something like this:

    #raw word 0xFFFF

    replaces the 0xFFFF with 0x0, and then click the Compile button. That should fix this!
     
    Thank you for your reply. The issue is when I get that Map Script Offset and put it into XSE, I don't see "#raw word 0xFFFF" or anything like that, i just see org and offset followed by end in the next line. I'm not sure what to do.
     
    Thank you for your reply. The issue is when I get that Map Script Offset and put it into XSE, I don't see "#raw word 0xFFFF" or anything like that, i just see org and offset followed by end in the next line. I'm not sure what to do.

    Post your script then, so we can look into it.
     
    Post your script then, so we can look into it.

    I don't think you understand. My issue isn't with my script. When my script needed to work, it worked. It was when I entered the map after the script is where an error occur(where the textbox,containing text from my last encounter, popped up in an endless loop, effectively freezing the game).
    So Mr. Spherical Ice said that I should look into the map script offset and put that offset in XSE. When I did that, what happened was I got a pretty much blank script looking something like this:
    #org #E36B40
    end

    And that was it.(The E36B40 is no the actual map script offset. It wa only used for the sake of example. I am away from my laptop at the moment). So I am still very unsure what o do the solve this issue.

    Also I should note that I'm using Pokemon emerald not FireRed,which is what most people hack with(from what I've seen). Not sure if there's a difference between the map scripts/offsets in Emerald.
     
    I don't think you understand. My issue isn't with my script. When my script needed to work, it worked. It was when I entered the map after the script is where an error occur(where the textbox,containing text from my last encounter, popped up in an endless loop, effectively freezing the game).
    So Mr. Spherical Ice said that I should look into the map script offset and put that offset in XSE. When I did that, what happened was I got a pretty much blank script looking something like this:
    #org #E36B40
    end

    And that was it.(The E36B40 is no the actual map script offset. It wa only used for the sake of example. I am away from my laptop at the moment). So I am still very unsure what o do the solve this issue.

    Also I should note that I'm using Pokemon emerald not FireRed,which is what most people hack with(from what I've seen). Not sure if there's a difference between the map scripts/offsets in Emerald.

    Map scripts work the same across all Generation 3 games. If that is what you're decompiling even after clicking the Level Script button on XSE, then I recommend you compile the following script with XSE and paste its point in the Map script offset: field in the Header tab's professional view:

    Spoiler:
     
    Map scripts work the same across all Generation 3 games. If that is what you're decompiling even after clicking the Level Script button on XSE, then I recommend you compile the following script with XSE and paste its point in the Map script offset: field in the Header tab's professional view:

    Spoiler:

    Thank you, Mr. Ice. Your assistance has led to me solving the problem. Your generosity and patience will be rewarded. God Bless.
     
    Back
    Top