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 


How to use the esi?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
rog9001
Expert Cheater
Reputation: 2

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Sun Aug 14, 2016 7:03 am    Post subject: How to use the esi? Reply with quote

ok so dumb question but I was making a infinite health script for the player only and need to do a compare so what I found is when looking at what accesses the addresses (mine and opponents) there is the same instruction and when I press on "More information" I saw that for me "ESI=00000002" and for my opponent "ESI=00000003" (as you can see in the photo).
but in which way am I meant to implement the esi? As:

Code:

cmp esi,2
je HP
jmp KO


or:

Code:

cmp [esi],2
je HP
jmp KO


why I am asking this is because I tried both ways and the "cmp esi" works but after a few hits of my opponent I get KOd and I don't understand why because I looked at the "More Information" window for a bunch of different opponents and its still "ESI=00000003".
If its not possible to use the 2 and 3 then please tell me what do the registers mean?



esi_what.jpg
 Description:
Player > left
Opponent > Right
 Filesize:  159.43 KB
 Viewed:  4737 Time(s)

esi_what.jpg


Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Aug 14, 2016 7:36 am    Post subject: Reply with quote

cmp esi,2 is correct. It's likely that your value simply isn't 2 all the time.
So you'll "randomly" get KO'd when it changes for whatever reason.
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