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 


deal with Encrypted Value which opcodes are Shared

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Meiyoh
Master Cheater
Reputation: 1

Joined: 14 Mar 2015
Posts: 404

PostPosted: Fri Jul 03, 2020 4:12 am    Post subject: deal with Encrypted Value which opcodes are Shared Reply with quote

I want to deal with 4 bytes encrypted value and find the real value behind some animations i want to do. Problem is all codes writing to the address are shared between enemies and character.

How can i deal with this ?

_________________
I am the forgotten one the dead one.
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 98

Joined: 14 Jul 2007
Posts: 3349

PostPosted: Fri Jul 03, 2020 5:44 am    Post subject: Reply with quote

You need to find a way to distinguish friendlies from baddies and perform a check before you execute your own code - we call this a player check.

e.g.
Code:
cmp byte ptr [rax+10],0
jne short baddie // It is not the player?
mov dword ptr [rax+50],(float)100 // Set health to max
jmp short ret
baddie:
mov dword ptr [rax+50],(float)0 // Set health to 0
ret:
jmp back
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Fri Jul 03, 2020 2:45 pm    Post subject: Reply with quote

Many ways to filter out unwanted addresses.

https://forum.cheatengine.org/viewtopic.php?p=5667414#5667414

If you are familiar with using dissect data structure, you can oftentimes find a value within that structure that is being accessed by an instruction that is exclusive to that address, allowing you to insert your injection in a less-obvious location. In such a case, you would just apply the appropriate offset in order to alter the important data.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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