Jump to content

Make a savegame edit


1666

Recommended Posts

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.

Share this post


Link to post

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 by Sinshu

Share this post


Link to post

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 by Paf

Share this post


Link to post

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).

  1. Move the vertical position of the cursor to the offset 00000050.
  2. Move the horizontal position of the cursor to the offset 04.
  3. You will see the health value on the right window at the row "Int32".
  4. Change the value to what you want.

Share this post


Link to post
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.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...