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 


Reading memory values in live time?

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

Joined: 18 May 2009
Posts: 2

PostPosted: Sun Dec 26, 2010 1:04 am    Post subject: Reading memory values in live time? Reply with quote

I'm developing a bot for a game, but a thought occurred to me when trying to make it run smoother. Currently, the function to update memory values in on a timer set around 20 milliseconds, but as you would guess, can tend to either not update the memory value quick enough for the bot to perform efficiently, or just wastes processing power from reading the memory value too often. Is there any way to have my program receive a notice when the value it's looking for it updated, rather than it constantly comparing values on it's own. Also, the bot is in C#.
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sun Dec 26, 2010 6:00 am    Post subject: Reply with quote

You could look into the game code that is writing the value. Set a hook on the calling function with an inline hook. Or use debug registers to set a hardware breakpoint on write to that memory address. Alternatively if you already found the code which is modifying that address you could just change it so it no longer does that.
Back to top
View user's profile Send private message
PuppyKevin
How do I cheat?
Reputation: 0

Joined: 18 May 2009
Posts: 2

PostPosted: Sun Dec 26, 2010 9:16 am    Post subject: Reply with quote

Slugsnack wrote:
You could look into the game code that is writing the value. Set a hook on the calling function with an inline hook. Or use debug registers to set a hardware breakpoint on write to that memory address. Alternatively if you already found the code which is modifying that address you could just change it so it no longer does that.


Would you happen to know anywhere that I could read up on setting breakpoints within C#? I'm looking myself, but I can't find anything.
Back to top
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Sun Dec 26, 2010 10:55 am    Post subject: Reply with quote

http://67.20.99.74/forum/viewtopic.php?f=140&t=16298

Although this guy sort of 'cheats' by using Dark Byte's driver.
Back to top
View user's profile Send private message
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