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 opcode location

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

Joined: 28 May 2016
Posts: 2

PostPosted: Sat May 28, 2016 11:22 am    Post subject: Changing opcode location Reply with quote

I'm currently working on making a cheat table for a puzzle slider game (e.g. Bejeweled) where the addresses for current score, score needed to win, remaining moves, etc., change every time a new round is started. I've already found working pointers for all the values I want to manipulate. In order for a round to be counted as a win, the current score must equal the score limit exactly (i.e., you can't win by setting the score to 999,999, when the limit is only 5,000).

I want to make a code injection on the opcode that writes to the score so that as soon as that value changes, it gets set to the same value as the score limit, creating an instant victory. However, I've found that the address for this opcode changes with every startup of the game. Is it possible to create a script that will always replace the right opcode, or should I take a different approach?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4708

PostPosted: Sat May 28, 2016 12:02 pm    Post subject: Reply with quote

Use an aobscan to find the instruction that writes to the address of your score.
_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
DeepDarkDepths
How do I cheat?
Reputation: 0

Joined: 28 May 2016
Posts: 2

PostPosted: Sat May 28, 2016 3:15 pm    Post subject: Reply with quote

Worked flawlessly.

Thank you, ParkourPenguin.
Back to top
View user's profile Send private message
5maestro
How do I cheat?
Reputation: 0

Joined: 06 Jun 2016
Posts: 0
Location: ibiza

PostPosted: Wed Jun 08, 2016 3:57 pm    Post subject: add a pointer ...... Reply with quote

you can add a pointer with some ofssets too.
example(directlyonly pointer):

enable]
alloc(newmem,1024)
label(exit)
newmem:

"cheatengine-x86_64.exe"+00000f58:
add eip,"cheatengine-x86_64.exe"+00000f58:

exit:




[disable]
add eip,"cheatengine-x86_64.exe"+00000f58:

best regards

_________________
5maestro
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