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

TrollandToad.com
Reply
 
Thread Tools
  #1    
Old October 13th, 2013 (8:52 PM).
ep!c ep!c is offline
Banned
     
    Join Date: Mar 2013
    Gender: Male
    Posts: 124
    Setting Scripts on Tiles

    Hello everyone.
    Today I gonna show you, how to set scripts on tiles and how to expand the table up to FF.
    I'm sure you all know these behaviour bytes in the block editor of AdvanceMap.
    We're gonna edit the behaviour bytes 0x81 to 0xFF.

    Expanding the table

    Open your hex-editor and go to the offset 0x06D244.
    There is a pointer, which points to the scripts from tiles 0x81 to 0x8F.
    As we want more than just 15 Scripts, we repoint this table.
    Replace the pointer at 0x06D244 with another pointer with free space..

    Spoiler:


    In my tutorial, I will use the offset 0xA60000 as new table-offset.

    Setting up the table

    Now we need to write our scripts, all next to each other at the table.
    For example, I want to make a script on behaviour-byte 0x81.
    Then I have to put this script FIRST in the table.
    The SECOND is 0x82, the THIRD 0x83 ... etc.
    Funny fact: These scripts must be next to each other without FF byte between them!

    Open your XSE-Editor and load your ROM.
    Write your script, for example, like this:

    Spoiler:


    As dynamic offset for textes, applymovements etc we use 0xA80000.
    But keep in mind, that we must use #org 0xA60000 and not a dynamic expression
    like "#org @start"!

    Compile your Script and open your hex-editor once again.
    Jump again to position A60000 and see what changed..


    Spoiler:


    Yeah, this is our Script, beginning with 0x23, the callasm command.
    Now look after the script. The free space begins again at 0xA60010.
    I want to make another Tile-Script.
    This time, I use 0xA60010 as my starting offset...

    Spoiler:


    Now reopen the ROM-file in your hex-editor and we again see what changed.

    Spoiler:


    Right after our 0x81-Script, we made our 0x82-Script!
    The free space begins at 0xA60019 and as you might guess, this is your next
    Script-Offset for the 0x83-behaviour-byte.
    I'm sorry that you must always reopen your file in the hexeditor and look which
    script-offset you have to use next.. ^.^

    Whats left..?

    Using AdvanceMap for setting behaviour-bytes

    So, open AdvanceMap and click on this purple puzzle picture.
    Now you're in the block-editor.
    Select the tile, which you want to set the behaviour-byte on.

    Spoiler:


    I want to set my Tree-tile to a script.
    Normally I would use a headbutt-script, but.. whatever ^.^
    Look at the marked thing on your right.
    These are the behaviour bytes.
    For example, I want to set my first script on this tile, means 0x81.

    Spoiler:

    (sorry that i made the screen wrong.. I inserted 0x81 of course.)


    Save your file in AdvanceMap and..

    Testing the result in VBA or No$GBA

    Open your favourite emulator and load your ROM.
    Now go to a Map, where this tile is on, and click the A-button.

    Spoiler:


    Yay, we got it working

    If you want to make requests for other ROMs or just have a problem/question
    write it in this tutorial thread, please, and don't write me PMs..

    Gl&Hf!
    Reply With Quote

    Relevant Advertising!

      #2    
    Old October 14th, 2013 (10:26 PM).
    AntiRellik1's Avatar
    AntiRellik1 AntiRellik1 is offline
       
      Join Date: Sep 2013
      Gender: Male
      Posts: 36
      This is very interesting. Have you located the script for Surf? Since all water tiles are surfable... I'm looking for a way to enable surf without a badge.
      Reply With Quote
        #3    
      Old October 15th, 2013 (2:20 AM).
      ep!c ep!c is offline
      Banned
         
        Join Date: Mar 2013
        Gender: Male
        Posts: 124
        Hey, thx for this request.
        Today I will search for surf and tomorrow I might tell you how to remove
        the need of a badge.
        Reply With Quote
          #4    
        Old October 15th, 2013 (6:51 PM).
        AntiRellik1's Avatar
        AntiRellik1 AntiRellik1 is offline
           
          Join Date: Sep 2013
          Gender: Male
          Posts: 36
          Quote:
          Originally Posted by ep!c View Post
          Hey, thx for this request.
          Today I will search for surf and tomorrow I might tell you how to remove
          the need of a badge.
          Thanks a lot. I'm also looking into it, but so far nothing.
          Reply With Quote
            #5    
          Old October 15th, 2013 (11:33 PM).
          Pinkish Purple's Avatar
          Pinkish Purple Pinkish Purple is offline
          五代目水影
          • Silver Tier
           
          Join Date: Aug 2012
          Location: Kirigakure
          Age: 19
          Gender: Female
          Nature: Naughty
          Posts: 368
          So this tutorial can work with rock climb right?
          __________________
          Reply With Quote
            #6    
          Old October 16th, 2013 (2:49 AM).
          GoGoJJTech's Avatar
          GoGoJJTech GoGoJJTech is offline
          (☞゚ヮ゚)☞ http://GoGoJJTech.com ☜(゚ヮ゚☜)
          • Gold Tier
           
          Join Date: Nov 2012
          Location: Earth
          Age: 19
          Gender: Female
          Nature: Jolly
          Posts: 2,477
          Quote:
          Originally Posted by Pinkish Purple View Post
          So this tutorial can work with rock climb right?
          You would probably need a script for each tile of rock climb since all rock climbs have a different amount of rocks
          __________________
          I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this into your signature.
          The HGSS Music Patch - The BW/2 Music Patch - ASM: Switch Music Based on Seasons
          Romhack.me Profile - Pokecommunity Profile - Youtube Channel

          Support me at my site!
          Pokémon Platinum Red and Blue
          Reply With Quote
            #7    
          Old October 16th, 2013 (4:15 AM).
          ep!c ep!c is offline
          Banned
             
            Join Date: Mar 2013
            Gender: Male
            Posts: 124
            Nope, as there is a variable, where the player-facing is stored.
            -> You need only 1 script with 4 different checks!
            Reply With Quote
              #8    
            Old October 16th, 2013 (7:43 PM).
            AntiRellik1's Avatar
            AntiRellik1 AntiRellik1 is offline
               
              Join Date: Sep 2013
              Gender: Male
              Posts: 36
              Quote:
              Originally Posted by ep!c View Post
              Nope, as there is a variable, where the player-facing is stored.
              -> You need only 1 script with 4 different checks!
              Have you discovered anything about surf? I haven't had the time to poke around with the rom, I was thinking of testing a bunch of checkflags to see if I could nail the one for surf. Maybe I'll find something over the weekend :\
              Reply With Quote
                #9    
              Old October 26th, 2013 (7:59 PM).
              loki123 loki123 is offline
                 
                Join Date: Oct 2013
                Gender: Male
                Posts: 17
                hey dude i couldnt get this to work cani PM u?
                Reply With Quote
                  #10    
                Old November 4th, 2013 (10:34 AM).
                M.L's Avatar
                M.L M.L is offline
                Invisible
                   
                  Join Date: Oct 2010
                  Gender: Male
                  Nature: Quiet
                  Posts: 765
                  This is a great way to incorporate mini games aswell as other things in the game thanx
                  __________________
                  Fluffy
                  Reply With Quote
                    #11    
                  Old November 14th, 2013 (1:35 AM).
                  kearnseyboy6's Avatar
                  kearnseyboy6 kearnseyboy6 is offline
                  Aussie's Toughest Mudder
                     
                    Join Date: Dec 2008
                    Posts: 300
                    Unfortunately this doesn't work with JPAN's hacked engine since he removed and moved most tile behaviours
                    __________________
                    HOLIDAYING CURRENTLY!!
                    Reply With Quote
                      #12    
                    Old November 14th, 2013 (5:13 AM).
                    ep!c ep!c is offline
                    Banned
                       
                      Join Date: Mar 2013
                      Gender: Male
                      Posts: 124
                      Researching JPANs new tile-behaviours should be no problem..
                      Maybe I develop JPANs engine too, when I have more free time.
                      Reply With Quote
                        #13    
                      Old December 3rd, 2013 (11:20 PM).
                      awipe1's Avatar
                      awipe1 awipe1 is offline
                         
                        Join Date: Aug 2012
                        Gender: Male
                        Posts: 215
                        Hey just curious do you know how to edit previous Behaviour bytes? Because I need to change almost all of them! :p
                        __________________
                        Check out my Pokemon Rom! Click the Image Below!
                        Reply With Quote
                          #14    
                        Old December 4th, 2013 (11:51 PM).
                        ep!c ep!c is offline
                        Banned
                           
                          Join Date: Mar 2013
                          Gender: Male
                          Posts: 124
                          Yes of course thats possible:
                          Go to 0x06D244 and check the original pointer there.
                          It is: 06 76 1A 08.
                          [06][76][1A] -> [1A][76][06]
                          Go to the offset 0x1A7606 in your hex-editor and you will notice always the same structure:
                          [0F][00][Pointer][03][02]
                          msgbox @text;callstd 3;end =)

                          Reply With Quote
                            #15    
                          Old December 19th, 2013 (9:39 PM). Edited December 19th, 2013 by vongerbys10.
                          vongerbys10's Avatar
                          vongerbys10 vongerbys10 is offline
                             
                            Join Date: Jun 2013
                            Gender: Male
                            Posts: 27
                            How can I make a script tile works?
                            When I step on it. It works but its work again and again.
                            __________________
                            Hoenn is the BEST!
                            Remake is SPECIAL!


                            #Hoenn Remake
                            Reply With Quote
                              #16    
                            Old December 19th, 2013 (10:04 PM).
                            ep!c ep!c is offline
                            Banned
                               
                              Join Date: Mar 2013
                              Gender: Male
                              Posts: 124
                              Script tiles aren't really related to this tutorial, as this tutorial is only useful for scripts on specific graphics, like a tree for headbutt for example, so you musn't make 100 signposts :D
                              Reply With Quote
                                #17    
                              Old December 30th, 2013 (3:13 PM).
                              bitelaserkhalif's Avatar
                              bitelaserkhalif bitelaserkhalif is offline
                              Falcon Punch!!
                                 
                                Join Date: Dec 2013
                                Location: Indonesia || Jakarta
                                Age: 17
                                Gender: Male
                                Nature: Bold
                                Posts: 68
                                Is this tutorial also works for PKSV, but with different script?
                                __________________

                                I made sort of Pokemon Hack.
                                ALSO VISIT MY BLOG: http://khaliffadhillah.blogspot.com/
                                Oh btw, that signature picture is reference to Initial D
                                Reply With Quote
                                  #18    
                                Old December 30th, 2013 (9:26 PM).
                                ep!c ep!c is offline
                                Banned
                                   
                                  Join Date: Mar 2013
                                  Gender: Male
                                  Posts: 124
                                  You can use all script-editors for your script, just be sure that your start-offset isnt dynamic.
                                  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

                                  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 5:18 AM.