View Single Post
Re: Am I in the right place?
Old
  (#6)
Cheeseh
[rcbot]
 
Cheeseh's Avatar
 
Status: Offline
Posts: 361
Join Date: Dec 2003
Location: China
Default Re: Am I in the right place? - 15-03-2006

you need the offset of the variable, not the exact memory location..

if you find the memory location of the health and co-ordinates, subtract from the memory location of the beginning of the process, you can find this out on the process window i think, if not try debugging with MSVC and view the modules, it will tell you the memory location of the beggining of the module. Once you find the offset you can get the variable back by casting it as a pointer from the mem location e.g. float coord=*(float*)(ProgramStartLocation + offset)

if you are already doing that then maybe you aren't picking up the correct location, keep searching within the locations you found for changes when health changes, increase/decreases/no change etc until you find just one location (or more that are always the same)

if you've done that too, then probably the program is creating the health from a heap and it will be pretty difficult to find this information. you could find the memory location of sometihng relating to the player such as co-ordinates and try seeing if the offset from the co-ordinates and health is always the same (and not the offset from the program's mem location)

oh, if all else fails, maybe you could see if someone has already made a trainer for the game which messes around with a players health, and contact them to see how they found it.

remember that if the program changes (updates etc) most liekly the offsets will change and you'll need to find them again to update your bot program. you could probably create a neat class that stores the offsets for each version if you can find out the version of the program.
  
Reply With Quote