当我写入具有多个偏移量的地址时,我遇到了问题。
值不变。
代码:
int Base = 0x00477958;
VAMemory vam = new VAMemory("gameNameHere");
int localPlayer = vam.ReadInt32((IntPtr)Base);
while (true)
{
int address = localPlayer + 0x34 + 0x6c + 0x6fc; // base + offsets (Score Pointer)
vam.WriteInt32((IntPtr)(address), 5000000); // here if i replaced address with 0x02379F1C, it will work but that's not dynamic
Thread.Sleep(500);
}
我使用作弊引擎来获取偏移量,然后我重新启动游戏以检查我的偏移量是否正确
00477958 -> 02522880
02522880 + 6FC -> 023D5B00
023D5B00 + 6C -> 02379EE8
02379EE8 + 34 -> 02379F1C
02379F1C = 5034500 // Score