How To: Hex Edit

Discussion in 'Borderlands Glitches and Modding' started by w0lfschild, Jun 15, 2010 with 48 replies and 48,625 views.

  1. w0lfschild

    w0lfschild Getting There

    Messages:
    1,191
    Ratings:
    210
    Edit: 2/4/11
    * major rework of thread
    * adding video demonstration

    This tuturial will show you how to hex edit the level of any ITEM in Borderlands. This will increase the damage of your guns and let you maximize damage/capacity of stock items. (Remember that damage is directly linked to level which is why stock weapons are so powerful)
    [hr]
    First make sure you are up to date:


    WT# Beta 11[Click here to view the link]


    HxD[Click here to view the link]

    [hr]
    And just for kicks here is a link to the Complete Stock weapons list:
    Complete Stock List


    [hr]
    Now the Tutorial can begin:

    --->Step 1

    Set the itemgrade to:
    Code:
    gd_itemgrades.Weapons.ItemGrade_Weapon_Scorpio
    --->Step 2

    Set the remaining ammo, quality, equipped status and level as shown below:
    Code:
    0
    -1 (disabled/far left)
    0 (unequipped) <- can be set to 1,2,3 or 4 if you wish use lvl 80 guns
    -2 (disabled/far left)
    
    --->Step 3

    Save your file and close Willowtree#, next open HxD or the hex editor of your choosing.

    --->Step 4

    Open your save in HxD and go to the Search tab and select Replace...

    --->Step 5

    Set the search to HEX and type into the search bar.

    (14 Zero's and 4 F's)
    Code:
    00000000000000FFFF
    
    Then type your selected level in the replace bar.

    Some example levels are:
    Code:
    000000000000000051 (lvl 79 - for equipped weapons on lvl 69 characters with 50 prof)
    000000000000000047 (lvl 69)
    
    Stock Weapons only:
    Code:
    00000000007FFFFFFF (lvl 2,147,483,647)
    
    --->Step 6

    Set direction to All and Hit Replace All.
    *Note* If you want some items to be different levels you will have to individually hex those items

    --->Step 7

    Save your file.

    --->Step 8

    Open your save in WillowTree# and save your game.

    Alternatively you use any other program to rehash your save such as hash block calc or Le Fluffie

    [hr]

    Hopefully this has helped create some hexed guns
    Tutorial Created by W0lfschild

    Images moved to single spoiler:

    [​IMG]
    [hr][​IMG]
    [hr][​IMG]
    [hr][​IMG]
    [hr][​IMG]
    [hr][​IMG]
    [hr][​IMG]
    [hr][​IMG]
    [hr][​IMG]
    [hr][​IMG]


     
    • Like Like x 6
  2. VinnyHaw

    VinnyHaw Se7enSinner

    Messages:
    13,733
    Ratings:
    4,889
    submit this tutorial

    http://www.se7ensins.com/forums/forum/102-submit-a-tutorial/
     
  3. MadeGuy

    MadeGuy Enthusiast

    Messages:
    584
    Ratings:
    74
    Much needed. Thanks alot man.
     
  4. OP
    w0lfschild

    w0lfschild Getting There

    Messages:
    1,191
    Ratings:
    210
    Didn't know that even existed, thx.

    I try, I think I already spotted a few things I left out but thx for the Thanks :smile:

    Pretty soon I'm gonna upload a nice clean working lvl 70 save with every manufacture for each type of gun that people can use as a starting point
     
  5. Mark Hewitt

    Mark Hewitt Newbie

    Messages:
    84
    Ratings:
    2
    Thank you so so so so so much !
    + REP.
     
  6. thrasherv3

    thrasherv3 Enthusiast

    Messages:
    94
    Ratings:
    8
    Nice tut :wink:

    What did you mean by this? :blink: i was confused.
     
  7. OP
    w0lfschild

    w0lfschild Getting There

    Messages:
    1,191
    Ratings:
    210
    I mean if you make it on any tediore item it will be evil (guns or shields)

    for example:

    Take a normal tediore quick regen shield (not stock)
    Hex it to the specified hex and you should end up with a shield that when equipped will provide about -400 health regen
    Thus when equipped it would put the character into an infinate death loop, downing them before they even spawn
    Then if the game were to save that person would not be able to use that character again unless they have moxxi's DLC and could join a game in progress in the Underdome which has a mechanism that prevents health from going below 1 from -health regen
     
  8. DeadSox

    DeadSox Xbox Nerd

    Messages:
    1,007
    Ratings:
    66
    Hey w0lf, I sent you a pm, Please respond.
     
  9. Zebedee

    Zebedee Expect Boobies

    Messages:
    649
    Ratings:
    92
    hey i tryed doind this ii got as far as searching for 00000000000000FFFF but i can find it any where and i have triple checked that iv done all the above any suggestions?
     
  10. Zebedee

    Zebedee Expect Boobies

    Messages:
    649
    Ratings:
    92
  11. OP
    w0lfschild

    w0lfschild Getting There

    Messages:
    1,191
    Ratings:
    210
    So you got it working? I know that if you're on pc I think the hex is flopped so it might be different, this was designed with xbox people in mind.
     
  12. Zebedee

    Zebedee Expect Boobies

    Messages:
    649
    Ratings:
    92
    No not yet i thought i did but no
     
  13. Gorek

    Gorek Newbie

    Messages:
    9
    Ratings:
    0
    Theres no need to do it his way, you can simply go onto willowtree and in the weapons section theres a button saying change all levels, just click that type the level you want and it will change them all for you
     
  14. OP
    w0lfschild

    w0lfschild Getting There

    Messages:
    1,191
    Ratings:
    210
    yeah why don't you just go try that and tell me when you get a gun to spawn in with 2billion damage.... seriously read up or gtfo. I mean have even played this game before or did you just buy it today?

    [hr]
    Bong I can team view you sometime tomorrow or something. It's really fairly easy but some people have trouble with it.
     
  15. Gorek

    Gorek Newbie

    Messages:
    9
    Ratings:
    0
    Your tut up there is for changing the lev of the guns, correct? well there is a feature for that on willowtree. If however you mean guns that spawn in game (which i dont think you've specified then its worth it) however if its just your gun in inventory they can be changed in willowtree
     
  16. OP
    w0lfschild

    w0lfschild Getting There

    Messages:
    1,191
    Ratings:
    210
    Try making a gun higher then level 61 in willowtree and come back here when that happens... WT has a 61 cap the game however doesn't so that means you can use lvl 70 guns and hold level 80 guns and make max level stock guns with this but you can't with willowtree...
     
  17. Zebedee

    Zebedee Expect Boobies

    Messages:
    649
    Ratings:
    92
    Sweet well ill keep trying for now but if i cant ill pm you some time

    iv got it now. sorry for being a pain
     
  18. Harbinger1777

    Harbinger1777 Enthusiast

    Messages:
    38
    Ratings:
    7
    W0lf,

    It's about time I make good on this one...

    Eh, sometimes I'm a *********,

    -Harbinger1777 (XBL & PC)


    This is only intended for the xbox 360 version of BL, since different platforms have different methods of storing the hex stuff (something about Indians? - J/K).

    Hex bit locations & meanings for guns: Suppose you just set up this mixed-manufacturer part combat rifle in WillowTree# by adding the desired parts, setting the itemgrade to gd_itemgrades.Weapons.ItemGrade_Weapon_Scorpio, deleting the manufacturer part (line), and you remembered to slide the Quality and Level sliders in WT# all the way to the left (i.e., Quality = 0 and Level = disabled).Okay, screen shots:

    WillowTree# Setup for a gun prior to the hex edit:

    [​IMG]

    Hex editor view of the same gun, details below screen shot. (HxD is the hex editor I used here, it's is free -- download links: [Click here to view the link] [Click here to view the link])

    [​IMG]

    If you use HxD, click View > Visible columns > Hex and text to get the view I have above: Offset (in hex) on the left side, hex in the middle, and text on the right.
    The highlighted portions (both the blue and green parts) together is the hex representation of the gun prepped in WillowTree# above (1[sup]st[/sup] screen shot). The hex portion at the end of the gun which is highlighted in green is 16 hex bits (a hex bit is two hex digits, so 3F is 1 hex bit and 0048 is 2 hex bits for example) and contains some important information for you as a modder:

    [​IMG]

    I will attempt to map out for you which hex bits do what with and without scorpio as an item grade for both guns and class mods/items.

    This assertion holds throughout: I haven't a clue what bits 1, 2, and 12 through 16 do, but they're always 00.

    1. Guns with the scorpio itemgrade (same gun as last two screen shots):
      • bit 3 is likewise a mystery to me on this one.
      • bits 4 and 5 are ammo remaining in the clip (not clip size) -- as far as I can tell these are useless for modding guns and WT# truncates a value entered here to 500 which is 01FC in hex.
      • bits 6, 7, 8 and 9 are gun level--this is one huge way the scorpio itemgrade changes a gun.
        You'll want to know that gun level = level requirement of the gun in game + 2 (and you'll want that in hex here).
      • bits 10 and 11 are 00 00 unless the gun is equipped in weapon slot # X, which case they are X in hex (so a gun in weapon slot # 26 would have these as 00 1A -- hey, it happens sometimes).
    Guns without itemgrade scorpio (i.e. normal guns):
    • bit 3 is likewise a mystery to me on this one.
    • bits 4 and 5 are ammo remaining in the clip (not clip size) -- as far as I can tell these are useless for modding guns.
      note: WT# truncates a value entered here to 500 which is 01FC in hex.
    • bits 6 and 7 are gun level. You'll still want to know that gun level = level requirement of the gun in game + 2 (and you'll want that in hex here).
    • bits 8 and 9 are the quality level of the gun. So yeah, just what you might think.
    • bits 10 and 11 are 00 00 unless the gun is equipped in weapon slot # X, which case they are X in hex (so a gun in weapon slot # 26 would have these as 00 1A -- hey, it happens sometimes).
    <li>Class MODs/items with itemgrade scorpio (yeah, that level 70 support gunner class MOD):
    • bits 3, 4 and 5 are item quantity (the number of copies of the item you can use or sell or drop off the one your modding).
    • bits 6, 7, 8 and 9 are item level--this is one huge way the scorpio itemgrade changes an item.
      You'll want to know that item level = level requirement of the item in game + 2 (and you'll want that in hex here).
    • bits 10 and 11 are 00 00 unless the item is equipped, which case they are 00 01.
      If you figure out to get more than one class mod or grenade mod or shield slot, tell me, sounds coll, and then I'll change this part up a bit.
    <li>Class MODs/items without itemgrade scorpio (yep, the stuff you buy or that spawns in game):

    • bits 3, 4 and 5 are item quantity (the number of copies of the item you can use or sell or drop off the one your modding).
    • bits 6 and 7 are item level.
      You'll still want to know that item level = level requirement of the item in game + 2 (and you'll want that in hex here).
    • bits 8 and 9 are the quality level of the item. So yeah, just what you might think.
    • bits 10 and 11 are 00 00 unless the item is equipped, which case they are 00 01.
      If you figure out to get more than one class mod or grenade mod or shield slot, tell me, sounds coll, and then I'll change this part up a bit.
    Eh, I'm done now save this one thing: For scorpio stuff, know these numbers, eh?

    Code:
    7FFF FFFF = 2147483647
    8000 0000 = zero ? - post results. on stock grenade mod this is the most useless grenade mod in the game. ever. 0 dmg and a little puff. My Yorkshire Terrier farts with more fury than this thing, really? all that hex for puff?
    8000 0001 = -2147483647
    FFFF FFFF = -1
    0000 0000 = zero again (but the bigger 0, cause this doesn't do no puff, just like kiddie-sizes whatever you put it on)?
    
    The above diddy in the last code box might just be all wrong, but then again I'm out there couch fu*kin' 61's and 70's who are, whom? you? not anymore...



    CF Brand Shottys ~ 36.5 billion damage per shell -

    If this doesn't win the duel, you shouldn't have given the other guy that one shield yet--dumb-*ss!

    "Fu*k your couch *****!" [sup]TM[/sup] - bartlebyostrich (XBL)
    ******************

    This apology brought to you by Harbinger1777, this ought to take the challenge right out of everything.
     
  19. OP
    w0lfschild

    w0lfschild Getting There

    Messages:
    1,191
    Ratings:
    210
    OH Snap the number of doom... :lol:

    So I found why the test guns will never spawn with texture.

    Unfortunately none of them are linked to a mesh which is actually really easy to do. Also some of the alien guns don't have every part available.
    But basically I found that you can make the guns with parts they just won't show up.

    Did you ever find out any good use for the console. It seems like useless garbage to me... The best part is checking fps and a glitch I found with changeteam/suicide.

    and of corse thanks for the apology.

    oh and did I add you on pc yet? I'll have to do that if I haven't. You should start messing around with the editor, you could get hooked on editin ****.
     
  20. Chimaira

    Chimaira Enthusiast

    Messages:
    26
    Ratings:
    3
    I vote this thread be stickied. BTW Nice guide w0lf, will rep when I can.