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 


Finding Comparison Problem

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
danny96
Newbie cheater
Reputation: 0

Joined: 10 Jul 2020
Posts: 20

PostPosted: Mon Feb 14, 2022 8:59 am    Post subject: Finding Comparison Problem Reply with quote

I wanna make one hit kill in far cry 3 .
The code is movss [esi+10],xmm0
Hp , oxygen under water , stamina and bulletproof values running
through this code so it is shared code .
in xmm1 there is a cap value for all of this

For One hit kill I'm writing like ;

subss xmm0,xmm1
movss [esi+10],xmm0 //This works

The problem is whenever I'm trying to make some comparison
my code is not working . Actually I'cant find any good comparison .
Is there a someone who can guide me for this game ?

_________________
_d_
Back to top
View user's profile Send private message
TheyCallMeTim13
Wiki Contributor
Reputation: 51

Joined: 24 Feb 2017
Posts: 976
Location: Pluto

PostPosted: Mon Feb 14, 2022 9:19 am    Post subject: This post has 1 review(s) Reply with quote

Generally you want to show the code that's not working when asking what's wrong with code and why it's not working.

But I can tell you that FC3 has Dwords (4 byte integers) that work as IDs, and there are strings back inside the structures that can be used as IDs too, plus if you go back aways in the function calls you can find instructions that only pertain to one thing at a time even separated for player, NPCs, and animals. But the Dword IDs are right near the values and can be found using the dissect data structures tool, I don't remember exactly where as I went a different route to find where damage was calculated.

_________________
Back to top
View user's profile Send private message Visit poster's website
danny96
Newbie cheater
Reputation: 0

Joined: 10 Jul 2020
Posts: 20

PostPosted: Mon Feb 14, 2022 9:40 am    Post subject: Reply with quote

Interesting , I will look for it .
_________________
_d_
Back to top
View user's profile Send private message
danny96
Newbie cheater
Reputation: 0

Joined: 10 Jul 2020
Posts: 20

PostPosted: Tue Feb 15, 2022 8:08 pm    Post subject: Reply with quote

Job is done . movss [esi+10],xmm0 wasn't a good spot for hack . So
I looked for better code and saw movss xmm0,[esi+10] which is a bit below . I understand that when a lot of things pop up in that screen it is not good for business . After that I looked for register values for this code and realized that eax and edi base values are same for those things ( hp , stamina , oxy underwater stuff ) .

I'm aware that base values will be changed after loading saved games so I copied edi base value , pasted to dissect data structure and saw edi+4 is holding dword ( 4 byte) integer like you explained .I closed the game then opened again and that value was always same . I played the game like 5 hours everything works just perfect . Thanks for your time mate , you gave me good idea.

_________________
_d_
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