There are two different types of Dvars youll need to be familiar with.
(1) Boolean Dvar- This type is either on or off -THATS IT.
This type can be characterized by [38 80 00 00] in hex.
To change this just change the last two zero's to 01=on
or 00=off
(2) Float values- This type gives you a numerical value for a givin
execution. ie jumpheight= 39.0
To change this youll have to convert it to hex....Ill let you figure this out
Locating Values
(1) Once your file has finished converting to code youll see this
You must login or register to view this content.
Notice how my colors are different, I changed them manually to assist in viewing comments. To do this, simply go to options/color and change the "automatic comments" to a bright color. These are the Dvar text youll be looking for.
(2) To find a Dvar you want to change, simply go to the search text option at the top of the screen and input the text.
(3) After you have located the Dvar text, look below it depending on the Dvar type, youll see either %r4 0
You must login or register to view this content.
or flt_xxxxxxx
You must login or register to view this content.
where the x's are numbers and letters representing its location. If you see this good, your almost there.
Changing the Values
(1) To change the Boolean Dvars, Highlight the "%r4" text, then simply change to hex view. Youll see this;
You must login or register to view this content.
notice the highlighted hex at the bottom (38 80 00 00) this is what youll change. Now notice under that the Address highlighted with a red box.
(2) Open the same file in HxD and locate the address you found in IDA.
Simply change the last two 00's to 01 and hit CTRL S to save.
Done!
You must login or register to view this content.
(3) To change the Float Dvars, double click on the flt_xxxxxxx text in IDA and it will take you to a screen like this
You must login or register to view this content.
Highlight the NUMERICAL value only and switch to hex view.
(4) Once in hex view locate the highlighted hex, (remember this) and again look at the address located at the bottom left.
You must login or register to view this content.
(5) Locate that address in HxD, This is the hex youll need to change.
You must login or register to view this content.
Now this is the part YOU need to figure out. Find an application that converts Numerical "Dvar" ie (39.0, or [42 1C 00 00] -->9999 or [46 1C 3C 00 ) values into hex representations. Convert the new number you wish to use into a hex representation and overwrite this hex with the new one. CTRL S to save. DONE!
By
*SHAOS*