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'm finally doing a more serious hacking attempt in FireRed and I wanted to have a NPC Bug Catcher that's rematchable to make grinding for the 1st Gym easier.
I played the ROM on my VBA and when I came across the rematchable trainer I noticed a really weird bug (Images in spoiler).
Spoiler:
The Bug Catcher.
Whenever I open the menu while this Bug Catcher is in sight, it glitches out.
NOTE: When I open the menu when this Bug Catcher isn't in sight there's no problem yet.
And then when you try to move, it moves the NPC instead and he turns into the hero overworld sprite.
NOTE2: When I just pass the Bug Catcher without opening the menu the script works as it should and the rematch works perfectly as well.
'---------------
#org @ChallengeDenied
msgbox @2 MSG_NORMAL
release
end
'---------
' Strings
'---------
#org @before
= Halt!\nNobody passes through here!\lI see myself as the guardian\lof Rose Forest!
#org @after
= I'm not worthy...
#org @1
= Not a lot of people have passed\nme and my Pokemon so far...\pI'd like to train with someone as\nstrong as you to get better...\pIs that alright?
#org @before2
= Great!\nHere I come!
#org @2
= Oh... Okay...\nI'll train by myself then.
TL;DR - Script works, but it seems like it's causing a bug when opening menu, can anyone explain this?
I don't think your script is the problem here, it'll be an issue with the NPC's data. In advance map there are two "face down" settings for NPCs; one of them does what it says it does, and the other is broken. What you've got there is exactly what usually happens when you select the broken one, so changing it to the other one should fix it.