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 


Looking for a guide on cmp out addresses

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
Turkeychopio
Cheater
Reputation: 0

Joined: 06 Aug 2014
Posts: 36

PostPosted: Sun Sep 26, 2021 1:38 pm    Post subject: Looking for a guide on cmp out addresses Reply with quote

I've been finding it so hard trying to do that lately. Sometimes they change when you relaunch game and sometimes they just dont seem to work at all even if it seems like it would.

I typically choose 5 or 6 commonalities other than the one I'm trying to single out and then just choose the first register in 4byte.

Can't seem to find any good guide on it on youtube either
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1053
Location: 0x90

PostPosted: Sun Sep 26, 2021 3:30 pm    Post subject: Reply with quote

When scanning for commonalities, the address that holds the value you want to change should be set to group 1 then a handful of addresses set to group 2. Once you've assigned groups scan for commonalities. Select the register (eax/rax,ecx,rcx,edi,rdi etc...) and save the file to a location.

In the new window the far-left column will hold an offset. Look for a row where column 1 holds a value that is different to every other column. Usually it's something like 1 or 0. Take note of that offset then you can compare like this:
Code:

aobscan(symbol, aob)
alloc(newmem,$1000,symbol)
label(code)
label(return)
label(compare)

newmem:
   cmp [register+offset], value
   jne compare
   // code you want to execute if value matches group one
   jmp return

compare:
   // code you want to execute if the value matches group two
   // usually it's normal code but sometimes you can do other things
   jmp return

code:
  // original code
  jmp return

return:
registersymbol(symbol)
...


Obviously this isn't copy/paste code but it will give you an idea of how to achieve a comparison.
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 Discussions 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