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 


Changing register at a location.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Culinary
Newbie cheater
Reputation: 0

Joined: 24 Mar 2011
Posts: 15

PostPosted: Fri Jun 17, 2011 2:31 pm    Post subject: Changing register at a location. Reply with quote

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.
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 Gamehacking 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