The PokéCommunity Forums Fan Games ROM Hacking Tools, Tutorials & Resources
Tutorial How to Compile Scripts

Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.

Reply
 
Thread Tools
  #1    
Old May 27th, 2008 (1:10 AM). Edited April 15th, 2010 by Spherical Ice.
Qwerty-117's Avatar
Qwerty-117 Qwerty-117 is offline
Is looking for a VBScripter
     
    Join Date: Feb 2008
    Location: I forgot
    Age: 23
    Gender:
    Nature: Naughty
    Posts: 66
    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>
    Attached Files
    File Type: zip missing files.zip‎ (7.3 KB, 84 views) (Save to Dropbox)
    __________________





    Never fear death, fear the unlived life

    π = 3.14159265358979323846264338327950288419716939937510

    What else can i put here?
    Reply With Quote

    Relevant Advertising!

      #2    
    Old May 27th, 2008 (5:15 AM).
    Corrosion's Avatar
    Corrosion Corrosion is offline
    Support Pokemon Amber!
       
      Join Date: Dec 2006
      Location: Guess
      Age: 24
      Gender:
      Nature: Brave
      Posts: 95
      Qwerty, the topic is almost unreadable. Otherwise, looks like an alright tutorial, though you might want to broaden a bit.
      __________________
      Reply With Quote
        #3    
      Old May 27th, 2008 (5:25 AM).
      dragonarche's Avatar
      dragonarche dragonarche is offline
      Is back :D
         
        Join Date: Apr 2008
        Location: New bark town
        Gender: Male
        Nature: Brave
        Posts: 457
        Send a message via Windows Live Messenger to dragonarche
        "wah"...............
        i can barly read the topic
        anyway i my scriping thing works fine now
        __________________

        Experienced Vb.net and C# Dev
        Reply With Quote
          #4    
        Old May 27th, 2008 (5:26 AM).
        Platinum Lucario's Avatar
        Platinum Lucario Platinum Lucario is offline
        The Legendary Master of Light!
        • Crystal Tier
         
        Join Date: Jan 2008
        Location: Warrnambool, Victoria, Australia.
        Gender: Male
        Nature: Calm
        Posts: 1,561
        Quote:
        Originally Posted by Qwerty-117 View Post
        [FONT='Tahoma','sans-serif']Compiling scripted scripts[/font]
        [FONT='Tahoma','sans-serif']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.[/font]
        [FONT='Tahoma','sans-serif']What you need;[/font]
        ·[FONT='Tahoma','sans-serif']ScriptEd[/font]
        ·[FONT='Tahoma','sans-serif']The attached files (explained later)[/font]
        ·[FONT='Tahoma','sans-serif']Diamond Cutter[/font]
        ·[FONT='Tahoma','sans-serif']Advance Map[/font]
        [FONT='Tahoma','sans-serif']-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>!”[/font]
        [FONT='Tahoma','sans-serif']#org 0x800000[/font]
        [FONT='Tahoma','sans-serif']Lock[/font]
        [FONT='Tahoma','sans-serif']FacePlayer[/font]
        [FONT='Tahoma','sans-serif']MsgBox 0x800050[/font]
        [FONT='Tahoma','sans-serif']BoxSet 0x6[/font]
        [FONT='Tahoma','sans-serif']Release[/font]
        [FONT='Tahoma','sans-serif']End[/font]
        [FONT='Tahoma','sans-serif'] [/font]
        [FONT='Tahoma','sans-serif']#org 0x800050[/font]
        [FONT='Tahoma','sans-serif']= hello, \v\h01![/font]
        [FONT='Tahoma','sans-serif']End[/font]
        [FONT='Tahoma','sans-serif'] [/font]
        [FONT='Tahoma','sans-serif']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)[/font]
        [FONT='Tahoma','sans-serif'] [/font]
        [FONT='Tahoma','sans-serif']Step 1: Open Scripted and put in your script (make sure there are no errors in it)[/font][FONT='Tahoma','sans-serif'] [/font][FONT='Tahoma','sans-serif'][/font]
        [FONT='Tahoma','sans-serif'] [/font]
        [FONT='Tahoma','sans-serif']Step 2: Click “Compile” [/font]
        [FONT='Tahoma','sans-serif'][/font]
        [FONT='Tahoma','sans-serif']And choose your rom in the save box. (your ROM MUST be in the same folder as ScriptED)[/font]
        [FONT='Tahoma','sans-serif'][/font]
        [FONT='Tahoma','sans-serif'][/font][FONT='Tahoma','sans-serif']This is where most people have problems. If you get “Run-time error '53' File Not Found”, [/font][FONT='Tahoma','sans-serif']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)[/font]
        [FONT='Tahoma','sans-serif']If you get [/font]
        [FONT='Tahoma','sans-serif']“Loading command database...[/font]
        [FONT='Tahoma','sans-serif']Empty command database detected. Program halted.”[/font]
        [FONT='Tahoma','sans-serif']You are missing a file(s). If that’s the case, download the attachment and put the files in your ScriptEd Folder.[/font]
        [FONT='Tahoma','sans-serif'] [/font]
        [FONT='Tahoma','sans-serif']Step 3: You should see a window with a heap of text and symbols.[/font]
        [FONT='Tahoma','sans-serif'] [/font][FONT='Tahoma','sans-serif'] [/font]
        [FONT='Tahoma','sans-serif']And at the bottom of the window it should say: [/font]
        [FONT='Tahoma','sans-serif']Cleaning up...[/font]
        [FONT='Tahoma','sans-serif']Closing file...[/font]
        [FONT='Tahoma','sans-serif']Finished processing rubide.rbc.[/font]
        [FONT='Tahoma','sans-serif'] [/font]
        [FONT='Tahoma','sans-serif']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). [/font]
        [FONT='Tahoma','sans-serif'] [/font]
        [FONT='Tahoma','sans-serif']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.)[/font]
        [FONT='Tahoma','sans-serif'][/font]
        [FONT='Tahoma','sans-serif']Un-tick the bottom two things in the options box[/font][FONT='Tahoma','sans-serif'][/font][FONT='Tahoma','sans-serif']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. [/font]
        [FONT='Tahoma','sans-serif']#org 0x800000 [/font]ß[FONT='Tahoma','sans-serif']offset[/font][FONT='Tahoma','sans-serif'][/font]
        [FONT='Tahoma','sans-serif']Lock[/font]
        [FONT='Tahoma','sans-serif']FacePlayer......[/font]
        [FONT='Tahoma','sans-serif']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;[/font]
        [FONT='Tahoma','sans-serif'] >SETTINGS[/font]
        [FONT='Tahoma','sans-serif'] >CHOOSE SCRIPT EDITOR>[/font]
        [FONT='Tahoma','sans-serif'] [/font]
        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.
        __________________
        [Platinum Lucario's Signature]
        If you need to disable my signature, please give me some advice on how to improve the CSS-DIV code. Thanks!
        Signature Status: Strikes: 1/3 | Infractions: 0/3
        It's time to change the future...
        to a positive direction!

        Let's prevent things from getting bad!

        I'm a ROM and ISO Researcher
        Current Project: Researching Pokémon Mystery Dungeon Adventure Squad games (WiiWare)
        Reply With Quote
          #5    
        Old May 27th, 2008 (5:53 AM).
        Darthatron's Avatar
        Darthatron Darthatron is offline
        巨大なトロール。
        • Silver Tier
         
        Join Date: Jan 2006
        Location: Melbourne, Australia
        Age: 25
        Gender: Male
        Nature: Modest
        Posts: 1,152
        Thanks for posting, I guess. But it will be totally pointless in a few day's when HackMew's new scripting tool is released.
        __________________
        あなた は しきしゃ です
        わたし は ばか です
        Reply With Quote
          #6    
        Old May 27th, 2008 (8:15 PM).
        ZodiacDaGreat's Avatar
        ZodiacDaGreat ZodiacDaGreat is offline
        Working on a Mobile System
           
          Join Date: Feb 2007
          Location: South Pacific
          Age: 24
          Gender: Male
          Nature: Relaxed
          Posts: 429
          Send a message via ICQ to ZodiacDaGreat
          Quote:
          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
          __________________
          Reply With Quote
            #7    
          Old May 28th, 2008 (1:55 PM).
          cooley's Avatar
          cooley cooley is offline
          ///Keepin' it simple
          • Silver Tier
           
          Join Date: Feb 2007
          Location: United States
          Age: 22
          Gender: Male
          Nature: Impish
          Posts: 1,147
          Send a message via Windows Live Messenger to cooley
          Quote:
          Originally Posted by Darthatron View Post
          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 "
          __________________

          Reply With Quote
            #8    
          Old May 28th, 2008 (8:25 PM). Edited May 28th, 2008 by Qwerty-117.
          Qwerty-117's Avatar
          Qwerty-117 Qwerty-117 is offline
          Is looking for a VBScripter
             
            Join Date: Feb 2008
            Location: I forgot
            Age: 23
            Gender:
            Nature: Naughty
            Posts: 66
            ok... i fixed all of the font stuff.
            it will be heaps easier to read!
            __________________





            Never fear death, fear the unlived life

            π = 3.14159265358979323846264338327950288419716939937510

            What else can i put here?
            Reply With Quote
              #9    
            Old May 29th, 2008 (7:13 AM).
            master morty's Avatar
            master morty master morty is offline
            Master Spriter
               
              Join Date: May 2008
              Location: The world I created yesterday
              Gender:
              Nature: Mild
              Posts: 93
              omg thanks so much I have been wondering how to do this for 5 years!
              Reply With Quote
                #10    
              Old May 31st, 2008 (9:46 PM).
              Qwerty-117's Avatar
              Qwerty-117 Qwerty-117 is offline
              Is looking for a VBScripter
                 
                Join Date: Feb 2008
                Location: I forgot
                Age: 23
                Gender:
                Nature: Naughty
                Posts: 66
                Quote:
                Originally Posted by mattsna View Post
                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.
                __________________





                Never fear death, fear the unlived life

                π = 3.14159265358979323846264338327950288419716939937510

                What else can i put here?
                Reply With Quote
                  #11    
                Old June 2nd, 2008 (7:24 PM).
                wisemaker wisemaker is offline
                   
                  Join Date: May 2008
                  Gender:
                  Posts: 3
                  Thanks very much i can't find any tutorial in compiling script in youTube Thx..
                  __________________

                  5.0 beta of Ruby Destiny make by DestinedJagold!!
                  remake by me John Joseph
                  X are incompletes.
                  Reply With Quote
                  Reply
                  Quick Reply

                  Sponsored Links
                  Thread Tools

                  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 3:15 PM.