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

Reply
 
Thread Tools
  #1    
Old September 8th, 2010 (10:57 PM).
miksy91's Avatar
miksy91 miksy91 is offline
Dark Energy is back in action! ;)
     
    Join Date: Oct 2008
    Location: A small country in the North
    Gender: Male
    Nature: Relaxed
    Posts: 1,435
    Hex editing is rather easy, and I helped one of my friends in Youtube for learning it, and wrote this tutorial for him so I don't see a point why not to post it here too.


    This applies somewhat for R/B/Y too although the hex codes for pokemon in R/B/Y don't really make any sense as they do in G/S/C (trainer data in R/B/Y doesn't begin after the name though - you've to search straight for the pokemon the trainer has).


    Anyway, what you need to edit the pokemon trainers have are:
    1) A hex editor (Translhextion, GoldFinger...)
    2) A ROM of either Gold, Silver or Crystal
    3) A table file of Pokemon Gold which is made for Crystal as well (Giegue's Hacking Guide has some strange table file for Crystal which probably works with the Japanese version but not USA)

    Spoiler:
    Table file isn't really needed to do this but can help you out a lot in the beginning so that you won't get confused



    TUTORIAL


    1. Search in Google for Giegue's Master Hacking Guide.
    2. Open the ROM in a hex editor.

    The bytes for big letters are here:

    A, 80
    B, 81
    C, 82
    D, 83 etc.


    Here is a simple example of editing pokemon that KENJI uses.
    Now that you've the ROM opened, open the "Pokemon Gold" table file, and search for the name, KENJI (so basicly search for bytes 8A 84 8D 89 88).


    You should see this:
    8A 84 8D 89 88 50...
    Byte 50 starts the pokemon data of the trainer.
    It's usually like 00 [xx] [yy]...[xx] [yy], and ends with FF. Byte [xx] determines the level of the pokemon, and [yy] the number of the pokemon in pokedex (both written in hexadecimal system).


    You can also change the amount of pokemon he uses by adding/taking letters to/off his name.
    For example rename KENJI to KEN and make the data like this: 8A 84 8D 50 00... (so practically you replace 89 88 with 50 00, and change the following two bytes (50 00) to something else).
    By taking two bytes off his name, you can enlarge his pokemon data by two bytes.

    Also, the pokemon data of some trainers is like this:
    [Name] 50 01 [6 bytes for each pokemon he has] FF

    01 tells the game that the pokemon of that trainer, has special moves. The byte for every move is listed in Giegue's Master Hacking Guide.


    Now, let's pretend that we want to create a random trainer that has one pokemon which knows special moves.

    80 A1 A2 50 01 90 0E 25 39 7E ED FF

    80 A1 A2 - Name (Abc)
    50 - Pokemon data starts after this byte
    01 - Pokemon of this trainer has/have special moves
    90 - Level in hex (level 144 in the game which is 90 in decimal system)
    0E - Kakuna
    25 39 7E ED - Moves (Thrash, Surf, Fire Blast, Hidden Power)

    Now this was one odd example but I hope you get the idea :D
    __________________
    My Rom Hack



    Fixing bugs in a ROM hack
    CP of encountered pokemon in GO

    Learn how to hack GB/C games:

    Check my GameBoy/Color hacking videos in Youtube
    -The video set uses Pokemon Silver (U) rom for demonstrations
    Reply With Quote

    Relevant Advertising!

      #2    
    Old September 13th, 2010 (6:57 AM).
    Gamer2020's Avatar
    Gamer2020 Gamer2020 is offline
    Accept no Imitations!
       
      Join Date: Jun 2008
      Location: Distant Land
      Gender: Male
      Nature: Bold
      Posts: 903
      Sorry dude but you really need to improve this tutorial. You could at least explain the different trainer types and maybe give some offsets
      __________________

      Reply With Quote
        #3    
      Old September 13th, 2010 (10:57 AM). Edited September 13th, 2010 by miksy91.
      miksy91's Avatar
      miksy91 miksy91 is offline
      Dark Energy is back in action! ;)
         
        Join Date: Oct 2008
        Location: A small country in the North
        Gender: Male
        Nature: Relaxed
        Posts: 1,435
        Quote:
        Originally Posted by Gamer2020 View Post
        Sorry dude but you really need to improve this tutorial. You could at least explain the different trainer types and maybe give some offsets
        I'll think about it but each trainer can easily be found anyway.
        But yeah, I guess I could add information about trainer type byte being 02 and give some more examples.

        Also, I'm quite certain it's possible add lot of new trainers to the game and make you battle them. So if that works as I believe, I'll write how to do it as well (more of a scripting job though).

        EDIT:
        Trainer data begins at 399c2 (Falkner) & ends at 3b684 (Female Grunt).
        After that, there is empty space between 3b685 and 3bfff.
        __________________
        My Rom Hack



        Fixing bugs in a ROM hack
        CP of encountered pokemon in GO

        Learn how to hack GB/C games:

        Check my GameBoy/Color hacking videos in Youtube
        -The video set uses Pokemon Silver (U) rom for demonstrations
        Reply With Quote
          #4    
        Old October 30th, 2011 (9:17 AM).
        NinjaBoy1's Avatar
        NinjaBoy1 NinjaBoy1 is offline
           
          Join Date: Dec 2010
          Location: Ontario, Canada
          Gender: Male
          Nature: Brave
          Posts: 6
          Im having trouble with the the big letters hexidecimals, what would ALBERT be in hex?
          __________________
          Msg me if you want to challenge or trade im a pretty good player.
          Reply With Quote
            #5    
          Old November 8th, 2011 (4:01 AM). Edited November 8th, 2011 by d4rk.
          d4rk's Avatar
          d4rk d4rk is offline
          Mad scientist trainer
             
            Join Date: Nov 2011
            Location: France (83)
            Gender: Male
            Nature: Gentle
            Posts: 269
            Hello there!

            ALBERT would be written 80 8B 84 91 93 in hex.

            I succeeded in changing some trainers, but some offsets are very well hidden.
            For example do you know were I can edit the red haired trainer's Pokemon? or the rocket's grunts?
            Reply With Quote
              #6    
            Old November 11th, 2011 (7:18 PM).
            Sephiroth2009 Sephiroth2009 is offline
            Banned
               
              Join Date: Oct 2011
              Posts: 18
              There's a program for that now.

              Gamer2020 released it.

              Besides look up his data by imputting "???" or "RIVAL" into the hex editor with the table file.
              Reply With Quote
                #7    
              Old April 11th, 2014 (3:33 PM).
              com3tiin's Avatar
              com3tiin com3tiin is offline
              Soy chamber...
                 
                Join Date: Jan 2013
                Gender: Male
                Posts: 113
                A tutorial from the old school!

                It is always good to know the manual method if some fault ocacionan tools.
                __________________
                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 10:35 AM.