Script Pokemon emerald, tried changing dialogue in the pokemon catching tutorial and now the game soflocks
Binary ROM HackingNeed a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.
i opened the script through the gym leader person event in the petalburg gym in advanced map
and then i changed some of the text in the msg boxes and i hit compile
and then when i booted up the game, wally just doesnt show up and the game wont let you out of petalburg.
i did a backup save of the rom first so i can fix, but whats like the correct way to edit the text so that doesnt happen?
Check a scripting tutorial like Avara's XSE Scripting Tutorials or Anthroyd's Gen III ROM Hacking Video Tutorials on Youtube. The part about dynamic offsets is what you should particularly look for.
If you work like the way you described, chances are you will overwrite other data. You need to implement your changes in free space.
ok, so i tried copying the entire script and then doing #dyn 0x800000 at the top, changing the name of the main script to @start, then changing the text in the msg boxes at the bottom and replacing the offset in advanced map with what i got when i compiled the new script, and i still got the same result.
so i dont THINK overwriting other data is the issue?
i went through the entire script and replaced every part of the script that was declared like this "#org 0xXXXXXXX" with something like "#org @1" or "#org @2" and so on, making sure i used a new @name every time i replaced another part of the script that was like that.
Would help if you post the script here.
Also when testing script changes, things get messy if you try to load up a saved game with the event already loaded. Try using a save from a different map, and then head to the event
the scripts are pretty long so im gonna upload them to a file sharing site, and not just post them here directly. https://ufile.io/f/g141k
the only changes i did that wherent just switching a 0xXXXXX name for a @name, are some changes to a msg box i did at line 911 and 374