Culinary Newbie cheater
Reputation: 0
Joined: 24 Mar 2011 Posts: 15
|
Posted: Fri Jun 17, 2011 2:31 pm Post subject: Changing register at a location. |
|
|
Hey guys, I am trying to change the EAX register at a certain location before the jump condition that tests it. Now the instruction that I am doing this to is one thats obviously hit like 100 times a second (guessing ;p)
Now I noticed when I use cheat engine to do this, it works flawlessly (thanks dark byte Very Happy) however when I use it with my own code, the game works, but its extremely choppy and sometimes program control flow is faster then my debugger loop that is changing the register.
Please note I am not using hardware bps for this, or should I be?
I write a breakpoint to the location -
It breaks, I get the thread context and check the EIP obviously
I set Eax to 1 (I dont want it to be 0)
I set the thread context
I then write back the original byte which I have stored in a local buffer
I then proceed with continue debug event, and writing another breakpoint to this location.
The game does not crash, it is just extremely chopped up and eventually locks entirely. Am I going about this wrong?
Thanks for the help.
|
|