1666 Posted September 14, 2021 I want make a savegame edit for DOOM2 but all utils for it are for DOS. I'm trying make it in a HEX editor but I don't have idea because I can't find where change HP of player or which weapons give to player. 0 Quote Share this post Link to post
Sinshu Posted September 15, 2021 (edited) All the values are 4-byte integer numbers (little endian). 54: Health (integer) 58: Armor points (integer) 5C: Armor type (integer) 60: Power-up 1 (integer) 64: Power-up 2 (integer) 68: Power-up 3 (integer) 6C: Power-up 4 (integer) 70: Power-up 5 (integer) 74: Power-up 6 (integer) 78: Card 1 (0 or 1) 7C: Card 2 (0 or 1) 80: Card 3 (0 or 1) 84: Card 4 (0 or 1) 88: Card 5 (0 or 1) 8C: Card 6 (0 or 1) 90: Backpack (0 or 1) AC: Weapon 1 (0 or 1) B0: Weapon 2 (0 or 1) B4: Weapon 3 (0 or 1) B8: Weapon 4 (0 or 1) BC: Weapon 5 (0 or 1) C0: Weapon 6 (0 or 1) C4: Weapon 7 (0 or 1) C8: Weapon 8 (0 or 1) CC: Weapon 9 (0 or 1) D0: Ammo 1 (integer) D4: Ammo 2 (integer) D8: Ammo 3 (integer) DC: Ammo 4 (integer) E0: Max ammo 1 (integer) E4: Max ammo 2 (integer) E8: Max ammo 3 (integer) EC: Max ammo 4 (integer) Edited September 15, 2021 by Sinshu 0 Quote Share this post Link to post
1666 Posted September 15, 2021 Is encrypted, rip. Any way to see it as normal text/numbers? 0 Quote Share this post Link to post
Paf Posted September 15, 2021 (edited) Alternatively, you could run the game with Cheat Engine, and find the value you want to edit, then when you've finished editing it, you can save the game. That'd require a source-port like Chocolate/Crispy Doom, however. Though, both ports are save and vanilla compatable. Edited September 15, 2021 by Paf 0 Quote Share this post Link to post
Sinshu Posted September 16, 2021 It's not encrypted, but shown as hex numbers. Though I'm not familiar with your hex editor, the following procedure should work. Suppose you want to change the player's health. The position of the health value is 54 in hex (see my previous post). Move the vertical position of the cursor to the offset 00000050. Move the horizontal position of the cursor to the offset 04. You will see the health value on the right window at the row "Int32". Change the value to what you want. 0 Quote Share this post Link to post
RjY Posted September 16, 2021 14 hours ago, Sinshu said: Suppose you want to change the player's health. The position of the health value is 54 in hex (see my previous post). FWIW if the player health is edited here, then the player mobj health in the mobj table should be edited to match it. This is much later in the file, after the sectors and lines tables. One can edit armour, weapons, ammo etc easily, but health is funny this way. 1 Quote Share this post Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.