as per title. below is the instruction that updates the minutes passed in the game im making a table for. how do i save the address of ecx+10 to my table?
i tried doing it using LEA and using MOV to store it into a symbol, but im getting the address for the allocated memory for _minutes and not for ecx+10. what am i doing wrong? is there another way to get the address?
haven't modified the script yet, but i tried changing the address to include brackets but i got zeroes instead. the address im looking for is the 25B93FFC or whatever it is for each run of the game.
cheat off
mov [ecx+10],eax should be before you overwrite eax with the effective address of ecx+10.
You can also try just writing ecx to _minutes and then setting the memory record as a pointer with an offset.
To do that, double-click on the address of your record and tick the checkbox for 'pointer'. Set the address to '_minutes' and the offset to '10'.
You can also try just writing ecx to _minutes and then setting the memory record as a pointer with an offset.
To do that, double-click on the address of your record and tick the checkbox for 'pointer'. Set the address to '_minutes' and the offset to '10'.
somehow the value of ecx isnt being stored in _minutes. changed this part of the script and made the memory record a pointer with an offset of 10 and im getting 10 as an address. the timer in the game still works tho so the mov [ecx+10], eax still works.
When does that instruction get run?
Can you set a break point on it?
ecx is written to _minutes just before the game updates the minutes passed. anyway, i added a break and trace on the mov [_minutes],ecx instruction in the disassembler to check the value of ecx and it started working after that. i have a feeling it's just me being an idiot and not letting the game run unpaused long enough for the values to be updated properly.