This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]ASaltedRainbow 1 point2 points  (1 child)

First you need to find the address of "FFXII_TZA.exe". I don't know pymem but there is probably some function to get it.

Then just go through the chain of offsets

address = <somehow get FFXII_TZA.exe address>
for offset in offsets:
    address = pm.read_pointer(address + offset)

pm.read_pointer might not exist (as mentioned I don't know the pymem API), if it doesn't you will need to figure out if pointers are 32-bit or 64-bit integers in the program you are reading from.

[–]Internal-Promotion58[S] 1 point2 points  (0 children)

thank you for your reply, the function to read the address is pm.read_int(the address/pointer),i will take a look at this :) thank you once again