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.
Dear community,
I am close to despair and depression. For hours I was trying to figure out why my script wasnt working. What I finaly noticed was, that XSE is changing the offsets of my subscripts after compiling. They differ from what is displayed in the output box. I can only see these changes once I reload the script.
#org @text1
= There you are again! I'm glad to\nmeet you here. I spent the past\ldays training my Pokémon a lot.\lLet me show you how to battle like\la champ!
#org @beforeb
= Let's get it started!
#org @afterb
= Aaargh...
#org @textafter
= I can't believe that I have lost.\nI guess I still have to grow...\lbut don't worry. I will challange\lyou again. You should keep the\ltraining! Maybe this TM can help\lyou.
#org @bye
= I got to jet. See you soon!
As you can see, only the first two characters of my offsets change and only of those that are embedded in the code. Unluckily, that causes the script to point into nothingness making the script useless. I have the slight feeling that there is an easy solution to it. But I spent the last 4 hours looking for solution by experimenting, reading threads and googleing without success. Help is greatly appreciated!
EDIT: Problem is solved. It was not related to the script offsets. They are fine. Had to fix positions of OW sprites.
Looking at the first few lines of script if neither flag is set then the script will simply hidesprite, release and end. Try it with either flag set and see if it works. Also you have a release command there but no lock command before it so you can probably get rid of that release command.
The hidesprite 0x23 and flag 0x23 have the same value, but the npc event flag to make them disappear isn't the same as the npc number for hidesprite. If the npc is event no. a change hidesprite 0x23 to hidesprite 0xa