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

Reply
 
Thread Tools
  #1    
Old July 18th, 2009 (12:59 PM). Edited April 15th, 2010 by Logan.
-DarK- -DarK- is offline
Hold Your Colour
     
    Join Date: Jun 2007
    Location: Belgium
    Age: 24
    Gender: Male
    Nature: Brave
    Posts: 185
    Hi all. Around this time now, a thread got me somewhat interested. To be specific, this one: HEX editing Pokemon in Advance Gen Games!.

    I stumbled upon this thread in an other thread, and in that specific post that it was mentioned, the one who posted it (I believe it was Wichu) explained the ?? bytes that Darthatron didn't in his thread. But here today, I'm only gonna tell you the deal between the first 2 ?? bytes from Darth's tut.

    So anyway, we are looking for this:
    Code:
    2D=HP
    31=ATTACK
    31=DEFENCE
    2D=SPEED
    41=SPECIAL ATTACK
    41=SPECIAL DEFENSE
    0C=TYPE 1
    03=TYPE 2
    2D=CATCH RATE
    40=BASE XP
    00=??
    01=??
    00=ITEM 1
    00=ITEM 1
    00=ITEM 2
    00=ITEM 2
    1F=GENDER CHANCE (7F = 50/50. Less than 7F has a high chance of being male. 00 = 100% Male. More than 7F has a high chance of being female. 00 = 100% Female)
    14=STEPS FOR EGG TO HATCH (eg. 5,120 steps would be: 1400. Only the first part is used, '14'. Then '00' is discarded.)
    46=??
    03=??
    01=EGG TYPE 1 (For a list of Egg Types go down.)
    07=EGG TYPE 2 (For a list of Egg Types go down.)
    41=SPECIAL ABILITY 1 (For a list of Abilities go down.)
    00=SPECIAL ABILITY 2 (For a list of Abilities go down.)
    00=SAFARI ZONE RUN AWAY CHANCE (00 - AF. Anything over AF may glitch the game)
    03=??
    00=??
    00=??
    Those 2 Bytes which are in bold are the ones used to define what EVs a Pokemon can give you after you defeat it. EVs are split between those 2 bytes. The first one uses HP, Atk, Def, and Speed, while the second one uses Sp. Atk and Sp. Def. Now, changing those in Hex can give you a hard time, but to make things easier, I've looked up and tested with stuff, and found what values give what EVs.

    Here they are:

    First Byte
    Code:
    00 - Nothing
    01 - 1 HP
    02 - 2 HP
    03 - 3 HP
    
    04 - 1 Atk
    05 - 1 HP, 1 Atk
    06 - 2 HP, 1 Atk
    07 - 3 HP, 1 Atk
    08 - 2 Atk
    09 - 1 HP, 2 Atk
    0A - 2 HP, 2 Atk
    0B - 3 HP, 2 Atk
    0C - 3 Atk
    0D - 1 HP, 3 Atk
    0E - 2 HP, 3 Atk
    0F - 3 HP, 3 Atk
    
    10 - 1 Def
    11 - 1 Def, 1 HP
    12 - 1 Def, 2 HP
    13 - 1 Def, 3 HP
    14 - 1 Def, 1 Atk
    15 - 1 Def, 1 HP, 1 Atk
    16 - 1 Def, 2 HP, 1 Atk
    17 - 1 Def, 3 HP, 1 Atk
    18 - 1 Def, 2 Atk
    19 - 1 Def, 1 HP, 2 Atk
    1A - 1 Def, 2 HP, 2 Atk
    1B - 1 Def, 3 HP, 2 Atk
    1C - 1 Def, 3 Atk
    1D - 1 Def, 1 HP, 3 Atk
    1E - 1 Def, 2 HP, 3 Atk
    1F - 1 Def, 3 HP, 3 Atk
    20 - 2 Def
    21 - 2 Def, 1 HP
    22 - 2 Def, 2 HP
    23 - 2 Def, 3 HP
    24 - 2 Def, 1 Atk
    25 - 2 Def, 1 HP, 1 Atk
    26 - 2 Def, 2 HP, 1 Atk
    27 - 2 Def, 3 HP, 1 Atk
    28 - 2 Def, 2 Atk
    29 - 2 Def, 1 HP, 2 Atk
    2A - 2 Def, 2 HP, 2 Atk
    2B - 2 Def, 3 HP, 2 Atk
    2C - 2 Def, 3 Atk
    2D - 2 Def, 1 HP, 3 Atk
    2E - 2 Def, 2 HP, 3 Atk
    2F - 2 Def, 3 HP, 3 Atk
    30 - 3 Def
    31 - 3 Def, 1 HP
    32 - 3 Def, 2 HP
    33 - 3 Def, 3 Hp
    34 - 3 Def, 1 Atk
    35 - 3 Def, 1 HP, 1 Atk
    36 - 3 Def, 2 HP, 1 Atk
    37 - 3 Def, 3 HP, 1 Atk
    38 - 3 Def, 2 Atk
    39 - 3 Def, 1 HP, 2 Atk
    3A - 3 Def, 2 HP, 2 Atk
    3B - 3 Def, 3 HP, 2 Atk
    3C - 3 Def, 3 Atk
    3D - 3 Def, 1 HP, 3 Atk
    3E - 3 Def, 2 HP, 3 Atk
    3F - 3 Def, 3 HP, 3 Atk
    
    40 - 1 Spe
    41 - 1 Spe, 1 HP
    42 - 1 Spe, 2 HP
    43 - 1 Spe, 3 HP
    44 - 1 Spe, 1 Atk
    45 - 1 Spe, 1 HP, 1 Atk
    46 - 1 Spe, 2 HP, 1 Atk
    47 - 1 Spe, 3 HP, 1 Atk
    48 - 1 Spe, 2 Atk
    49 - 1 Spe, 1 HP, 2 Atk
    4A - 1 Spe, 2 HP, 2 Atk
    4B - 1 Spe, 3 HP, 2 Atk
    4C - 1 Spe, 3 Atk
    4D - 1 Spe, 1 HP, 3 Atk
    4E - 1 Spe, 2 HP, 3 Atk
    4F - 1 Spe, 3 HP, 3 Atk
    50 - 1 Spe, 1 Def
    51 - 1 Spe, 1 HP, 1 Def
    52 - 1 Spe, 2 HP, 1 Def
    53 - 1 Spe, 3 HP, 1 Def
    54 - 1 Spe, 1 Atk, 1 Def
    55 - 1 Spe, 1 HP, 1 Atk, 1 Def
    56 - 1 Spe, 2 HP, 1 Atk, 1 Def
    57 - 1 Spe, 3 HP, 1 Atk, 1 Def
    58 - 1 Spe, 2 Atk, 1 Def
    59 - 1 Spe, 1 HP, 2 Atk, 1 Def
    5A - 1 Spe, 2 HP, 2 Atk, 1 Def
    5B - 1 Spe, 3 HP, 2 Atk, 1 Def
    5C - 1 Spe, 3 Atk, 1 Def
    5D - 1 Spe, 1 HP, 3 Atk, 1 Def
    5E - 1 Spe, 2 HP, 3 Atk, 1 Def
    5F - 1 Spe, 3 HP, 3 Atk, 1 Def
    60 - 1 Spe, 2 Def
    61 - 1 Spe, 1 HP, 2 Def
    62 - 1 Spe, 2 HP, 2 Def
    63 - 1 Spe, 3 HP, 2 Def
    64 - 1 Spe, 1 Atk, 2 Def
    65 - 1 Spe, 1 HP, 1 Atk, 2 Def
    66 - 1 Spe, 2 HP, 1 Atk, 2 Def
    67 - 1 Spe, 3 HP, 1 Atk, 2 Def
    68 - 1 Spe, 2 Atk, 2 Def
    69 - 1 Spe, 1 HP, 2 Atk, 2 Def
    6A - 1 Spe, 2 HP, 2 Atk, 2 Def
    6B - 1 Spe, 3 HP, 2 Atk, 2 Def
    6C - 1 Spe, 3 Atk, 2 Def
    6D - 1 Spe, 1 HP, 3 Atk, 2 Def
    6E - 1 Spe, 2 HP, 3 Atk, 2 Def
    6F - 1 Spe, 3 HP, 3 Atk, 2 Def
    70 - 1 Spe, 3 Def
    71 - 1 Spe, 1 HP, 3 Def
    72 - 1 Spe, 2 HP, 3 Def
    73 - 1 Spe, 3 HP, 3 Def
    74 - 1 Spe, 1 Atk, 3 Def
    75 - 1 Spe, 1 HP, 1 Atk, 3 Def
    76 - 1 Spe, 2 HP, 1 Atk, 3 Def
    77 - 1 Spe, 3 HP, 1 Atk, 3 Def
    78 - 1 Spe, 2 Atk, 3 Def
    79 - 1 Spe, 1 HP, 2 Atk, 3 Def
    7A - 1 Spe, 2 HP, 2 Atk, 3 Def
    7B - 1 Spe, 3 HP, 2 Atk, 3 Def
    7C - 1 Spe, 3 Atk, 3 Def
    7D - 1 Spe, 1 HP, 3 Atk, 3 Def
    7E - 1 Spe, 2 HP, 3 Atk, 3 Def
    7F - 1 Spe, 3 HP, 3 Atk, 3 Def
    80 - 2 Spe
    81 - 2 Spe, 1 HP
    82 - 2 Spe, 2 HP
    83 - 2 Spe, 3 HP
    84 - 2 Spe, 1 Atk
    85 - 2 Spe, 1 HP, 1 Atk
    86 - 2 Spe, 2 HP, 1 Atk
    87 - 2 Spe, 3 HP, 1 Atk
    88 - 2 Spe, 2 Atk
    89 - 2 Spe, 1 HP, 2 Atk
    8A - 2 Spe, 2 HP, 2 Atk
    8B - 2 Spe, 3 HP, 2 Atk
    8C - 2 Spe, 3 Atk
    8D - 2 Spe, 1 HP, 3 Atk
    8E - 2 Spe, 2 HP, 3 Atk
    8F - 2 Spe, 3 HP, 3 Atk
    90 - 2 Spe, 1 Def
    91 - 2 Spe, 1 HP, 1 Def
    92 - 2 Spe, 2 HP, 1 Def
    93 - 2 Spe, 3 HP, 1 Def
    94 - 2 Spe, 1 Atk, 1 Def
    95 - 2 Spe, 1 HP, 1 Atk, 1 Def
    96 - 2 Spe, 2 HP, 1 Atk, 1 Def
    97 - 2 Spe, 3 HP, 1 Atk, 1 Def
    98 - 2 SPe, 2 Atk, 1 Def
    99 - 2 Spe, 1 HP, 2 Atk, 1 Def
    9A - 2 Spe, 2 HP, 2 Atk, 1 Def
    9B - 2 Spe, 3 HP, 2 Atk, 1 Def
    9C - 2 Spe, 3 Atk, 1 Def
    9D - 2 Spe, 1 HP, 3 Atk, 1 Def
    9E - 2 Spe, 2 HP, 3 Atk, 1 Def
    9F - 2 Spe, 3 HP, 3 Atk, 1 Def
    A0 - 2 Spe, 2 Def
    A1 - 2 Spe, 1 HP, 2 Def
    A2 - 2 Spe, 2 HP, 2 Def
    A3 - 2 Spe, 3 HP, 2 Def
    A4 - 2 Spe, 1 Atk, 2 Def
    A5 - 2 Spe, 1 HP, 1 Atk, 2 Def
    A6 - 2 Spe, 2 HP, 1 Atk, 2 Def
    A7 - 2 Spe, 3 HP, 1 Atk, 2 Def
    A8 - 2 Spe, 2 Atk, 2 Def
    A9 - 2 Spe, 1 HP, 2 Atk, 2 Def
    AA - 2 Spe, 2 HP, 2 Atk, 2 Def
    AB - 2 Spe, 3 HP, 2 Atk, 2 Def
    AC - 2 Spe, 3 Atk, 2 Def
    AD - 2 Spe, 1 HP, 3 Atk, 2 Def
    AE - 2 Spe, 2 HP, 3 Atk, 2 Def
    AF - 2 Spe, 3 HP, 3 Atk, 2 Def
    B0 - 2 Spe, 3 Def
    B1 - 2 Spe, 1 HP, 3 Def
    B2 - 2 Spe, 2 HP, 3 Def
    B3 - 2 Spe, 3 HP, 3 Def
    B4 - 2 Spe, 1 Atk, 3 Def
    B5 - 2 Spe, 1 HP, 1 Atk, 3 Def
    B6 - 2 Spe, 2 HP, 1 Atk, 3 Def
    B7 - 2 Spe, 3 HP, 1 Atk, 3 Def
    B8 - 2 Spe, 2 Atk, 3 Def
    B9 - 2 Spe, 1 HP, 2 Atk, 3 Def
    BA - 2 Spe, 2 HP, 2 Atk, 3 Def
    BB - 2 Spe, 3 HP, 2 Atk, 3 Def
    BC - 2 Spe, 3 Atk, 3 Def
    BD - 2 Spe, 1 HP, 3 Atk, 3 Def
    BE - 2 Spe, 2 HP, 3 Atk, 3 Def
    BF - 2 Spe, 3 HP, 3 Atk, 3 Def
    C0 - 3 Spe
    C1 - 3 Spe, 1 HP
    C2 - 3 Spe, 2 HP
    C3 - 3 Spe, 3 HP
    C4 - 3 Spe, 1 Atk
    C5 - 3 Spe, 1 HP, 1 Atk
    C6 - 3 Spe, 2 HP, 1 Atk
    C7 - 3 Spe, 3 HP, 1 Atk
    C8 - 3 Spe, 2 Atk
    C9 - 3 Spe, 1 HP, 2 Atk
    CA - 3 Spe, 2 HP, 2 Atk
    CB - 3 Spe, 3 HP, 2 Atk
    CC - 3 Spe, 3 Atk
    CD - 3 Spe, 1 HP, 3 Atk
    CE - 3 Spe, 2 HP, 3 Atk
    CF - 3 Spe, 3 HP, 3 Atk
    D0 - 3 Spe, 1 Def
    D1 - 3 Spe, 1 HP, 1 Def
    D2 - 3 Spe, 2 HP, 1 Def
    D3 - 3 Spe, 3 HP, 1 Def
    D4 - 3 Spe, 1 Atk, 1 Def
    D5 - 3 Spe, 1 HP, 1 Atk, 1 Def
    D6 - 3 Spe, 2 HP, 1 Atk, 1 Def
    D7 - 3 Spe, 3 HP, 1 Atk, 1 Def
    D8 - 3 Spe, 2 Atk, 1 Def
    D9 - 3 Spe, 1 HP, 2 Atk, 1 Def
    DA - 3 Spe, 2 HP, 2 Atk, 1 Def
    DB - 3 Spe, 3 HP, 2 Atk, 1 Def
    DC - 3 Spe, 3 Atk, 1 Def
    DD - 3 Spe, 1 HP, 3 Atk, 1 Def
    DE - 3 Spe, 2 HP, 3 Atk, 1 Def
    DF - 3 Spe, 3 HP, 3 Atk, 1 Def
    E0 - 3 Spe, 2 Def
    E1 - 3 Spe, 1 HP, 2 Def
    E2 - 3 Spe, 2 HP, 2 Def
    E3 - 3 Spe, 3 HP, 2 Def
    E4 - 3 Spe, 1 Atk, 2 Def
    E5 - 3 Spe, 1 HP, 1 Atk, 2 Def
    E6 - 3 Spe, 2 HP, 1 Atk, 2 Def
    E7 - 3 Spe, 3 HP, 1 Atk, 2 Def
    E8 - 3 Spe, 2 Atk, 2 Def
    E9 - 3 Spe, 1 HP, 2 Atk, 2 Def
    EA - 3 Spe, 2 HP, 2 Atk, 2 Def
    EB - 3 Spe, 3 HP, 2 Atk, 2 Def
    EC - 3 Spe, 3 Atk, 2 Def
    ED - 3 Spe, 1 HP, 3 Atk, 2 Def
    EE - 3 Spe, 2 HP, 3 Atk, 2 Def
    EF - 3 Spe, 3 HP, 3 Atk, 2 Def
    F0 - 3 Spe, 3 Def
    F1 - 3 Spe, 1 HP, 3 Def
    F2 - 3 Spe, 2 HP, 3 Def
    F3 - 3 Spe, 3 HP, 3 Def
    F4 - 3 Spe, 1 Atk, 3 Def
    F5 - 3 Spe, 1 HP, 1 Atk, 3 Def
    F6 - 3 Spe, 2 HP, 1 Atk, 3 Def
    F7 - 3 Spe, 3 HP, 1 ATk, 3 Def
    F8 - 3 Spe, 2 Atk, 3 Def
    F9 - 3 Spe, 1 HP, 2 Atk, 3 Def
    FA - 3 Spe, 2 HP, 2 Atk, 3 Def
    FB - 3 Spe, 3 HP, 2 ATk, 3 Def
    FC - 3 Spe, 3 Atk, 3 Def
    FD - 3 Spe, 1 HP, 3 Atk, 3 Def
    FE - 3 Spe, 2 HP, 3 Atk, 3 Def
    FF - 3 Spe, 3 HP, 3 Atk, 3 Def
    Second Byte
    Code:
    00 - Nothing
    01 - 1 SpA
    02 - 2 SpA
    03 - 3 SpA
    
    04 - 1 SpD
    05 - 1 SpD, 1 SpA
    06 - 1 SpD, 2 SpA
    07 - 1 SpD, 3 SpA
    08 - 2 SpD
    09 - 2 SpD, 1 SpA
    0A - 2 SpD, 2 SpA
    0B - 2 SpD, 3 SpA
    0C - 3 SpD
    0D - 3 SpD, 1 SpA
    0E - 3 SpD, 2 SpA
    0F - 3 SpD, 3 SpA
    NOTE: For the second byte, going above 0F (meaning, starting with 10) restarts the same structure again.
    With other words:

    10 - Nothing
    11 - 1 SpA
    12 - 2 SpA
    13 - ...... etc

    Same goes for 20, 30, ..., F0.


    So... That's about it. Cheers :)

    Credits to Darth for his Hex editing Pokemon guide and to Wichu for explaining those "??" bytes
    Reply With Quote

    Relevant Advertising!

      #2    
    Old July 22nd, 2009 (1:04 PM).
    sab's Avatar
    sab sab is offline
    Now too much of a life.
       
      Join Date: Jul 2008
      Location: Midgar
      Age: 21
      Gender: Male
      Nature: Timid
      Posts: 995
      this is very useful! I'm probably not gonig to need to use it but knowledge is power! your tut has forced me to read darths so that I know what your talkin about.lol
      __________________
      Reply With Quote
        #3    
      Old July 28th, 2009 (12:00 AM).
      0m3GA ARS3NAL's Avatar
      0m3GA ARS3NAL 0m3GA ARS3NAL is offline
      Im comin' home...
      • Silver Tier
       
      Join Date: Jan 2008
      Location: Superjail Penitentiary
      Age: 24
      Gender: Male
      Nature: Gentle
      Posts: 1,812
      This IS nice and all, but YAPE does all this and more already...
      None the less, HEX Exclusive Hackers would enjoy this data!
      __________________
      >Boot Jailbot
      >Pass *****
      .
      .
      Jailbot OS Ver 1.1.2
      Greetings Warden
      of Superjail Penitentiary
      Awaiting user input...

      >Display User_Info
      ╠══User Info══╣
      Username:
      0m3GA ARS3NAL
      Age: 18
      Sex: Male ♂
      Race: Caucasian
      Quote:
      "What is this
      I don't even..."

      M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
      ╠══End of File══╣
      Awaiting user input...

      >
      Reply With Quote
        #4    
      Old July 28th, 2009 (3:07 AM).
      payas0 payas0 is offline
         
        Join Date: Jul 2009
        Gender: Male
        Posts: 19
        wow thanks alot ..
        ima hex hacker ..
        cleared up the cloud ..
        hope to know those other ??s .. hehe ..
        Reply With Quote
          #5    
        Old August 2nd, 2009 (9:49 AM).
        IIMarckus's Avatar
        IIMarckus IIMarckus is offline
        [email protected]
           
          Join Date: Oct 2007
          Gender:
          Posts: 402
          Another way to do this is to convert between hex and binary. Look at the pattern:

          $01 = %00000001 1HP
          $02 = %00000010 2HP
          $03 = %00000011 3HP
          $04 = %00000100 1Atk
          $05 = %00000101 1Atk, 1HP
          $06 = %00000110 1Atk, 2HP
          ...


          See the pattern? HP uses the rightmost two bits, Attack uses the next two, and so on.

          Byte 1 ......XX HP
          Byte 1 ....XX.. Attack
          Byte 1 ..XX.... Defense
          Byte 1 XX...... Speed
          Byte 2 ......XX Special Attack
          Byte 2 ....XX.. Special Defense

          So if we want EVs of 1 HP, 2 Atk, 3 Def, 3 Spd, 2 Sp.Atk, and 1 Sp.Def:
          1 in binary is 01
          2 in binary is 10
          3 in binary is 11

          Therefore, our bytes would be 11111001 00000110, or F9 06. Compare it with the list—those bytes do indeed give the number of EVs we want.
          __________________
          iimarck.us / hax.iimarck.us

          If you want me, please contact me by email. [email protected]

          If you want to hack Pokémon RBY or GSC, read, read, and read some more. This has tons of valuable information.

          Pokémon Red disassembly project

          Rules that should be rethought: 25charlimit, bumping.
          Bad posts are bad posts, regardless of how many words are in them or how old the thread is.
          Good posts are good posts, regardless of how old the thread is—and brevity is underrated.
          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 6:08 PM.