P
P
PeroPero2017-03-06 23:19:05
C++ / C#
PeroPero, 2017-03-06 23:19:05

Working with process memory how to work with dynamic addresses?

Hello, there is an address I need when I restart the game, it constantly changes. Tell me how to make it permanent or for a new one to find it?
Game wow, let's say an address that contains the character's xp. Explain or give a link where you can read about it.
this is how I read the data I need ReadProcessMemory(process, (LPCVOID)(0x2C72A538), &Health, 16, NULL); everything works fine when restarting the game the address 0x2C72A538 changes.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladimir Martyanov, 2017-03-06
@vilgeforce

Read about virtual addresses and you will be happy.
The OS can place the process where it likes and allocate an arbitrary virtual address space to it.

D
Dmitry, 2017-03-07
@TrueBers

If you need something quick and easy, without going into disassemblers and reverse engineering, then follow the Cheat Engine tutorial . There it is excellent and simply told how to search for such addresses.
And then write your own scanner for this case, if necessary.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question