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 


Final Question ~ Pointers

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Mon Apr 14, 2008 6:33 pm    Post subject: Final Question ~ Pointers Reply with quote

How do I to use a pointer in C++, and change its value?

Also, I need a GGCRC bypass, right?

So is it possible to make it a dynamic pointer just like mouse fly? If so, how do I accomplish it?
Back to top
View user's profile Send private message Send e-mail
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Mon Apr 14, 2008 7:18 pm    Post subject: Reply with quote

I'm guessing you mean how to deal with pointers in games rather than the actual concept of pointers in C++

ReadProcessMemory, get the value residing in the address you just read from.

Add the offset to it, repeat if necessary if there's multiple levels.

Profit.
Back to top
View user's profile Send private message
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Mon Apr 14, 2008 7:24 pm    Post subject: Reply with quote

Yea...Do u mind explaining a bit more? Or posting some code?

Also, do I need GGCRC BYpass?

P.S. You guessed the use.
Back to top
View user's profile Send private message Send e-mail
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Mon Apr 14, 2008 8:06 pm    Post subject: Reply with quote

Using pointers in games is fun. There are so many thinks you can do. As slovach stated you can use ReadProcessMemory to get the value. But whats fun is, most people use WriteProcessMemory. But you don't need it. Just bring in a pointer. Assign an address and dereference the pointer. Then you don't need to make all those calls to kernel32.dll.
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Mon Apr 14, 2008 8:25 pm    Post subject: Reply with quote

SO what do I do exactly?
Back to top
View user's profile Send private message Send e-mail
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Apr 15, 2008 3:54 am    Post subject: Reply with quote

Check out my tutorial here for dealing with altering memory based on pointers instead of using WriteProcessMemory. Mind you this tutorial is for use with an injected DLL:

http://www.extalia.com/forums/viewtopic.php?f=60&t=2795

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Anden100
Grandmaster Cheater
Reputation: 0

Joined: 20 Apr 2007
Posts: 668

PostPosted: Tue Apr 15, 2008 7:27 am    Post subject: Reply with quote

Wiccaan wrote:
Check out my tutorial here for dealing with altering memory based on pointers instead of using WriteProcessMemory. Mind you this tutorial is for use with an injected DLL:

http://www.extalia.com/forums/viewtopic.php?f=60&t=2795


Omg, nice tutorial wiccan, im sure ive seen this before, but i got hella lot of the introduktion! i dont belive, that i actually understand some of that stuff O.o, as a difference to the French language, this actually makes sence...


Last edited by Anden100 on Tue Apr 15, 2008 9:03 am; edited 1 time in total
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Tue Apr 15, 2008 8:58 am    Post subject: Reply with quote

Yea, people try to explain and make it seem complicated, but it's really easy.
_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Tue Apr 15, 2008 10:29 am    Post subject: Reply with quote

Could you give me an example of a pointer that would work in ms?

I already know how too hook to the process and such, I just need some code that I can modify/use for my own puropse..

So can you please post an example code that I can modify? It would help me a lot.
Back to top
View user's profile Send private message Send e-mail
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Tue Apr 15, 2008 4:39 pm    Post subject: Reply with quote

kitterz wrote:
Could you give me an example of a pointer that would work in ms?

I already know how too hook to the process and such, I just need some code that I can modify/use for my own purpose

So can you please post an example code that I can modify? It would help me a lot.


Lol. Seriously, just look at Wiccaan's code and edit that. Change address being pointed to. And change value being assigned. I.e. point to address that holds HP. Assign a value of 10,000. (MS has a lot of HP if I remember)

_________________


8D wrote:

cigs dont make people high, which weed does, which causes them to do bad stuff. like killing
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming 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