The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page "This is a test message""This is a signpost"

Notices
For all updates, view the main page.

Binary ROM Hacking Need 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.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old August 19th, 2021 (12:01 AM).
DadsLinguine DadsLinguine is offline
 
Join Date: Aug 2021
Posts: 3
Hi all, I'm very new to romhacking, so please bear with me. I am hacking an Emerald Liberate based ROM (for all of the new updates and goodies), and while changing some random things, all of a sudden my script does not work anymore. I had this same error "This is a test message""This is a signpost" once before, but I managed to fix that by sheer luck. Now, whatever I try to do that seems logical, it won't work. I've seen this thread where someone links a list to all the Var/Flag location and uses. I use only the Vars from 0x6000 onwards, as I think that is a safe bet (might be wrong on that tho). I did change the Var value to a few random numbers, but the same message keeps popping up.

In the Advance map, I do have the right flag and value set in the Map Script. If I change that to not match, the script would just repeat itself.

So my actual question would be: Where does this error come from (and how to prevent it of course), and how can I fix it?

Code here:
Spoiler:

#org 0xC305FA
lock
msgbox 0x8C307E6 MSG_NORMAL '"Jeff: FINALLY! That took you long\..."
applymovement 0x1 0x8D6D75E
applymovement MOVE_PLAYER 0x8D6D76D
waitmovement 0x0
msgbox 0x8D6C3E9 MSG_NORMAL '"Doc Luom: Ahem. Thank you for that..."
msgbox 0x8D6CC60 MSG_NORMAL '"BUT FIRST, before you all take\nof..."
applymovement 0x3 0x8D6D77B
waitmovement 0x0
giveitem 0x10D 0x1 MSG_OBTAIN
applymovement 0x3 0x8D6D782
waitmovement 0x0
msgbox 0x8D6D420 MSG_NORMAL '"Doc Luom: Each of these [green_em]..."
applymovement 0x2 0x8D6D78A
applymovement MOVE_PLAYER 0x8D6D78D
applymovement 0x1 0x8D6D78D
waitmovement 0x0
msgbox 0x8D6D617 MSG_NORMAL '"Lisa: I think it is fairest to\nha..."
applymovement 0x1 0x8D6D790
waitmovement 0x0
msgbox 0x8D6D720 MSG_NORMAL '"Jeff: AHHHH MAAANNNN!!!\p[player]:..."
applymovement 0x1 0x8D6D793
applymovement 0x2 0x8D6D793
applymovement MOVE_PLAYER 0x8D6D793
waitmovement 0x0
setvar 0x6015 0x1 <--- Always happens at this point
release
end
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old August 19th, 2021 (6:36 AM).
Anon822 Anon822 is offline
 
Join Date: Nov 2017
Posts: 326
I'm not sure if this problem is caused by the variable but 0x6015 definitely isn't safe to use unless your rom has expanded variables.
You can find an up-to-date list of emerald's variables here.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old August 19th, 2021 (7:46 AM).
DadsLinguine DadsLinguine is offline
 
Join Date: Aug 2021
Posts: 3
I'll try that, thank you for the list!
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:22 AM.