The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other XSE Error 13

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 January 31st, 2015 (3:57 PM). Edited February 1st, 2015 by Spherical Ice.
549632 549632 is offline
 
Join Date: Mar 2013
Gender: Male
Posts: 2
So I keep getting Error 13 "Type mismatch" on line 10 of this (msgbox @are 0x5). Can anyone figure out what is wrong with this?


#dynamic 0x800700

#org @start
lock
faceplayer
checkflag 0x200
if 0x1 goto @dont
checkflag 0x201
if 0x1 goto @thanks
msgbox @are 0x5
compare 0x800D 0x1
if 0x1 goto @yes
compare 0x800D 0x0
if 0x0 goto @no
end

#org yes
setflag 0x201
msgbox @yay 0x6
release
end

#org @no
setflag 0x200
msgbox @mean 0x6
release
end

#org are
= Do you think everything will be\nokay?

#org @yay
= You better keep us safe [player].

#org @mean
= You're a big meany!

#org @dont
= Leave me alone, meany!

#org @thanks
= Thanks for making me feel better.

Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old January 31st, 2015 (4:08 PM).
Mana's Avatar
Mana Mana is offline
 
Join Date: Jan 2009
Location: UK
Age: 31
Gender: Male
Posts: 10,075
Your #org are is missing its @.

Same with your yes one.
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old January 31st, 2015 (4:17 PM).
DrFuji's Avatar
DrFuji DrFuji is offline
Heiki Hecchara‌‌
 
Join Date: Sep 2009
Location: Aussie
Age: 30
Gender: Male
Nature: Jolly
Posts: 1,693
You forgot the '@' when you wrote some pointers in your script.

Code:
#org @yes
...
#org @are
Also, you have mistake a text pointer for a regular pointer twice in your script. At the beginning you have directed the script to jump to @dont and @thanks based on flags, but those pointers lead to text rather than a continuation of the script. You should only point to a text string with certain commands such as msgbox or bufferstring. Here's an improved script that should work fine:

Code:
#dynamic 0x800000 // The #dynamic command will seek out and insert the script at any free safe space from the stated point in to ROM onwards so there's no need to be so specific

#org @start
lock
faceplayer
checkflag 0x200
if 0x1 goto @dont
checkflag 0x201
if 0x1 goto @thanks
msgbox @are 0x5
compare 0x800D 0x1
if 0x1 goto @yes
compare 0x800D 0x0
if 0x0 goto @no
end

#org @dont // @dont is a pointer to another branch of script, rather than to a text string
msgbox @dont2 0x6
release
end

#org @thanks // @thanks is a pointer to another branch of script, rather than to a text string
msgbox @thanks2 0x6
release
end

#org @yes // Adding the '@'
setflag 0x201
msgbox @yay 0x6
release
end

#org @no
setflag 0x200
msgbox @mean 0x6
release
end

#org @are // Adding the '@'
= Do you think everything will be\nokay?

#org @yay
= You better keep us safe [player].

#org @mean
= You're a big meany!

#org @dont2 // Proper text string pointer
= Leave me alone, meany!

#org @thanks2 // Proper text string pointer
= Thanks for making me feel better.
__________________
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old January 31st, 2015 (4:51 PM). Edited February 1st, 2015 by Spherical Ice.
549632 549632 is offline
 
Join Date: Mar 2013
Gender: Male
Posts: 2
Thank you so much! This is my first time trying this stuff out and coding so I expect I'll be here a lot with blindingly obvious mistakes.
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:10 AM.