The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script script getting error 9

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 February 5th, 2020 (9:15 PM).
Trinsdar's Avatar
Trinsdar Trinsdar is offline
 
Join Date: Apr 2016
Location: Massachusetts
Age: 23
Gender: Male
Nature: Careful
Posts: 35
Not sure exactly what I'm doing wrong, but xse won't compile this script:

Spoiler:
#dynamic 0x800000
#org @start
lockall
setvar 0x4001 0x0
setvar 0x8004 0x0
setvar 0x8005 0x2
special 0x174
textcolor 0x0
pause 0x1E
playsong 0x12E 0x0
preparemsg @wait
waitmsg
pause 0x55
closeonkeypress
applymovement 0xFF @move5
waitmovement 0x0
sound 0x15
applymovement 0xFF @move6
waitmovement 0x0
pause 0x1E
showsprite 0x3
compare 0x4001 0x0
if 0x1 call @move1
compare 0x4001 0x1
if 0x1 call @move2
pause 0x1E
msgbox @before 0x4
closeonkeypress
cry 0x19 0x0
msgbox @after 0x4
closeonkeypress
pause 0x1E
compare 0x4001 0x0
if 0x1 call @move3
compare 0x4001 0x1
if 0x1 call @move4
setdooropened 0x10 0xD
doorchange
applymovement 0x3 @move7
applymovement 0xFF @move8
waitmovement 0x0
setdoorclosed 0x10 0xD
doorchange
setvar 0x4055 0x1
clearflag 0x2B
setvar 0x4050 0x1
setflag 0x2C
setflag 0x4001
warp 0x4 0x3 0xFF 0x6 0xC
waitstate
releaseall
end

'---------------
#org @move1
applymovement 0x3 @move9
waitmovement 0x0
return

'---------------
#org @move2
applymovement 0x3 @move10
waitmovement 0x0
return

'---------------
#org @move3
applymovement 0x3 @move11
applymovement 0xFF @move12
waitmovement 0x0
return

'---------------
#org @move4
applymovement 0x3 @move13
applymovement 0xFF @move14
waitmovement 0x0
return


'---------
' Strings
'---------
#org @wait
= OAK: Hey! Wait!\nDon't go out!

#org @before
= OAK: It's unsafe!\nWild POKéMON live in tall grass!


#org @after
= OAK : Whew… \pA POKéMON can appear at \nanytime in tall grass.\pYou need your own POKéMON for\nyour protection.\pI know!\nHere, come with me!

'-----------
' Movements
'-----------
#org @move5
#raw 0x2D
#raw 0xFE

#org @move6
#raw 0x62
#raw 0xFE

#org @move7
#raw 0x11
#raw 0x60
#raw 0xFE

#org @move8
#raw 0x13
#raw 0x11
#raw 0x60
#raw 0xFE

#org @move9
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x11
#raw 0x11
#raw 0xFE

#org @move10
#raw 0x13
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x11
#raw 0x11
#raw 0xFE

#org @move11
#raw 0x10
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x2E
#raw 0xFE

#org @move12
#raw 0x10
#raw 0x10
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @move13
#raw 0x10
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x2E
#raw 0xFE

#org @move14
#raw 0x10
#raw 0x10
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE


I know it's blaming this line:
OAK : Whew… \pA POKéMON can appear at \nanytime in tall grass.\pYou need your own POKéMON for\nyour protection.\pI know!\nHere, come with me!


Also off topic(don't feel like making another post just to ask this.), but does anyone know how I might do my own custom wild battle with it using oak actually steeping out, and throwing his own pokeball from his own bag to catch a pokemon that appears? basically I want to do the pikachu wild battle from pokemon yellow. if someone could point me to where wild battle method is located that might be enough
__________________
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old February 5th, 2020 (9:42 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
The issue with your script is due to the three dots put together in a single character in that text string. Instead of that character, use "[.]"; XSE will recognise that and turn it into the appropriate in-game character (0xB0).

As for catching a different Pokemon, both JPAN's Engine and the CFRU have a new special (0x9C) that plays the Old Man tutorial but changes the Pokemon based on variables 0x8004 and 0x8005 so that would probably be the easiest way.
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old February 6th, 2020 (12:32 PM).
Trinsdar's Avatar
Trinsdar Trinsdar is offline
 
Join Date: Apr 2016
Location: Massachusetts
Age: 23
Gender: Male
Nature: Careful
Posts: 35
Quote:
Originally Posted by DrFuji View Post
The issue with your script is due to the three dots put together in a single character in that text string. Instead of that character, use "[.]"; XSE will recognise that and turn it into the appropriate in-game character (0xB0).

As for catching a different Pokemon, both JPAN's Engine and the CFRU have a new special (0x9C) that plays the Old Man tutorial but changes the Pokemon based on variables 0x8004 and 0x8005 so that would probably be the easiest way.
ok, thanks it compiles now. as for cfru/japn's engine, is that something in the default firered rom or is that some sort of patch?
__________________
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old February 6th, 2020 (1:19 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
JPAN's Engine is a patch/ can be applied with a tool, while the CFRU needs to be compiled. Since you've already been editing a ROM, they may mess up some data, so be sure to back up your progress before attempting to use them.
__________________
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:18 AM.