Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Cheat Engine and Pointers.. confused.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
ThatGuyWhoHax
How do I cheat?
Reputation: 0

Joined: 21 Jun 2006
Posts: 8

PostPosted: Wed Jun 21, 2006 3:11 pm    Post subject: Cheat Engine and Pointers.. confused. Reply with quote

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
View user's profile Send private message
ThatGuyWhoHax
How do I cheat?
Reputation: 0

Joined: 21 Jun 2006
Posts: 8

PostPosted: Wed Jun 21, 2006 8:03 pm    Post subject: Reply with quote

Anyone?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25814
Location: The netherlands

PostPosted: Thu Jun 22, 2006 1:43 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
ThatGuyWhoHax
How do I cheat?
Reputation: 0

Joined: 21 Jun 2006
Posts: 8

PostPosted: Thu Jun 22, 2006 1:54 am    Post subject: Reply with quote

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
View user's profile Send private message
Garonne
How do I cheat?
Reputation: 0

Joined: 22 Jun 2006
Posts: 5

PostPosted: Thu Jun 22, 2006 3:29 am    Post subject: Reply with quote

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... Sad
Back to top
View user's profile Send private message
ThatGuyWhoHax
How do I cheat?
Reputation: 0

Joined: 21 Jun 2006
Posts: 8

PostPosted: Thu Jun 22, 2006 5:01 pm    Post subject: Reply with quote

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. Smile I expect most of you will just use the trainer maker though.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites