Author Topic: Tutorial on 'hexing' your Character  (Read 31993 times)

Berit

  • Founder
  • Dark Will
  • ***
  • Posts: 877
  • Karma: 1
Tutorial on 'hexing' your Character
« on: Jul 31, 2009; 02:51 PM »
How to Modify Items:

Thanks must go to Malachor for providing most of the information provided here

Firstly ... BACKUP, BACKUP, and BACKUP AGAIN YOUR SAVEGAME FILES

The files should be in their own directory with a bunch of “.map” file extensions, so look in:
My DocumentsMy GamesHellgateSaves  Singleplayer ”You Character Name” (or something similar)
Plus you should save a backup of your “Your Character Name” .hg1 file in the “Singleplayer” directory

You’ll also need a memory editing program of some sort, for this example I’m using HxD

You can download HxD from the following Location, BUT Be aware it will NOT work on the 64 bit executable, so if you are using Windows 64 bit, I think you can use Cheat Engine, which should use the same basic principals
http://mh-nexus.de/en/downloads.php?product=HxD.

You will also need to be able to convert decimal to hex, you can use the windows calculator or this website http://www.easycalculation.com/decimal-converter.php which is sometimes quicker

You'll also need this file viewtopic.php?f=47&t=31

    Be aware that there are limitations and maximums for most of these properties, some are listed in the
“AdjustedItemProperties.pdf” but not all, so experiment slowly. Also be careful when modifying items that have an Inherent bonus, such as Movement Speed on some Armours, if you attempt to change one of these properties, HG:L will simply delete the item when you reload, you must also check if you want to change a skill bonus, that you don’t have the same bonus already i.e. If you get ‘Sprint 3’ on a pair of boots, make sure YOU aren’t currently at ‘Sprint 3’ , because if you change that property it will affect your character as well, I recommend NOT equipping the item, until you have made the changes, and you’re game reloads correctly and the adjusted item appears as you wanted in you’re inventory[/list]

Run HGL, and load your character, pickup, buy or create the items you wish to change.

Make a note of the properties of the item such as adds XX% to fire damage and write it down, or use notepad.

Now look through the “AdjustedItemProperties.pdf” file for that item enhancement and then look for the item enhancement you want to replace it with, (the procedure for changing a xx% value on the same type of enhancement is pretty much the same, except you’ll only be changing the xx% amount within the same string) This is where it gets a little tricky, the XX in the memory address refers to the actual amount in the game i.e. ‘adds 7% fire damage’. This is where the decimal to hex conversion comes in. You need to convert the '7' into hex and replace the XX with that number. So it becomes ‘07’ - remember it must be the same number of digits (15 becomes ‘0F’ or 75 becomes ‘4B’ etc.) also note that some properties require further calculation to get the actual amount, such as ‘Luck’ or Health/Power regeneration

Press escape to bring up the ingame menu but DO NOT EXIT Now ALT-TAB to Windows Desktop

NOW BACKUP AGAIN!!!

Run “Hxd” Click on 'Extras' at the top of the program. Select 'Open RAM'. Select the Hellgatex86dx10.exe (or some name like that), it should be near the top from memory.

It will then load it into Hxd

This Example converts ‘Ordinary’ Base level Items (i.e. white) to Unique (i.e. Gold) items

Use ‘ctrl-f’ first if you want to make sure you have the correct hex address, Type in the string for ‘White’ Basic items: 00 00 c0 31 01 00 00 00 in the 'Search for' section.Make sure that 'Hex String' is checked and not text then press ok. If you did it right it should find the address fairly quickly, If it doesn't it means you typed it in wrongly, or the property is not available (this happens with some skills such as 'Heaven's Arc' which has 2 versions 1 for Blademasters and 1 for Guardians, so if it can't find one it may be the other) or you haven't ticked Hex String

Now press ‘ctrl-r’ for replace.

Type in the string for ‘Gold’ Unique items: 00 00 c0 31 06 00 00 00 in the 'Replace with' section.

    Be extremely careful what you put in here, because it will change EVERYTHING with that particular memory address (for instance, stimpacks, powerpacks, runic shards, Scrap metal and PRD’s will all become ‘Unique’, making some of them useless afterwards, so it’s best to sell of your inventory before you begin, except for the items you want to change, THIS INCLUDES EVERYTHING IN YOUR STORAGE LOCKER TOO! even in normal mode you can now have a gold version of “Wart’s Peg Leg” or you could possibly corrupt the item or your character permanently.

    A note on the numbers themselves;
    ‘10' converted from decimal to hexadecimal becomes 'a', but you have to put in '0a' to be usable, because every piece of data must be in pairs,  so we use ‘0’ to represent ‘nothing’ and the ‘a’ for the actual value.
    '1000' converted becomes '3e8' or '03e8', but we can't use that, and have to place the leading pair numbers on the right hand side of the trailing numbers, so it becomes 'e8 03' *

    * Why? The simple reason is because that's what the game requires. And we can't change that. Think of it as HG:L reading the information as though it’s written in an Asian language i.e. written backwards

    Now, as far as larger numbers go, say you want ‘9999999’ palladium.
    The bytes for palladium are ‘00 00 40 24 xx 00 00 00’, so you would replace the ‘XX’ with your current amount, so ‘10’ palladium would look like this ‘00 00 40 24 0a 00 00 00’
    Then ‘9999999’ becomes '98967f' hex, or '7f 96 98', so we've placed the ‘96’ on the right of ‘7f’ and ‘98’ on the right of ‘96’. So when you replace your current amount to maximum you would use this:
    ‘00 00 40 24 7f 96 98 00’

    Notice the number of ‘00’ pairs have decreased to the right of the ‘xx’ but the total number of bytes must remain the same, we can't add new info at runtime, only replace old for new.
    [/list]

    Click 'Replace all' not 'OK' or 'Cancel' (it will probably find several to a lot of instances, any more than 4 to 6, and either you have several items/resources with the same enhancement, or you have used the wrong hex address and should click ‘undo’)

    Wait until it finishes. (It should pop up and say ‘Replaced XXX instances’ or something)

      NOW BACKUP AGAIN! (I know, I know, but until you have some practice at this, it’s extremely easy to stuff up your character and have to start all over again)
      [/list]
      Go to 'File' and click ‘Save’ or click the little ‘floppy disk’ icon. Then click yes (or ok, when the warning pops up).

      Alt-tab back to the game and click on Quit and exit to the main menu (Do not return to the current game or look at the items or open your inventory)

      Reload your character, then look at your items and they should all be ‘Gold’, But they shouldn't have any enhancements on them, or if they had 1 or 2 originally, they won't be changed.

      Go to an ‘Augmentrex 3000’ in the station and place an item in, then click on any of the property buttons (common, etc), and you should end up with a ‘Unique’ version of the item in its place (if their isn’t a suitable version of that item in the ‘Unique’ class, you’ll get a legendary version instead) if the item doesn't already have the maximum number of ‘enhancement’ slots used, you can add them (of course it will cost you palladium to augment the item, but that's normal).
      Aut viam inveniam aut ipse viam faciam.

      Malachor

      • Developer
      • Great Eye / First
      • ****
      • Posts: 2004
      • Karma: 25
      Re: Tutorial on 'hexing' your Character
      « Reply #1 on: Jul 31, 2009; 03:20 PM »
      Nice one Berit :)
      If I may add a little note regarding the items:
      When changing the quality of the item from normal(white) to unique(yellow), the item must not have been already augmented, otherwise you'll get a yellow item, that isn't, and won't be, a unique.

      Berit

      • Founder
      • Dark Will
      • ***
      • Posts: 877
      • Karma: 1
      Re: Tutorial on 'hexing' your Character
      « Reply #2 on: Jul 31, 2009; 11:09 PM »
      Thanks Malachor ... I'm hoping anyone who has Hex edited their character, and found ingame limits will post it here ... Sort of as a guide ...

      ................................
        Splash damage Radius seems to have a Limit of +25 metres

        Firing Accuracy seems to be the most useful one to adjust, I normally use -149 (FFFFFF6A in hex) = 150 Firing Accuracy in game, for good results

        Adding more than 1000 Armour seems to have no real effect on the damage you take

        Adding more than 5000 Shields seems to make no real difference to damage

        +2500 'Health regen' is about the useful limit (29AB in hex)

        +999 thorns damage seems to be the most you can add manually, but the game may add more itself without deleting you're item

        You need to add a specific 'Elemental attack strength' for it to increase the effect on a weapon i.e. Add both +1500 Fire Damage AND +1500 Ignite attack strength, to instantly incinerate almost anything (very fun  :D )

        For Shields you need to alter both the Base shields AND the Total shields, modding the bonus shields seems to have no effect, However Bonus Armour does work

        Modding the Critical Chance % Always results in a deleted Item for me, so careful touching that one

        Rate of fire will NOT be saved on the item, so don't bother with that

        Missile speed doesn't make a huge difference
      Aut viam inveniam aut ipse viam faciam.

      Malachor

      • Developer
      • Great Eye / First
      • ****
      • Posts: 2004
      • Karma: 25
      Re: Tutorial on 'hexing' your Character
      « Reply #3 on: Aug 01, 2009; 04:00 AM »
      You do know there's 2 splash damage radius, 1 in metres, the other in x%. The x% isn't as overpowered as the metres, and items only spawn with x% (that I've seen).

      Armour would depend on your level, and monster level I guess, since the higher you are(further into the game), the less effect that amount has.

      I've had no trouble with critical chance, but something to be careful of is the character has a base chance, and it uses the same property. Also the maximum of it is 95%.

      Hogan

      • Nameless
      • *
      • Posts: 1
      • Karma: 0
      Re: Tutorial on 'hexing' your Character
      « Reply #4 on: Aug 08, 2009; 09:00 AM »
      About the byte ordering of numbers in RAM... its not just about HGL, all numbers in all applications are stored this way.
      http://en.wikipedia.org/wiki/Endianness

      lolikc

      • Nameless
      • *
      • Posts: 2
      • Karma: 0
      Re: Tutorial on 'hexing' your Character
      « Reply #5 on: Oct 03, 2009; 03:22 AM »
      Ok i have been experimenting with HxD and hellgate london and i found the following limits
      Do not add shield penetration over 100% or your weapon might go poof
      Check the limits for unique amount or mods before adding em cause i once went overboard and Th veteran got destroyed
      Increase Damage % just change it to 1000% is enough as going higher would take up lots of  memories and would lag your game
      Oh and 95% critical chance is the maximum on one weapon as changing it to 255% will only show as 95%
      Thanks

      StickyMucus

      • Founder
      • Named
      • **
      • Posts: 264
      • Karma: 3
      Re: Tutorial on 'hexing' your Character
      « Reply #6 on: Oct 05, 2009; 07:25 AM »
      yeah, ive lost a couple of weaons while experimenting.  but im getting better at it.  i try to keep the changes moderate, nothing too crazy.  i can now complete all quest in st paul's without dying ... too much.  ;)
      "It is the mucus that binds us"

      lolikc

      • Nameless
      • *
      • Posts: 2
      • Karma: 0
      Re: Tutorial on 'hexing' your Character
      « Reply #7 on: Oct 05, 2009; 08:43 AM »
      Phasing monsters require only add 2,000% spectral damage and 2,000 phase attack strength,Oh and each memory on hellgate requires 4 different memories
      and unique shield or armor i had been only able to find two so maybe someone could see why is that or i havn't been very lucky with HxD oh does anyone know any memory for Drone attribute? Thanks

      Harrowing

      • Developer
      • Dark Will
      • ****
      • Posts: 544
      • Karma: 8
      • IGN's *Harrowing *Sylphien *Garock
      Re: Tutorial on 'hexing' your Character
      « Reply #8 on: Oct 05, 2009; 07:56 PM »
      ON critical chances and damages

      1# Base character critical chance DO not Exceed 254% ( your character will self delete) FE in hex

      2# Base Critical chance on a weapon//shield//focus again 254% ( item may or may not delete at 255%) *FE* in hex

      3# Critical chance multipler ( base) do not exceed 255%) *FF* in hex

      4# do not exceed 255% base critical damage ( inherent bonus on items) ( item will self delete) *FF* in hex

      5# between 750% and 1000% +critical damage bonus% somewhere between those values the item will self delete ( It deletes at 1000%, but will stay if left at 750%) 750 is    *EE 02*  1000 is *E8 03*

      6# The TOTAL sum of Critical damage bonus and Critical damage + bonus cannot exceed 1023% on any item (it may self delete). *FF 03* in hex

      On all the critical caste chance multipliers same maximums as critical damage bonus + do not exceed 750% *EE 02* in hex

      7#On critical caste damage bonuses do not exceed 750% *EE 02* in hex

      8# On interrupt strength DO not exceed 1023 total strength *FF 03* in hex

      9# When using the rate of fire replacement trick
      Note a. do not exceed more than 5 inherent attributtes to the item. ( any more and the item may self delete (i.e. natural interrupt strengths)
      Note b. do not exceed more than 6 augments of non-inherent attributes
      Note c. Do not exceed more than 9 total attributes for any given item.  ( item may or may note self delete)
      Note d. Some uniques can have more than 9, but not all can.  This seems tied to weapons//shields//foci

      That should help get you guys started.

      Also by replacing the rof attributes on weapons//Foci you can actually *add* beyond what most items attributes can have in HG:L 1.2 SP.

      Just remember that when you modify rof properties to save and exit right away, Hope this helps some noobs from losing a lot of items//characters//time.

      *Final note*  The game in 1.2 Sp WILL ALWAYS CAP your maximum critical chance at 95% even if you have so much overrun you above 100%.  95% is a *hard* cap and cannot exceeded.  This means having 101% critical chance is a waste of 6% total critical chance, and having 150% critical chance to a class is a waste of 55% to that class.  Regardless of how much you think you could alter the game, Critical chance is capped at 95%.
      « Last Edit: Oct 05, 2009; 08:07 PM by Harrowing »
      The absence of energy is Absolute Zero

      Harrowing

      • Developer
      • Dark Will
      • ****
      • Posts: 544
      • Karma: 8
      • IGN's *Harrowing *Sylphien *Garock
      Re: Tutorial on 'hexing' your Character
      « Reply #9 on: Oct 05, 2009; 08:03 PM »
      Second note Berit.....

      There is in-game limits on splash radius for classes, and single item stats.  Not for maximum total splash size.

      I know for a fact by equipping 2 foci (bottemless prisms) each at +500% splash size, and 5 pieces of +500% splash radius armor I can easily exceed the level size of each map with swarm, lighting ball, and hellfire. (totaling +3500% splash size)

      So the individual % bonus are capped, but not the total affect.  Any~who for most evokers anything more than 2500% total is a waste, because at that point your gonna fill up the entire level or close to it.
      The absence of energy is Absolute Zero

      Telepath

      • Founder
      • Named
      • **
      • Posts: 124
      • Karma: 0
      Re: Tutorial on 'hexing' your Character
      « Reply #10 on: Oct 06, 2009; 03:59 AM »
      First: thx to Berit&Harrowing

      2nd: from where u get this infos out of?
      tried or disassembled things or...??
      Who cares Dolce & Gabbana....

      Wearing Heckler & Koch !

      Harrowing

      • Developer
      • Dark Will
      • ****
      • Posts: 544
      • Karma: 8
      • IGN's *Harrowing *Sylphien *Garock
      Re: Tutorial on 'hexing' your Character
      « Reply #11 on: Oct 06, 2009; 06:55 AM »
      I've hex edited a lot, Most of this is simply trial and error.  However there some barriers that are *natural* in the engine code.  Basically their are currently 4 low end caps that I know of when hex-editing items and characters

      in the decimal system the numbers that items seem to dissapear at are always close to these

      255,
      1023,
      65535,
      16777215,

      IN hex those are
      *FF*
      *EE 03*
      *FF FF*
      *FF FF FF*

      Notice where the limits are placed at?  most of them have to do with memory address sizes and locations.  Not physical code, the items often disappear because they have had their *locations* changed as well as the value.  Not only that but sometimes when hex'ing you can crash your game,  Remember YOU ARE PHYSICALLY Altering your RAM storage.  Results can be dangerous as Berit has already stated.
      The absence of energy is Absolute Zero

      Telepath

      • Founder
      • Named
      • **
      • Posts: 124
      • Karma: 0
      Re: Tutorial on 'hexing' your Character
      « Reply #12 on: Oct 06, 2009; 07:16 AM »
      be sure, know this... ;)

      Me (28hex) old and spend about (1101bin) years on stuff like this ;)

      But, trial and error?
      Cant believe...
      What is "natural engine code"?

      Hmmmm, me bit drunken and therefore out of scoring, sry
      But, investigating further ;)

      scnr ;)
      Who cares Dolce & Gabbana....

      Wearing Heckler & Koch !

      virtuosowannabe

      • Nameless
      • *
      • Posts: 28
      • Karma: 0
      Re: Tutorial on 'hexing' your Character
      « Reply #13 on: Nov 01, 2009; 02:39 AM »
      Hmm I've tried hexing the character's base crit but nothing seems to happen!

      Ok here is what i did.

      Start game, start character, alt tab

      Open hex editor, looked for 00 00 c0 12 01 00 00 00

      Replace 01 with to 5A which is 90% in deci

      selected Replace all

      Press Ok. Saved.

      Alt tab back.

      Quit.

      Start character again.

      No change! can anyone tell me what I've done wrong?

      edit: not sure why but i've changed my desired outcome from 90 to 80% crit and it works now :S

      Harrowing

      • Developer
      • Dark Will
      • ****
      • Posts: 544
      • Karma: 8
      • IGN's *Harrowing *Sylphien *Garock
      Re: Tutorial on 'hexing' your Character
      « Reply #14 on: Nov 01, 2009; 04:22 AM »
      Editing your base character stats is possible.... Just remember don't get excessive and backup.. editing the base stats can actually cause the game to delete your character upon save & exit if it deems it broken.

      Secondly, Its better in the long run for you to edit in on armor or some other *replaceable* gear part critical chance base... Preferably from another stat (like ignite defense).  This leaves up precious aug *slots* for your weapons.
      The absence of energy is Absolute Zero