The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script My script is saying "No #org/#seek directives were found."

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 July 17th, 2020 (10:41 PM).
Supercreativename Supercreativename is offline
 
Join Date: Jul 2020
Posts: 3
Hello! I'm new and inexperienced in scripting, and I've been watching the Tutorial Series of Anthroyd. When I tried compiling the script for giving the starters, XSE puts out "No #org/#seek directives were found." I need help on how to fix this and, perhaps, make the script shorter because I think it is quite long. Thank you in advance!

Spoiler:
dynamic 0x800000

#org @start
lock
showpokekpic 0x98 0xA 0x3
pause 0x30
msgbox @GetStarter 0x5 'Dad asks player if he wants Chikorita.
compare 0x800D 0x1
if 0x1 goto @yes
msgbox @IfPlayerChoosesNo 0x6 'If player chooses no
hidepokepic
release
end

#org @yes 'If player chooses yes
hidesprite 0x3
setflag 0x200
applymovement 0x6 @m1 'Rival and moves, gets Cyndaquil, and returns.
waitmovement 0x0
mgsbox @RivalTalks 0x6
hidesprite 0x4
applymovement 0x6 @m2
waitmovement 0x0
msgbox @DadTalks 0x6 'Dad talks and then takes Totodile.
hidesprite 0x5
setvar 0x4011 0x1
release
end

#org @m1
#raw 0x10 'Rival steps down.
#raw 0x12 'Rival steps left.
#raw 0xFE

#org @GetStarter
= [blue_fr]Dad: [black_fr]Choose [green_fr]Chikorita[black_fr]?\nIt likes to inflict status\lconditions and recover its health.

#org @IfPlayerChoosesNo
= [blue_fr]Dad[black_fr]: Take your time.

#org @RivalTalks
= [blue_fr][rival][black_fr]: Well then,I'm\ngoing to choose Cyndaquil.

#org @m2
#raw 0x13 'Step Right
#raw 0x11 'Step Up
#raw 0xFE

#org @DadTalks
= [blue_fr]Dad[black_fr]: Hmmm, that\nstarter likes to fight far\laway.\lI hope you both will be\lhappy with your new partners!\lAnd this [blue_fr]Totodile[black_fr] will\lbe coming with me!
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old July 18th, 2020 (1:03 AM).
Entaro Ceraphenine's Avatar
Entaro Ceraphenine Entaro Ceraphenine is offline
 
Join Date: Sep 2016
Location: Katones City
Gender: Male
Nature: Quiet
Posts: 48
Quote:
Originally Posted by Supercreativename View Post
Hello! I'm new and inexperienced in scripting, and I've been watching the Tutorial Series of Anthroyd. When I tried compiling the script for giving the starters, XSE puts out "No #org/#seek directives were found." I need help on how to fix this and, perhaps, make the script shorter because I think it is quite long. Thank you in advance!

Spoiler:
dynamic 0x800000

#org @start
lock
showpokekpic 0x98 0xA 0x3
pause 0x30
msgbox @GetStarter 0x5 'Dad asks player if he wants Chikorita.
compare 0x800D 0x1
if 0x1 goto @yes
msgbox @IfPlayerChoosesNo 0x6 'If player chooses no
hidepokepic
release
end

#org @yes 'If player chooses yes
hidesprite 0x3
setflag 0x200
applymovement 0x6 @m1 'Rival and moves, gets Cyndaquil, and returns.
waitmovement 0x0
mgsbox @RivalTalks 0x6
hidesprite 0x4
applymovement 0x6 @m2
waitmovement 0x0
msgbox @DadTalks 0x6 'Dad talks and then takes Totodile.
hidesprite 0x5
setvar 0x4011 0x1
release
end

#org @m1
#raw 0x10 'Rival steps down.
#raw 0x12 'Rival steps left.
#raw 0xFE

#org @GetStarter
= [blue_fr]Dad: [black_fr]Choose [green_fr]Chikorita[black_fr]?\nIt likes to inflict status\lconditions and recover its health.

#org @IfPlayerChoosesNo
= [blue_fr]Dad[black_fr]: Take your time.

#org @RivalTalks
= [blue_fr][rival][black_fr]: Well then,I'm\ngoing to choose Cyndaquil.

#org @m2
#raw 0x13 'Step Right
#raw 0x11 'Step Up
#raw 0xFE

#org @DadTalks
= [blue_fr]Dad[black_fr]: Hmmm, that\nstarter likes to fight far\laway.\lI hope you both will be\lhappy with your new partners!\lAnd this [blue_fr]Totodile[black_fr] will\lbe coming with me!
You have to put a # before the dynamic in the first line.
It has to be '#dynamic 0x800000"
It will fix the No #org error. Apart from that there are a few other typos in the code that may result in error:
1. "showpokekpic" in the 2nd line in @start has to be"showpokepic"
2. "mgsbox" in the 5th line in @yes has to be "msgbox"
__________________
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old July 18th, 2020 (1:49 AM).
Supercreativename Supercreativename is offline
 
Join Date: Jul 2020
Posts: 3
Thank you so much! I guess it's mostly carelessness. 😅
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old July 18th, 2020 (1:57 AM).
Entaro Ceraphenine's Avatar
Entaro Ceraphenine Entaro Ceraphenine is offline
 
Join Date: Sep 2016
Location: Katones City
Gender: Male
Nature: Quiet
Posts: 48
You're welcome!
Also, here's a tip you can use: you can click the debug button instead of compile in XSE after writing a script. Debug shows all the places where errors might be there, but it wont compile the script in the game (even if it looks like it is compiling the script in the game). After fixing all the errors in the script (you might have to debug multiple times), you can then hit compile and proceed normally.

Typos in scripts can be annoying and this is what I do.
Feel free to ask if you wanna know about anything else in scripting!
__________________
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:15 AM.