Results 1 to 8 of 8
  1. #1
    +NULL's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    North Carolina
    Posts
    30
    Reputation
    10
    Thanks
    0

    [HELP] Offset HEX Addition

    Basically right now I have to find the addresses for something I am working on manually each time it updates(which is kinda annoying..) however I have noticed that each address is HEX:+210 from the previous address for example..

    #define Address1 (*(short*)( 0x030e5ea0 ) ) // Beginning offset
    #define Address2 (*(short*)( 0x030e60b0 ) ) // Address1+HEX:210
    #define Address3 (*(short*)( 0x030e62c0 ) ) // Address2+HEX:210

    ^ The difference in each address is the difference in HEX:+210, so I am wondering how I could do this automatically so I only need to set the first address in an array of offsets like so(pseudo..)

    #define Address1 (*(short*)( 0x030e5ea0 ) ) // Beginning offset
    #define Address2 (*(short*)( Address1 + h210 ) ) // Address1+HEX:210
    #define Address3 (*(short*)( Address2 + h210 ) ) // Address2+HEX:210

    You see if I could just figure out how to do the hex addition I could save myself a lot of time and effort but I am a little stumped as to how to accomplish this! I would appreciate any help, and thanks in advance!

  2. #2
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Huh?

    Just add it?

    Numbers are numbers whether it's hex or decimal. If you want the compiler to see the number as hex just use the 0x prefix, if not just leave it how it is.

  3. #3
    +NULL's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    North Carolina
    Posts
    30
    Reputation
    10
    Thanks
    0
    So to be clear it should look like this? ->

    #define Address1 (*(short*)( 0x030e5ea0 ) )
    #define Address2 (*(short*)( Address1 + 0x210 ) )
    #define Address3 (*(short*)( Address2 + 0x210 ) )

  4. #4

  5. #5
    +NULL's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    North Carolina
    Posts
    30
    Reputation
    10
    Thanks
    0
    I must be missing something somewhere I think I have the syntax wrong or something.. Are you sure this is how it should be, because this is causing the app to crash now

  6. #6
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    #define addy 0x030e5ea0
    #define Address1 (*(short*)( addy ) )
    #define Address2 (*(short*)( addy + 0x210 ) )
    #define Address3 (*(short*)( addy + 0x420 ) )
    Ah we-a blaze the fyah, make it bun dem!

  7. #7
    +NULL's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Location
    North Carolina
    Posts
    30
    Reputation
    10
    Thanks
    0
    Yes that's exactly what I needed, I was not defining the base offset correctly!
    Thanks a ton guys!

  8. #8
    doofbla's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    Biel*****/Germany
    Posts
    369
    Reputation
    10
    Thanks
    179
    My Mood
    Psychedelic
    or so:
    Code:
    for(int idx = 0; idx<num; idx++)
    {
          adresse[idx] = addy+offset*idx;
    }
    _____________________________________________

    READING TUTORIAL:

    1. READ MY POST
    2. THINK ABOUT MY POST
    3. PRESS THANKS
    4. MAYBE CORRECT MY POSTS :P




    Dijkstra:
    "Computer Science is no more about computers than astronomy is about
    telescopes."


    THANKS BUTTON RIGHT DOWN --->

Similar Threads

  1. [Help Request] Hex edits...
    By Genoble in forum MapleStory Hack Coding/Source Code
    Replies: 24
    Last Post: 08-23-2011, 10:40 PM
  2. [HELP] M9 Hex modding
    By jajarem64 in forum Combat Arms Mod Discussion
    Replies: 2
    Last Post: 11-12-2010, 06:10 AM
  3. Help? offsets
    By mrAWSOME in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 6
    Last Post: 06-24-2010, 04:46 PM
  4. Need A little Help with hex editor for Bypass
    By j0elself in forum Combat Arms Help
    Replies: 1
    Last Post: 10-04-2009, 03:02 AM
  5. need help with offset problem
    By qplazm in forum General Game Hacking
    Replies: 1
    Last Post: 12-31-2008, 01:45 PM