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 


Arbitrary value for check comparisons

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

Joined: 19 Mar 2014
Posts: 35

PostPosted: Thu Sep 29, 2016 11:36 pm    Post subject: Arbitrary value for check comparisons Reply with quote

Hi again. I came across the following code for the "Serious Sam First Encounter HD v1.0" table topic. I am wondering if the 79616C70 in the check is an actual value or if it is being used as an arbitrary value to force the code to jump to the originalcode. Just the fact the it translates to "play" in hex is what had me curious about it. If this is just an arbitrary code, is that a good way to go about doing check comparisons, or is it something that should avoided? Thanks.

Code:

mov ecx,[esi+012C]       //save address on the pointer to ecx
cmp [ecx],79616C70       //check the address where the pointer is pointing
jne originalcode         //if the result is not 79616C70 (which is "play" in hex) then jump
mov [esi+00000470],270F  //change health to 9999


originalcode:
popad
popfd
cmp [esi+00000478],eax    //and this is the original code already
Back to top
View user's profile Send private message
mgostIH
Expert Cheater
Reputation: 3

Joined: 01 Jan 2016
Posts: 159

PostPosted: Fri Sep 30, 2016 7:23 am    Post subject: Reply with quote

It might be a string value that is set when you are ingame. It's really up to you to decide what kind of value you want to choose to do this kind of check, either you find an InGame boolean, or doing what this guy did, which is checking if a particular string is there or not.
_________________
Do you need to ask me something? Feel free to join my discord server at: https://discord.gg/At4VZXA or ask me something in my YouTube channel: https://www.youtube.com/c/mgostIH
Back to top
View user's profile Send private message
Taibreah
Cheater
Reputation: 0

Joined: 19 Mar 2014
Posts: 35

PostPosted: Fri Sep 30, 2016 2:18 pm    Post subject: Reply with quote

Okay, thanks. Yeah, I re-read the original post again and he mentioned that there is a pointer on esi+012C which is pointing to a string.
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