• 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!
  • 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] Unusual Level Script Problem

  • 202
    Posts
    15
    Years
    • Seen Jan 6, 2017
    This has been causing me trouble for days now and it's really holding up my hack.

    I'm making a complete remake of the RBY games. I've taken and modified a script from Fire Red, but it's not working as it should.

    I've managed to get the script exactly the same, including the level script offset. The script works fine when it's triggered, but if you enter the area when the script isn't ready to be triggered yet, I get the unlimited glitch script.

    Also if you do get the script to trigger, the unlimited glitch also happens as soon as the script is finished.

    Here are the level scripts:
    Script 0: On entering map/not on menu close [03]
    Spoiler:


    Script 1: Validates values, loads handler to 0x03000F28 [04]
    Flag 2055 Value 0001
    Spoiler:


    Script 3: Validates values, loads handler to 0x03000EB0 (playback) [02]
    Flag 2055 Value 0001
    Spoiler:


    And finally the map level script decompiled
    Spoiler:


    I've also attached an IPS patch if anyone would be willing to physically look at it, and see why my script isn't working. The setvar that triggers the script to run is in a floor script on the exit of Pallet Town.

    Thanks if anyone can help, would really appreciate it!
     
    I've tried applying your patch on two separate ROMs but there definitely seems to be something wrong with that script/ the map it is assigned to. Firstly, whenever I enter the lab map in-game I don't have any infinite scripts, but more worryingly my emulator experiences a slow down of over 1200% like its chugging to read/ digest something huge. Another unsettling thing is that when I tried to open the lab map in AdvanceMap the program just crashes on me with no explanation. Something has been seriously corrupted on that map. Could you try reinserting that map along with all of its associated scripts and see if that fixes the problems I'm experiencing?
     
    Hmm maybe I botched up the IPS patch haha. I'll give that map idea a go first though.

    This sounds like the start of a really bad creepypasta..
     
    Saving the map then reinserting it actually worked!

    You have no idea how much I've been stressing trying to get this to work for 2 days now, such a simple fix too.

    Cheers (Y)
     
    Back
    Top