(10-13-2014, 04:09 PM)ispongebob10 Wrote: Code:
Max/Infinite Health
E0040000 101D6818
601D6818 00000000
00000343 000003E7
601D6818 00000000
00000342 000003E7
Infinite Stamina
E0020000 101D6818
601D6818 00000000
00000525 00007530
Those codes are included type 6(or pointer) codes. Some addresses of weapons/items in MGS3(or many action games) are changed on each stage/map/level. That's why type 6 codes would be used in those ones.
The problem is, difficult to understand its meanings. (at least for me)
What you should do would be, to understand meanings of those codes and to compare them with its actual behaviour by using like Cheat Engine.
Explanations/implementations of type 6 code are written here:
Codemasters Project
http://www.codemasters-project.net/porta...content.23
pcsx2 1.3.0 (Git) - Souce code: pcsx2/Patch_Memory.cpp
https://github.com/PCSX2/pcsx2/blob/mast...Memory.cpp
P.S.
Those weapon codes are written as fixed addresses, I'm not sure, but this is a bit weird for me.
P.S.2.
Here is what I did to find addresses of weapons on each map of MGS3 Subsistence (U).
(1) Search this byte array: 010000000000000081B1C00601
(2) A few addresses will be found, and the first one is an address of an owned flag of Survival Knife.
(3) Add the address to a certain offset dependant on a weapon what I want.
If these steps can be written as type 6 codes and simplified, it would be really useful.