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

Reply
 
Thread Tools
  #1    
Old March 25th, 2013 (1:54 AM). Edited September 10th, 2013 by Jambo51.
Jambo51's Avatar
Jambo51 Jambo51 is offline
Glory To Arstotzka
     
    Join Date: Jun 2009
    Gender: Male
    Nature: Quiet
    Posts: 732
    Hey guys, and welcome to my tool showcase!

    Battle Script Pro
    Spoiler:
    This helps you to create new effects for moves, and slightly simplifies the actual insertion of a battle script as the tool compiles and inserts it for you!

    This thread is ONLY for the tool itself and related discussions. Please do NOT ask questions about the scripting language itself here. Direct your queries about the Scripting Language itself to here.

    Please also ensure you have updated to the latest .NET framework.


    Features:
    Dynamic Offsets - Searches for free space to insert into on your behalf
    SQLite Database - Uses an SQLite database to store the commands and information related to them. Quick and small in size!
    Coded in C#.Net - Simply the language I am most comfortable with. Sorry Mac/Linux users!
    Tabbed Interface - Like XSE, you can have several scripts open at any one time. Makes for easier editing, or even copy and pasting!
    Decompilation - Decompiles scripts from the ROM. This is known to be a little slow and buggy and is still in development.
    Compilation - Compiles scripts. Well, what else would you expect a Script Editor to do?
    Custom Commands - Allows you to define custom commands using a (hopefully) simple format in the commands header file.
    XSE Style Definitions - Allows you to define certain strings to have a certain value. Can make scripting easier.

    Currently, it only "supports" BPRE, as I haven't added the necessary data to the INIs to support any other ROM, but if this data were to be added, it would work perfectly well.

    Note, what this actually means is that the tool won't be able to decompile battle scripts from the effect table, and you won't be able to use the "keywords" I have defined. It will still be able to insert, and decompile, scripts to any given ROM.

    Now, I hear you ask, "What do you mean by 'keywords'"?

    Good question, sir/madam! What it actually means is that it allows you commonly used offsets by referencing a "keyword".

    Eg, I want to check what move is being executed, and jump somewhere if it is this move, say Pound. Normally, you'd have to do this:
    Code:
    jumpifhalfword 0x0 0x02023D4A 0x1 @somewhere
    But with "keywords", you can do this instead:
    Code:
    jumpifhalfword B_== move MOVE_POUND @somewhere
    I feel that the latter is easier to understand, since you don't need to remember the various RAM Locations!

    So, to the nitty gritty stuff.
    Compiler Directives:
    Spoiler:
    #org - Defines the start of any script segment or a jump anchor.
    #define - Lets you define some text string to have a specific associated value.
    #include - Lets you include a header file. The header files themselves are just lists of #defines.
    #dynamic - Defines the starting search location for dynamically assigned scripts. Necessary if you have any dynamic offsets anywhere in your script. Note, you can have more than 1 #dynamic to assign different parts of the script to different areas of the ROM. I don't know why you would want to do that, but I digress.
    #freespacebyte - This allows you to define what byte is regarded as free space in your ROM. Unless you explicitly tell the tool otherwise, the tool will use 0xFF as the free space byte.



    Keywords:
    Spoiler:
    baselocationbattledata
    baselocationpartydata
    attacker
    target
    attackpartner
    targetpartner
    move
    battletype
    terrainbyte
    weather
    weatherturns
    numberofpokemon
    attackdamage
    knockedoffitem
    loopcounter
    currentposition
    outcome
    effectchooser
    multistringchooser
    attackmultiplier
    statchange



    Here are some screenshots: Note, these screenshots are actually a little out of date, as I've redesigned the interface since I took them.
    Spoiler:

    The Main Interface


    The Main Interface with some scripts open


    The Goto Line Interface


    The Find Text Interface


    The Find and Replace Interface


    A decompiled script, with some basic formatting in place


    So you know, this tool is still in development, so if you have any sensible feature requests, or any ideas, or whatever, let me know! I'll try my best to implement them if I like them!

    I've tested this quite thoroughly, but I can't guarantee it's bug free. So do let me know if you encounter any bugs. Note, by bugs, I mean occasions where the tool actually crashes or displays garbage data or something. Not occasions where the tool complains about "Unknown Commands" because I know of these and coded in checks to ensure that the tool wouldn't crash when it hit such a command.

    Without any further ado: the tool itself.

    After downloading, you must press F5 or Help -> Update Database in order to get the most up to date version of the database available. This way, I can ensure that you can easily access the database.


    Unnamed Trainer Editor
    Spoiler:
    A new trainer editor which correctly labels the AI and IV values, as well as supporting reading from an INI to help ensure that it should be future proof!
    Attached Files
    File Type: zip UnnamedTrainerEditor.zip‎ (37.7 KB, 2469 views) (Save to Dropbox)
    File Type: zip BSP.zip‎ (1.23 MB, 1339 views) (Save to Dropbox)
    __________________
    Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!
    Reply With Quote

    Relevant Advertising!

      #2    
    Old March 25th, 2013 (2:21 AM).
    Aryan143's Avatar
    Aryan143 Aryan143 is offline
    The Fennekin Fan!
       
      Join Date: Jul 2012
      Location: Delhi, India
      Age: 17
      Gender: Male
      Nature: Modest
      Posts: 756
      Wow completely amazing tool. It will help in my hack and others too.
      __________________
      Check out my gaming company:

      Reply With Quote
        #3    
      Old March 25th, 2013 (3:20 AM).
      BlackWhiteRobin's Avatar
      BlackWhiteRobin BlackWhiteRobin is offline
         
        Join Date: Sep 2012
        Age: 19
        Gender: Male
        Nature: Quirky
        Posts: 534
        Judging the screenshots, it IS user-friendly, right?
        Is it hard to make battle scripts?
        Sorry for the noob question but is there a battle script tutorial included?
        __________________

        Reply With Quote
          #4    
        Old March 25th, 2013 (3:32 AM).
        Jambo51's Avatar
        Jambo51 Jambo51 is offline
        Glory To Arstotzka
           
          Join Date: Jun 2009
          Gender: Male
          Nature: Quiet
          Posts: 732
          Quote:
          Originally Posted by robin22gongon View Post
          Judging the screenshots, it IS user-friendly, right?
          Is it hard to make battle scripts?
          Sorry for the noob question but is there a battle script tutorial included?
          No, but I'm currently waiting on a tutorial thread to be approved. As to user friendliness, you tell me. It looks OK to me, but I'm likely to be biased. Feedback is always appreciated!
          __________________
          Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!
          Reply With Quote
            #5    
          Old March 25th, 2013 (3:51 AM).
          BlackWhiteRobin's Avatar
          BlackWhiteRobin BlackWhiteRobin is offline
             
            Join Date: Sep 2012
            Age: 19
            Gender: Male
            Nature: Quirky
            Posts: 534
            Oh, I hope that thread gets approved soon. Yep checked it. It's definitely user friendly for those who learned scripting. So for anyone who plans to use this, learn scripting in XSE first. BTW Jambo51, tool's great! It works real smooth. Thanks!
            __________________

            Reply With Quote
              #6    
            Old March 25th, 2013 (3:55 AM).
            Spherical Ice's Avatar
            Spherical Ice Spherical Ice is offline
            • Moderator
            • Silver Tier
             
            Join Date: Nov 2007
            Location: Bristol, UK
            Age: 19
            Posts: 5,185
            whoa, this is really awesome. I'm getting lots of ideas for signature moves for fakemon now...
            __________________

            A Pokemon that is discriminated!
            Support squirtle and make it everyone's favourite.
            Reply With Quote
              #7    
            Old March 25th, 2013 (3:58 AM).
            esperance's Avatar
            esperance esperance is offline
            • Platinum Tier
             
            Join Date: Mar 2010
            Location: Ohio
            Age: 20
            Gender: Male
            Nature: Relaxed
            Posts: 3,818
            This tool looks very nice.
            It's good to see a battle script editor finally released!
            __________________

            A Pokemon that is discriminated!
            Support squirtle and make it everyone's favourite.
            Reply With Quote
              #8    
            Old March 25th, 2013 (5:58 PM).
            BlackWhiteRobin's Avatar
            BlackWhiteRobin BlackWhiteRobin is offline
               
              Join Date: Sep 2012
              Age: 19
              Gender: Male
              Nature: Quirky
              Posts: 534
              Oh hey there! Jambo51, can we apply battle scripts on wild Pokemon?
              __________________

              Reply With Quote
                #9    
              Old March 25th, 2013 (10:26 PM).
              Jambo51's Avatar
              Jambo51 Jambo51 is offline
              Glory To Arstotzka
                 
                Join Date: Jun 2009
                Gender: Male
                Nature: Quiet
                Posts: 732
                Battle scripts can be specifically applied to wild Pokémon, yes. Their most common use is for moves, but realistically, they can be used for several purposes when you manipulate them correctly.
                __________________
                Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!
                Reply With Quote
                  #10    
                Old March 26th, 2013 (2:54 PM).
                HyperXhydra's Avatar
                HyperXhydra HyperXhydra is offline
                   
                  Join Date: Oct 2011
                  Gender: Male
                  Posts: 331
                  Wow, I was hoping for a tool to change move effects!, I think I said it in one of the research threads, thanks a lot.
                  Reply With Quote
                    #11    
                  Old March 27th, 2013 (4:52 PM).
                  Jambo51's Avatar
                  Jambo51 Jambo51 is offline
                  Glory To Arstotzka
                     
                    Join Date: Jun 2009
                    Gender: Male
                    Nature: Quiet
                    Posts: 732
                    Hey guys, this is just a post to advise you that you should update the tool and all the data files. I didn't realise when I put together the .RAR before that I was bundling an outdated version of the .exe file. Sorry about that!

                    I also changed it to a .ZIP file since that tends to be an easier format to decompress.
                    __________________
                    Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!
                    Reply With Quote
                      #12    
                    Old March 27th, 2013 (7:59 PM).
                    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
                    Jambo Jambo Jambo! Can I please import my syntax highlighting in to it? Please oh please?
                    __________________
                    あなた は しきしゃ です
                    わたし は ばか です
                    Reply With Quote
                      #13    
                    Old March 27th, 2013 (11:14 PM).
                    KennyKid's Avatar
                    KennyKid KennyKid is offline
                    scipter
                       
                      Join Date: Mar 2013
                      Location: Civiland (Cai Nhum,Vinh Long :D)
                      Gender: Male
                      Nature: Quiet
                      Posts: 30
                      Oh Jambo, it's fantastic! Maybe in future I'll use it for my hack.
                      Thank again
                      __________________


                      Quick way to edit palettes, indexing sprites and insert tileset
                      Reply With Quote
                        #14    
                      Old March 28th, 2013 (2:49 AM).
                      Jambo51's Avatar
                      Jambo51 Jambo51 is offline
                      Glory To Arstotzka
                         
                        Join Date: Jun 2009
                        Gender: Male
                        Nature: Quiet
                        Posts: 732
                        Quote:
                        Originally Posted by Darthatron View Post
                        Jambo Jambo Jambo! Can I please import my syntax highlighting in to it? Please oh please?
                        Uh, speak to me on the IRC when you get a chance, and we can discuss this. I tried to add to add it before, but there were problems with its implementation.
                        __________________
                        Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!
                        Reply With Quote
                          #15    
                        Old April 3rd, 2013 (5:53 PM).
                        destinedjagold's Avatar
                        destinedjagold destinedjagold is offline
                        Oh Hai Thar~
                        • Silver Tier
                         
                        Join Date: May 2007
                        Location: Philippines
                        Age: 26
                        Gender: Male
                        Nature: Careful
                        Posts: 8,507
                        I have a question though.

                        Quote:
                        This helps you to create new effects for moves, and slightly simplifies the actual insertion of a battle script as the tool compiles and inserts it for you!
                        So, basically, this tool will only add effects to already-existing (or newly inserted) moves, right? :3
                        __________________


                        FC: 0061-1111-6462
                        TSV: 1364(X), 0790(OR)

                        Reply With Quote
                          #16    
                        Old April 4th, 2013 (11:12 AM).
                        Jambo51's Avatar
                        Jambo51 Jambo51 is offline
                        Glory To Arstotzka
                           
                          Join Date: Jun 2009
                          Gender: Male
                          Nature: Quiet
                          Posts: 732
                          Quote:
                          Originally Posted by destinedjagold View Post
                          I have a question though.



                          So, basically, this tool will only add effects to already-existing (or newly inserted) moves, right? :3
                          Well, yes and no. You can wholesale replace move effects if you so desire, and it's quite happy to insert into new move effect slots if you tell it to.

                          But the tool itself won't do the hard work of repointing the tables which need to be repointed to add new moves, nor will it insert the necessary asm and movesets for if you want to have more than 0x1FF moves in total.
                          __________________
                          Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!
                          Reply With Quote
                            #17    
                          Old April 19th, 2013 (9:15 PM).
                          MrDollSteak's Avatar
                          MrDollSteak MrDollSteak is offline
                          Formerly known as 11bayerf1
                             
                            Join Date: Dec 2008
                            Location: Hong Kong
                            Age: 22
                            Gender: Male
                            Posts: 811
                            I've been having problems with the most recent version. Whenever I want to decompile or compile anything on a rom, it either causes the 'unhandled exception' message, or says the rom is unable to read. I was wondering if anyone else is having this problem?

                            I have changed the location of the move effect table and have replaced the .ini accordingly. I've even tried using it on a blank fire red rom and couldn't get it to work either.

                            If anyone knows a solution, I'd greatly appreciate it.

                            Thanks!
                            __________________
                            Reply With Quote
                              #18    
                            Old April 20th, 2013 (11:32 AM). Edited April 23rd, 2013 by Jambo51.
                            Jambo51's Avatar
                            Jambo51 Jambo51 is offline
                            Glory To Arstotzka
                               
                              Join Date: Jun 2009
                              Gender: Male
                              Nature: Quiet
                              Posts: 732
                              Could you be more specific?

                              Are you getting any other error messages, anywhere?

                              If nothing else, send me a copy of the "Unhandled Exception" error logs in a PM and I'll see what is causing the issues.

                              ETA: It looks somewhat like the executable or the inis or something got corrupted in the last upload. I've reuploaded now, with a nice new feature too!
                              __________________
                              Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!
                              Reply With Quote
                                #19    
                              Old April 23rd, 2013 (5:25 PM).
                              Kurapika's Avatar
                              Kurapika Kurapika is offline
                              Grudgebearer
                                 
                                Join Date: Feb 2013
                                Location: Lavendar Town - Morocco
                                Gender: Male
                                Nature: Naughty
                                Posts: 406
                                Hi Jambo,
                                I am unable to do anything with BSP, I keep getting this error:
                                Spoiler:

                                and, here is the log, sorry it is partly in French: http://pastebin.com/raw.php?i=0fU1akw0
                                __________________
                                Reply With Quote
                                  #20    
                                Old April 24th, 2013 (2:08 AM).
                                Shadowraze's Avatar
                                Shadowraze Shadowraze is offline
                                ur mum
                                   
                                  Join Date: Apr 2013
                                  Location: ur mum
                                  Age: 18
                                  Gender: Other
                                  Nature: Lonely
                                  Posts: 798
                                  Quote:
                                  Originally Posted by Kurapika View Post
                                  Hi Jambo,
                                  I am unable to do anything with BSP, I keep getting this error:
                                  Spoiler:

                                  and, here is the log, sorry it is partly in French: http://pastebin.com/raw.php?i=0fU1akw0
                                  Try downloading the tool again. I have that problem a few hours ago and have bugged Jambo to fix it nonstop. It's practically a missing DLL just for you to know. :3
                                  Reply With Quote
                                    #21    
                                  Old April 24th, 2013 (2:08 AM).
                                  Jambo51's Avatar
                                  Jambo51 Jambo51 is offline
                                  Glory To Arstotzka
                                     
                                    Join Date: Jun 2009
                                    Gender: Male
                                    Nature: Quiet
                                    Posts: 732
                                    To all of you who were having issues, I tracked down the problem, and included the relevant files in the BSP download. I also fixed a minor compiling bug.

                                    Update, and decompile/compile to your heart's content!

                                    Enjoy!
                                    __________________
                                    Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!
                                    Reply With Quote
                                      #22    
                                    Old April 24th, 2013 (2:52 AM).
                                    MrDollSteak's Avatar
                                    MrDollSteak MrDollSteak is offline
                                    Formerly known as 11bayerf1
                                       
                                      Join Date: Dec 2008
                                      Location: Hong Kong
                                      Age: 22
                                      Gender: Male
                                      Posts: 811
                                      Quote:
                                      Originally Posted by Jambo51 View Post
                                      To all of you who were having issues, I tracked down the problem, and included the relevant files in the BSP download. I also fixed a minor compiling bug.

                                      Update, and decompile/compile to your heart's content!

                                      Enjoy!
                                      Thanks Jambo! Great work. I've been playing with it for awhile now and it is just awesome!
                                      __________________
                                      Reply With Quote
                                        #23    
                                      Old April 24th, 2013 (3:37 AM).
                                      Eren Jaeger's Avatar
                                      Eren Jaeger Eren Jaeger is offline
                                      Pianoist
                                         
                                        Join Date: Apr 2013
                                        Location: EARTH
                                        Gender: Male
                                        Nature: Serious
                                        Posts: 154
                                        This makes some of my work easier. oh life.
                                        __________________
                                        Music is art
                                        Reply With Quote
                                          #24    
                                        Old April 24th, 2013 (5:33 AM).
                                        Kurapika's Avatar
                                        Kurapika Kurapika is offline
                                        Grudgebearer
                                           
                                          Join Date: Feb 2013
                                          Location: Lavendar Town - Morocco
                                          Gender: Male
                                          Nature: Naughty
                                          Posts: 406
                                          Ugh, now it doesn't even launch for me. ;_; As soon as I execute it this wild crash message shows up:
                                          Spoiler:

                                          Log, (in French sorry): http://pastebin.com/raw.php?i=RcKcTMBa
                                          __________________
                                          Reply With Quote
                                            #25    
                                          Old April 24th, 2013 (8:38 AM).
                                          Jambo51's Avatar
                                          Jambo51 Jambo51 is offline
                                          Glory To Arstotzka
                                             
                                            Join Date: Jun 2009
                                            Gender: Male
                                            Nature: Quiet
                                            Posts: 732
                                            OK, all you guys should re-download, and I have rebuilt the executable to version 0.9.0.0.
                                            This version includes some extra decompiling options, and is, to the best of my knowledge, free of these bugs.

                                            The entire programme, data and all will need updated, since I've added a lot of new stuff. If you have edited your ini in any way, back it up, and after the update, merge it with the new one.
                                            __________________
                                            Hey guys, please check out my recreations of the gen 1 and 2 music on my custom engine at my SoundCloud! - Here!
                                            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 1:36 AM.