PDA

View Full Version : [Tutorial] How to Compile Scripts


Qwerty-117
May 27th, 2008, 01:10 AM
Compiling scripted scripts
I decided to make this because I noticed in the other tutorials people were asking about the “empty command database” and “file not found” errors a lot, I was having those same problems and I figured out how to get past them efficiently
What you need;
·ScriptEd
·The attached files (explained later)
·Diamond Cutter
·Advance Map
-Because this is a compiling tutorial, I won’t say how to make scripts, but here’s one for my examples, it makes the person say “hello, <your name>!”
#org 0x800000
Lock
FacePlayer
MsgBox 0x800050
BoxSet 0x6
Release
End

#org 0x800050
= hello, \v\h01!
End

Step 1: Download and unzip the attached files. Place them in the same folder as ScriptEd. Place DiamondCutter in the ScriptEd folder. (if you don’t do this you can get a lot of errors)

Step 2: Open Scripted and put in your script (make sure there are no errors in it)

Step 3: Click “Compile”

And choose your rom in the save box. (your ROM MUST be in the same folder as ScriptED)

This is where most people have problems. If you get "Run-time error '53' File Not Found”, It means your ROM isn’t in the same folder as ScriptEd or the name of your ROM has symbols in it. (your ROM name can only have letters/numbers, no spaces or symbols)
If you get
"Loading command database...
Empty command database detected. Program halted."
You are missing a file(s). If that’s the case, download the attachment and put the files in your ScriptEd Folder.

Step 4: You should see a window with a heap of text and symbols.

And at the bottom of the window it should say: [/font]
Cleaning up...
Closing file...
Finished processing rubide.rbc.

Now, in the SciptEd folder there should be a file called “rubide.rbc”, that has your script in it (with some extra stuff as well).

Step 5: Open DiamondCutter (which should also be put in the ScriptEd folder), and type your ROM name in the ROM Name section. (it has no selection so you have to type it.)

Un-tick the bottom two things in the options box and In the Code Files box highlight “rubide.rbc” then click ok. A window should come up with the same sort of stuff that ScriptEd had. Now open advance map, choose the person and in the “script offset” box on the right-hand side put the script offset in.
#org 0x800000 <-- offset
FacePlayer.......
Now save the ROM, and test it. (if you have A-map 1.9+ you can check it by clicking “open script” (if ScriptEd is set as your editor)). <to set ScriptEd as your editor go to;
>SETTINGS
>CHOOSE SCRIPT EDITOR>

Corrosion
May 27th, 2008, 05:15 AM
Qwerty, the topic is almost unreadable. Otherwise, looks like an alright tutorial, though you might want to broaden a bit.

dragonarche
May 27th, 2008, 05:25 AM
"wah"...............
i can barly read the topic
anyway i my scriping thing works fine now

Platinum Lucario
May 27th, 2008, 05:26 AM
Compiling scripted scripts
I decided to make this because I noticed in the other tutorials people were asking about the “empty command database” and “file not found” errors a lot, I was having those same problems and I figured out how to get past them efficiently.
What you need;
·ScriptEd
·The attached files (explained later)
·Diamond Cutter
·Advance Map
-Because this is a compiling tutorial, I won’t say how to make scripts, but here’s one for my examples, it makes the person say “hello, <your name>!”
#org 0x800000
Lock
FacePlayer
MsgBox 0x800050
BoxSet 0x6
Release
End

#org 0x800050
= hello, \v\h01!
End

Step 0: Download and unzip the attached files. Place them in the same folder as ScriptEd. Place DiamondCutter in the ScriptEd folder. (if you don’t do this you can get a lot of errors)

Step 1: Open Scripted and put in your script (make sure there are no errors in it)

Step 2: Click “Compile”

And choose your rom in the save box. (your ROM MUST be in the same folder as ScriptED)

This is where most people have problems. If you get “Run-time error '53' File Not Found”, It means your ROM isn’t in the same folder as ScriptEd or the name of your ROM has symbols in it. (your ROM name can only have letters/numbers, no spaces or symbols)
If you get
“Loading command database...
Empty command database detected. Program halted.”
You are missing a file(s). If that’s the case, download the attachment and put the files in your ScriptEd Folder.

Step 3: You should see a window with a heap of text and symbols.

And at the bottom of the window it should say:
Cleaning up...
Closing file...
Finished processing rubide.rbc.

Now, in the SciptEd folder there should be a file called “rubide.rbc”, that has your script in it (with some extra stuff as well).

Step 4: Open DiamondCutter (which should also be put in the ScriptEd folder), and type your ROM name in the ROM Name section. (it has no selection so you have to type it.)

Un-tick the bottom two things in the options boxand In the Code Files box highlight “rubide.rbc” then click ok. A window should come up with the same sort of stuff that ScriptEd had. Now open advance map, choose the person and in the “script offset” box on the right-hand side put the script offset in.
#org 0x800000 ßoffset
Lock
FacePlayer......
Now save the ROM, and test it. (if you have A-map 1.9+ you can check it by clicking “open script” (if ScriptEd is set as your editor)). <to set ScriptEd as your editor go to;
>SETTINGS
>CHOOSE SCRIPT EDITOR>

You might want to fix the BB code a bit because it's incorrect.
But anyway it's a good tutorial. :) I already know how to compile scripts and it's still working.

Darthatron
May 27th, 2008, 05:53 AM
Thanks for posting, I guess. But it will be totally pointless in a few day's when HackMew's new scripting tool is released. :P

ZodiacDaGreat
May 27th, 2008, 08:15 PM
Thanks for posting, I guess. But it will be totally pointless in a few day's when HackMew's new scripting tool is released.

Yeah true, compilation is done which a click of a button, no messy "File not found" errors

cooley
May 28th, 2008, 01:55 PM
Thanks for posting, I guess. But it will be totally pointless in a few day's when HackMew's new scripting tool is released. :P
Few days??? I've got to talk to him.

Who uses pokescript? Pokescript has so many flaws and errors in coding, etc. ScriptED is even worse. XSE is the real deal, though I can't say much about it.

See yah.

P.S. Fix up the Code for the first post, it is easily fixable. Just do a "Find and Replace" and search for " ' " and replace it with a "

Qwerty-117
May 28th, 2008, 08:25 PM
ok... i fixed all of the font stuff.
it will be heaps easier to read!

master morty
May 29th, 2008, 07:13 AM
omg thanks so much I have been wondering how to do this for 5 years!

Qwerty-117
May 31st, 2008, 09:46 PM
omg thanks so much I have been wondering how to do this for 5 years!
Glad to have helped!
I was hoping this would be useful, it's my first tut, so I thought it might not be very good.

wisemaker
June 2nd, 2008, 07:24 PM
Thanks very much i can't find any tutorial in compiling script in youTube Thx..