Changing playable character via memory editing
Jan 29, 2019 11:07:56 GMT 10
ΛLISTΞR, reituolc, and 18 more like this
Post by FluffyQuack on Jan 29, 2019 11:07:56 GMT 10
Update: I added a trainer to my mod manager: residentevilmodding.boards.net/thread/10142/modding-pak-files
I'll probably make a trainer for this, but for now, I'll be lazy and just write a quick tutorial on how to do it (and maybe it will encourage people to learn more about debugging and modifying assembly code, which can be a very powerful way to mod games).
- Boot up game (stay in menus)
- Boot up Cheat Engine
- Hook onto RE2
- Click on "Memory View"
- Right click top part of window and choose "Go to address"
- Enter this address: 14E1E0768 (or 1516AD648 if you play Japanese version)
- Right click the address at top of the list and choose "Toggle breakpoint"
- In the game, load any savegame or boot up 4th/Tofu survivor
- Cheat Engine should now have paused the game and highlighted the command/address you set a breakpoint on
- In the top-right part of the Memory Viewer, double click the RDI register and enter the value for the character you want to play as
- Press F7 once
- Right click the address and remove the breakpoint
- Press F9 (to unpause the game)
- The game should now resume loading with the character you selected
By the way, the game saves current character to the savegame, so once you've changed character, you can save and you'll keep being that character even after reloading.
Note there are some major problems in regards to position. Characters seem to default to the main hall as position, and I don't think their position will update correctly after certain cutscenes.
Another thing to note is that each character has a unique inventory. Make sure to put everything into storage box before changing character.
Hunk/Tofu mode is the best place for changing character as everything works as it should there. Well, except for Sherry.
Here's a list of character IDs:
00 = Leon
01 = Claire
02 = Ada
03 = Sherry
04 = Hunk
05 = Tofu
06 = Robert Kendo
07 = Chief Irons
08 = Ben
09 = Annette
0A = Softlock (supposed to be Chris)
0B = Softlock (supposed to be Ethan)
0C = Softlock (supposed to be USS)
0D = Marvin
0E = Softlock (not a character?)
0F = Softlock (not a character?)
10 = Softlock (supposed to be William Birkin)
11 = Softlock (supposed to be "Dead Man")
12 = Softlock (supposed to be John)
13 = Softlock (not a character?)
14 = Softlock (supposed to be Katherine?)
15 = Hunk again?
16 = Softlock (not a character?)
17 = Softlock (not a character?)
Here are some videos showcasing changing character:
I'll probably make a trainer for this, but for now, I'll be lazy and just write a quick tutorial on how to do it (and maybe it will encourage people to learn more about debugging and modifying assembly code, which can be a very powerful way to mod games).
- Boot up game (stay in menus)
- Boot up Cheat Engine
- Hook onto RE2
- Click on "Memory View"
- Right click top part of window and choose "Go to address"
- Enter this address: 14E1E0768 (or 1516AD648 if you play Japanese version)
- Right click the address at top of the list and choose "Toggle breakpoint"
- In the game, load any savegame or boot up 4th/Tofu survivor
- Cheat Engine should now have paused the game and highlighted the command/address you set a breakpoint on
- In the top-right part of the Memory Viewer, double click the RDI register and enter the value for the character you want to play as
- Press F7 once
- Right click the address and remove the breakpoint
- Press F9 (to unpause the game)
- The game should now resume loading with the character you selected
By the way, the game saves current character to the savegame, so once you've changed character, you can save and you'll keep being that character even after reloading.
Note there are some major problems in regards to position. Characters seem to default to the main hall as position, and I don't think their position will update correctly after certain cutscenes.
Another thing to note is that each character has a unique inventory. Make sure to put everything into storage box before changing character.
Hunk/Tofu mode is the best place for changing character as everything works as it should there. Well, except for Sherry.
Here's a list of character IDs:
00 = Leon
01 = Claire
02 = Ada
03 = Sherry
04 = Hunk
05 = Tofu
06 = Robert Kendo
07 = Chief Irons
08 = Ben
09 = Annette
0A = Softlock (supposed to be Chris)
0B = Softlock (supposed to be Ethan)
0C = Softlock (supposed to be USS)
0D = Marvin
0E = Softlock (not a character?)
0F = Softlock (not a character?)
10 = Softlock (supposed to be William Birkin)
11 = Softlock (supposed to be "Dead Man")
12 = Softlock (supposed to be John)
13 = Softlock (not a character?)
14 = Softlock (supposed to be Katherine?)
15 = Hunk again?
16 = Softlock (not a character?)
17 = Softlock (not a character?)
Here are some videos showcasing changing character: