• 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.
  • Dawn, Gloria, Juliana, or Summer - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • 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!
  • 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.

[Script] How to delete all existing scripts in a ROM?

  • 160
    Posts
    9
    Years
    Hello everyone, I need to delete all scripts from Pokemon Emerald to start from a clean ROM with clean space. How do I delete existing scripts (like person scripts, signposts etc)?
     
    You should open your ROM in an hex editor, go to the offset of every single script and replace its content with FF bytes. However that would be a really huge work and you would have to be careful not to delete useful data.
     
    I did this with German Leaf Green version(as test) begins at 0x160000 to 0x1C5604 but i remove everything like the block script ones like tv to. On advance map 1.92 i cant edit the maps anymore he does not responding state or crash on ingame is it very laggy he is at slowmotion on player walking.
     
    You should open your ROM in an hex editor, go to the offset of every single script and replace its content with FF bytes. However that would be a really huge work and you would have to be careful not to delete useful data.

    Thanks for the replies. So in other words you guys recommend me not to delete the scripts. Would it be better to use these offsets (of the scripts) and rewrite the scripts (for my own game)?
     
    Last edited:
    No, it could be even worse I guess since by changing the dimension of the scripts you would overwrite other data.
    If you truly want to use that space it'd be better to do as I told you before but in that case I'd recommend you to be sure of what you're doing (so you should understand how that script works and how it is written on ROM by hexadecimals).
    Still it's a long work and maybe it's not really useful (you can just expand your ROM to 32MB and use all that free space).
     
    Last edited:
    Realistically you don't really need to delete anything from the ROM and you'll have enough space for anything you need.
    Just use XSE in order to expand your ROM to 32 MB and you're good to go.
    FYI, pointers that are in expanded area have 09 instead of 08.
     
    Back
    Top