| View previous topic :: View next topic |
| Author |
Message |
PuppyKevin How do I cheat?
Reputation: 0
Joined: 18 May 2009 Posts: 2
|
Posted: Sun Dec 26, 2010 1:04 am Post subject: Reading memory values in live time? |
|
|
| 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 |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Sun Dec 26, 2010 6:00 am Post subject: |
|
|
| 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 |
|
 |
PuppyKevin How do I cheat?
Reputation: 0
Joined: 18 May 2009 Posts: 2
|
Posted: Sun Dec 26, 2010 9:16 am Post subject: |
|
|
| 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 |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
|
| Back to top |
|
 |
|