I'm attempting to write my code so that it is version independent and I don't have to search for the new offset every time a patch is released.
In version 15.572, the instruction which determines the first offset to pointers for player_x, player_y etc. is at address:
Gw2.exe + 6A840 "mov eax, Gw2.exe+011B39F0"
This value + 20C which gets added later in the code is consistent with what others have already posted. I could simply read the postbyte stored there to determine the first pointer. However, from my understanding of compilers, I think the location of this instruction will change with each patch. Therefore, I'm back to square one.
Does anybody have any tips on writing code that is version independent. It's cumbersome to manually search for offsets to get my speed/gravity program working again. Thanks in advance for any help.
Disclaimer: I'm new to the memory reading/writing section of botting although I have a strong understanding of memory maps, asm. etc. If this question is too noobish for this forum, sorry and feel free to delete/ignore it.