Information About Hexing

JizzaBeez Dec 21, 2009

  1. Ji

    JizzaBeez The One and Only
    35/47

    Joined:
    Nov 15, 2009
    Messages:
    384
    Likes Received:
    136
    Trophy Points:
    0
    Gender:
    Male
    Location:
    Cerebral Cortex.
    Console:
    Xbox
    How to hex files or know if they can be :

    -Basically, just search your save or profile in a hex editor (HxD hex editor) for your current stats and if you find them then edit it to what you want.

    *Stats are anything that can be seen in-game as a decimal value (number).

    -Health
    -Experience
    -Money
    -Ammo
    -Lives
    -Items
    -Unlocks
    -etc.

    NOTE:

    This is how you would go about editing ANY package file; saves, profiles, themes, gamerpics, DLC, etc.

    1) Get your current stats : the decimal value of the stats, xp, rank, etc.

    2) Convert that decimal amount to Hex. Sometimes the value can be searched and read as Decimal/Text though.

    -Byte Order [see BConv32] = The order of the bytes,

    Example:

    *"1A 2B" (Motorola/Big Endian) would be as "2B 1A" (Intel/Little Endian).

    *The value can also be reversed: "1A 2B" to "B2 A1".

    *Raw Hex and Motorola is the same as Big Endian.

    *Intel is the same as Little Endian.

    -Data Type [see BConv32 and image] = The type the data is.

    Example:

    *Short = 2 Bytes. Looks like "1A 2B"

    *Long = 4 Bytes. Looks like "1A 2B 3C 4D"

    *Int8 (1 Byte)

    *Int16 (2 Bytes)

    *Int24 (3 Bytes)

    *Int32 (4 Bytes)

    *Int64 (8 Bytes)

    *Single

    *Double

    *Float

    *There are other types: [see Image]

    There are also "signed" and "unsigned" data types. They are different because the "unsigned" type allows a higher value than the "signed". But "signed" allows negative numbers and "unsigned" doesn't. The type of the data depends on how the programmer is using it.

    3) Now search in the file with a hex editor (HxD hex editor) for the value. If you can't find it one way then try changing the *data-type and *byte-order of the value. Sometimes it may vary.

    4) When you find the values and you know they're the correct ones (there could be more than one result), change the value to what you what according to what type it is.

    5) After editing anything in a file you always need to rehash it or else it will be corrupt.

    Look at this app - BConv32. It's a decimal/hex converter that has all the different types. This app is in Hex Workshop. I highly recommend it (or something similar) for all modders, hexers, programmers, etc... Windows Calculator.exe has conversions also. Here is a good hex editor with many features, the one I prefer and it's free - HxD.

    Image: From Wikipedia
    7U0tikj08lyW6MmDLS8rmfkzmIlyWPFW.jpeg


    If all else fails, start a new thread and note your current stats/values and post a save and profile or you can PM me your save/profile and I'll see if it can be done.
     
    Last edited by a moderator: Jun 24, 2016
  2. Homework

    Homework XPG Proud Member
    35/47

    Joined:
    May 24, 2012
    Messages:
    152
    Likes Received:
    52
    Trophy Points:
    35
    Location:
    Kitchener, ON
    Console:
    Xbox
    I guess my question is what are we editing? Xex files? Or...?

    Just wondering :)
     

Share This Page

Close