The PokéCommunity Forums Fan Games ROM Hacking Tools, Tutorials & Resources
Tutorial Hex Editing Trainers

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

Reply
 
Thread Tools
  #1    
Old February 13th, 2007 (10:50 AM).
Glitchfinder's Avatar
Glitchfinder Glitchfinder is offline
Let's all get along, please?
  • Silver Tier
 
Join Date: Sep 2006
Location: The Twilight Zone
Age: 27
Gender: Male
Nature: Careful
Posts: 477
Hi! I decided to post another tutorial that I had translated from the tutorials at the German site Rom Hackers World. This one is on hex-editing trainers.


The examples are taken out of Sapphire, which should be the same as ruby.
You should be able to find the data by loading a text editing table, searching the
trainer name, and using the pointer that is with the trainer's name when you find it
with a bunch of other trainers.
WARNING: Do not change the two bytes before the data.
The format is as follows for normal trainers:
< 0000 > < 1A00 > < 4A01 > < 0000 > | < 0000 > < 1A00 > < 4A01 > < 0000 >
This is the data for a fisherman.
This is what each number means with normal trainers:
< 0000 > < level > < 00 > < POKÉMON 1 > < carried Item (0000 for no Item) > | < 0000 > < level > < 00 > < POKÉMON 2 > < carried Item > etc..
Here is an example:
< 0000 > < level 1A = 26 > < 00 > < Carvanha = 4A01 > < 0000 > |
< 0000 > < level 1A = 26 > < 00 > < Carvanha = 4A01 > < 0000 >
Gym leaders have the attacks too!
< C800 > < 1600 > < 5100 > < 3000 > < 3100 > < 5400 > < 5600 > < 0000 >
< C800 > < 1400 > < 6400 > < CD00 > < 7800 > < D100 > < 3100 > < 0000 >
< FA00 > < 1700 > < 5200 > < 3000 > < 3100 > < 5F00 > < 5600 > < 0000 >
This is the data for Watson, who has the Electric gym.
This is the structure:
< C800 > < level > < 00 > < POKÉMON 1 > < attack 1 > < attack 2 > < attack 3 > < attack 4 > < 0000 >
< C800 > etc..
Pay attention:
The first byte, C8, is untested and may not not be safe!
Reply With Quote

Relevant Advertising!

  #2    
