Dead State

Dead State

Not enough ratings
How to edit item attributes in Dead State
By starfuryzeta
This is a step by step instruction on how to modify attributes of existing items in the game Dead State.
2
   
Award
Favorite
Favorited
Unfavorite
What you will need.
What you will need.
1. calculator with hex/dec conversion
2. archive extraction software
3. hex editing software
4. floating point conversion program/website
Editing Instructions.
How to edit items in Dead State:
1. Make a backup of your scripts.aod file.
2. Extract scripts.aod in the install directory. I used 7-zip.
3. Find /data/core/items.dat
4. Make a backup of your items.dat file
5. Open items.dat using a hex editor. I'm using HxD.
6. Search for text string for item to edit. For example, to edit the laser site M4 rifle, search for laser.
  • Alternatively, you can open up the itemtext.english.xml file and fine the items ID tag (laser M4 rifle is ID 908)
  • The item tag is located before the item's image file name, stored in hex.
  • ID 908 in hex is 038C. Tags in hex are transposed, so search for hex value 8C03.
    00000000 00000000 00000000 00000000 00000000 00000000 8C030000 08007269 ........................Œ.....ri
    666C655F 6D73345F 6C617365 72536967 68742E70 6E670000 00000000 00000000 fle_ms4_laserSight.png..........
7. For weapons, you will see the attack types in plain text (Auto, Burst, Fire, etc)
  • If you see New Attack, then there are no more attack types for that item.
  • Between the Attack name and the animation file name will be the data you wish to change.
  • There are 4 bytes that will contain the AP cost, the Ammo cost, the minimum damage (in hex) and the maximum damage (in hex).
    00000006 00000003 00000019 00000032 - for example, 6 AP using 3 Ammo, 25 (19 hex) damage, and 50 (32 hex) damage
  • Modify each attack type to suit your play needs.
8. For weapons, ammo and weight:
  • Ammo is listed in plain text (556 Ammo, 7.62, etc) between the weapon name and the first attack type name.
  • In the string of bytes before the ammo name will be the maximum ammo capacity of the weapon, stored in HEX.
    (For example, the high volume AK rifle has 45 ammo, which is 2D in hex. The suppressed SMG has 15 ammo, which is 0F in hex)
    002D0000 00050000 00372E36 32000000 .-.......7.62...
    01060000 000F0000 00040000 00396D6D .............9mm
  • Weight is a floating point number, so you will need to utilize a floating point conversion program/website. I used http://www.binaryconvert.com/convert_float.html
  • Convert the decimal number to binary representation. Look at the value after the 0x. (for example, 10.5 pounds is 0x4128)
  • Transpose the digits (4128 becomes 2841) and search for that value in Hex under the item in question. It should come before the ammo tag (weapon) or first New Attack tag (armor).
  • Using the decimal to float conversion, convert a smaller decimal number. (for example, 5.5 pounds is 40B0)
  • Transpose the new digits (40B0 become B040) and overtype the original value.
9. Armor is different in that the armor stats are stored at the end of the item entry, right before the next items ID tag.
  • Find the armor name, then keep going until you reach the next items ID tag.
  • Armor stats are stored in the bytes right before that ID tag. (for example, Apocalypse Armor has defense 25 (hex 19), Bite 50 (hex 32), Ballistic 30 (hex 1E), Fire 40 (hex 28), Slashing 40 (28), Bludgeon 40 (28), Pierce 40 (28), and Chemical 40 (28))
    19000000 32001E00 28002800 28002800 2800
10. Save all changes.

11. Once finished editing, open up the archive scripts.aod.
  • navigate in the archive to the /data/core directory
  • drag your modified items.dat file into the /data/core directory of the archive, replacing the existing file

If done correctly, if you start the game and load your save, you will see the item stats have changed.

Enjoy![/code]
7 Comments
(FLAH) Ken Jul 25, 2020 @ 9:59am 
Interesting. Im going to be doing this soon.
starfuryzeta  [author] Jan 1, 2015 @ 4:55am 
that is just the hex value of the item name, used for searching in the file itself. Nothing to modify in that line. :D:
Marius Dec 31, 2014 @ 6:58pm 
sorry I am new to this stuff wich line you modyfi exactli

this one
666C655F 6D73345F 6C617365 72536967 68742E70 6E670000 00000000 00000000
Liro Raériyo Dec 17, 2014 @ 3:51am 
Thank you so much.
starfuryzeta  [author] Dec 17, 2014 @ 3:27am 
You'll have to use the console command line for status effects, I'm afraid.

I can't post the command listing in the comment box, but you can check the game website:
http://www.irontowerstudio.com/forum/index.php/topic,5622.msg129622.html#msg129622
Liro Raériyo Dec 16, 2014 @ 5:59pm 
would this let me be able to modify the effects of a status? because i am sick and tired of this endless burning status and would apreciate being able to either remove the status or make its effects non existant.
Markus Dec 16, 2014 @ 2:03am 
or use cheatengine table.
what the point in all of this ?