| View previous topic :: View next topic |
| Author |
Message |
ThatGuyWhoHax How do I cheat?
Reputation: 0
Joined: 21 Jun 2006 Posts: 8
|
Posted: Wed Jun 21, 2006 3:11 pm Post subject: Cheat Engine and Pointers.. confused. |
|
|
http://putfile.com/pic.php?pic=6/17115333415.jpg&s=x2
I found a pointer to what I need and I double clicked to see the address and I find this, now i'm confused, whats the address of my pointer? Why are there 4 different memory addresses listed here? What are the offsets for? I'm not using Cheat Engine to make the trainer, but rather using C++ to write it myself, how would I access what the pointer points to using ReadProcessMemory and WriteProcessMemory? Thanks.
|
|
| Back to top |
|
 |
ThatGuyWhoHax How do I cheat?
Reputation: 0
Joined: 21 Jun 2006 Posts: 8
|
Posted: Wed Jun 21, 2006 8:03 pm Post subject: |
|
|
| Anyone?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25813 Location: The netherlands
|
Posted: Thu Jun 22, 2006 1:43 am Post subject: |
|
|
from that image:
read the address at ff5200
add 0x14 to the value.
then read the address that new value represents
add 0x1ac to the value.
then read the address that new value represents
add 0xac to the value.
then read the address that new value represents
add 0x164 to the value.
and then you'll have the address you want.
if you know programming you should be smart enough to understand this can be done with a simple loop , a base address and a array of offsets
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
ThatGuyWhoHax How do I cheat?
Reputation: 0
Joined: 21 Jun 2006 Posts: 8
|
Posted: Thu Jun 22, 2006 1:54 am Post subject: |
|
|
Thanks Byte.
Edit: seems the pointers i've found aren't always pointing the the value I want, what can I do to find a permanent way to modify the value I need?
|
|
| Back to top |
|
 |
Garonne How do I cheat?
Reputation: 0
Joined: 22 Jun 2006 Posts: 5
|
Posted: Thu Jun 22, 2006 3:29 am Post subject: |
|
|
| ThatGuyWhoHax wrote: | Thanks Byte.
Edit: seems the pointers i've found aren't always pointing the the value I want, what can I do to find a permanent way to modify the value I need? |
Sounds like the same problem I have getting a correct pointer...
|
|
| Back to top |
|
 |
ThatGuyWhoHax How do I cheat?
Reputation: 0
Joined: 21 Jun 2006 Posts: 8
|
Posted: Thu Jun 22, 2006 5:01 pm Post subject: |
|
|
| Code: |
int *ptr = (int *)0x004CF054;
int offsets[4] = {0x60,0x50,0x0,0xBC};
ReadProcessMemory(hProcess, (LPVOID)ptr, &ptr, sizeof(ptr), NULL);
for (int iter = 0; iter < 4; iter++){
ptr = (int *)((char *)ptr + offsets[iter]);
if (iter != 3) ReadProcessMemory(hProcess, (LPVOID)ptr, &ptr, sizeof(ptr), NULL);
}
|
Heres the code with the loop....
Edit: fixed a little something that was causing problems, it would point to the value at the address, thinking it was an address. Obviously if you use this, change the base address that ptr uses as well as the offsets. I expect most of you will just use the trainer maker though.
|
|
| Back to top |
|
 |
|