Old February 13th, 2007 (4:08 PM).
skaterseba skaterseba is offline
     
    Join Date: Oct 2006
    Gender:
    Nature: Adamant
    Posts: 18
    i would like to know that if with this i can create my own battle i mean i choose the scene
    and all that if it can be make can you tell me how=?
    Reply With Quote
      #3    
    Old February 14th, 2007 (1:13 PM).
    Glitchfinder's Avatar
    Glitchfinder Glitchfinder is offline
    Let's all get along, please?
    • Silver Tier
     
    Join Date: Sep 2006
    Location: The Twilight Zone
    Age: 27
    Gender: Male
    Nature: Careful
    Posts: 477
    All you have to do is change the pointer of the battle you want to edit. (Or add, if you're editing FR/LG. In FR/LG, there's a whole bunch of blank or semiblank battles you can use) The pointer will be found where you see a bunch of trainer names together. (Just use a table file, and search the name of a trainer you know [in caps], I just search BROCK) Then, scroll to the blank spaces where names could be, add a name, and change the offset to that of a blank area within the ROM. Then, you can use this tutorial to edit the data of the trainer by changing the values in the blank area where the new offset points to. If you figure out how to make it a gym leader, please tell me, because I'll put it into the tutorial. The Gym Leaders and Elite Four members all have preprogrammed moves for their Pokemon, while normal trainers don't. Finally, I would use PET to change the type of trainer that appears, as well as which trainer sprite the trainer uses.
    Reply With Quote
      #4    
    Old February 14th, 2007 (1:31 PM).
    skaterseba skaterseba is offline
       
      Join Date: Oct 2006
      Gender:
      Nature: Adamant
      Posts: 18
      what i mean is that if i can create a battle from zero with a hex editor i mean like adding a battle to the game?
      Reply With Quote
        #5    
      Old February 14th, 2007 (3:58 PM).
      Glitchfinder's Avatar
      Glitchfinder Glitchfinder is offline
      Let's all get along, please?
      • Silver Tier
       
      Join Date: Sep 2006
      Location: The Twilight Zone
      Age: 27
      Gender: Male
      Nature: Careful
      Posts: 477
      I'm not sure about that. If you edit FR/LG, then there is no need, because half of the battles aren't used. I have no idea about inserting new ones. (I've never tried it) If anyone figures out how, please PM me, and I'll add it to the tutorial.
      Reply With Quote
        #6    
      Old February 14th, 2007 (5:31 PM).
      userpr's Avatar
      userpr userpr is offline
      Quilava Trainer
         
        Join Date: Nov 2006
        Age: 25
        Gender:
        Nature: Adamant
        Posts: 51
        This is kind of confusing but I'll try it out before anything else


        P.S. Thanks for this much needed tutorial.
        Reply With Quote
          #7    
        Old March 28th, 2007 (8:13 PM).
        Wil06 Wil06 is offline
           
          Join Date: Mar 2007
          Gender:
          Nature: Adamant
          Posts: 6
          sorry if this is off topic but does PET work with emerald? i have tried it and the trainer names are like not coming out and i get an error while searching for a trainer
          Reply With Quote
            #8    
          Old March 29th, 2007 (4:46 PM).
          skaterseba skaterseba is offline
             
            Join Date: Oct 2006
            Gender:
            Nature: Adamant
            Posts: 18
            it doesn`t work with emerald
            just with ruby/ safire
            Reply With Quote
              #9    
            Old March 29th, 2007 (8:44 PM).
            Irish Witch's Avatar
            Irish Witch Irish Witch is offline
            Office Jenny
               
              Join Date: Jul 2006
              Location: Australia
              Age: 36
              Gender:
              Nature: Lonely
              Posts: 147
              Send a message via AIM to Irish Witch Send a message via Yahoo to Irish Witch
              And even then it doesn't work properly....
              __________________
              PokeScript Assembler C pokewitch inc

              PokeWitch's PokePets

              Smitten the level 25 Kirlia! :: Myrial the Level 22 Pidgeotto
              Reply With Quote
                #10    
              Old March 30th, 2007 (4:37 PM).
              skaterseba skaterseba is offline
                 
                Join Date: Oct 2006
                Gender:
                Nature: Adamant
                Posts: 18
                yeah it`s not the best programs of all xD not even battle ... is good(?)
                Reply With Quote
                  #11    
                Old March 31st, 2007 (3:04 AM).
                tImE's Avatar
                tImE tImE is offline
                It's still me, 44tim44 ;)
                   
                  Join Date: Mar 2007
                  Location: Somewhere in Scandinavia...
                  Nature: Relaxed
                  Posts: 685
                  Where can I find a table file for ruby?
                  Reply With Quote
                    #12    
                  Old March 31st, 2007 (6:53 AM).
                  Black Charizard.'s Avatar
                  Black Charizard. Black Charizard. is offline
                  • Crystal Tier
                   
                  Join Date: Mar 2007
                  Age: 24
                  Gender: Male
                  Nature: Relaxed
                  Posts: 696
                  can someone give me the batle sprite of the boy of pokemon daimond
                  __________________
                  If you traded with me and want to leave a review for me I would really appreciate it! :D
                  My Review Thread

                  Current giveaways:
                  Reply With Quote
                    #13    
                  Old May 27th, 2007 (10:16 AM).
                  chordleburger chordleburger is offline
                     
                    Join Date: May 2007
                    Gender:
                    Nature: Adamant
                    Posts: 1
                    Quote:
                    All you have to do is change the pointer of the battle you want to edit. (Or add, if you're editing FR/LG. In FR/LG, there's a whole bunch of blank or semiblank battles you can use) The pointer will be found where you see a bunch of trainer names together. (Just use a table file, and search the name of a trainer you know [in caps], I just search BROCK) Then, scroll to the blank spaces where names could be, add a name, and change the offset to that of a blank area within the ROM. Then, you can use this tutorial to edit the data of the trainer by changing the values in the blank area where the new offset points to. If you figure out how to make it a gym leader, please tell me, because I'll put it into the tutorial. The Gym Leaders and Elite Four members all have preprogrammed moves for their Pokemon, while normal trainers don't. Finally, I would use PET to change the type of trainer that appears, as well as which trainer sprite the trainer uses.
                    Could you rephrase this some? It doesn't help me at all. What exactly do I do with the table file? Where exactly do I search for Brock? What programs should I be using to do this? I gave this a try but I didn't get anywhere...
                    Reply With Quote
                      #14    
                    Old September 7th, 2007 (8:14 AM).
                    Elementologist Elementologist is offline
                    Pokemon Master
                       
                      Join Date: Jul 2007
                      Location: Somewhere in Greece
                      Age: 25
                      Gender:
                      Nature: Gentle
                      Posts: 12
                      Send a message via Yahoo to Elementologist
                      Where can I Get A Table File for FR/LG and EMERALD
                      Reply With Quote
                        #15    
                      Old September 16th, 2007 (7:13 AM).
                      Supreme Dirt's Avatar
                      Supreme Dirt Supreme Dirt is offline
                      used Petal Dance
                         
                        Join Date: Aug 2007
                        Location: o3o
                        Age: 25
                        Gender: Other
                        Nature: Rash
                        Posts: 425
                        Alrighty...
                        How do I change the music played in battle? For example, changing the champion battle to the Deoxys battle music.
                        Reply With Quote
                          #16    
                        Old August 30th, 2008 (9:58 AM).
                        Ineffable~'s Avatar
                        Ineffable~ Ineffable~ is offline
                        DAT SNARKITUDE
                        • Crystal Tier
                         
                        Join Date: Aug 2008
                        Location: Any ol' place really
                        Age: 23
                        Gender: Female
                        Nature: Naive
                        Posts: 2,742
                        When I go to the offset, how do I know when the text ends and the battle begins
                        in the hexes?
                        __________________

                        #077: Ponyta - The Fire Horse Pokémon
                        Fire ~ Field eggs
                        3'03" ~ 66.1lbs ~ 50/50

                        Its hooves are 10 times harder
                        than diamonds. It can trample
                        anything completely flat in moments.

                        Abilities: Run Away or Flash Fire or Flame Body
                        Moves: Growl, Flame Wheel, Stomp, Agility
                        Locations: Pokémon Mansion

                        Cry

                        Other names:

                        jp: ポニータ (Ponyta)
                        de: Ponita
                        fr: Ponyta
                        cn: 小火馬 (Xiǎohuǒmǎ)


                        Reply With Quote
                          #17    
                        Old August 30th, 2008 (7:33 PM).
                        roywillow's Avatar
                        roywillow roywillow is offline
                           
                          Join Date: Feb 2008
                          Location: Shandong China
                          Gender:
                          Posts: 39
                          I think there are at least four type of PKMN info structure, the structure is decided by the first byte of the basic trainer infomation: 00, 01, 02, 03. 00 maybe no item, no attack, and 03 maybe have item and attacks.
                          The first byte of PKMN infomation may means AI? I heard this word once. The PKMN of elite four have the highest: FF
                          __________________
                          http://poketb.com/bbs/images/logo.gif
                          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 7:56 AM.