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 find a changed value?

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

Joined: 17 Jun 2018
Posts: 12

PostPosted: Sun Jun 17, 2018 2:34 pm    Post subject: How to find a changed value? Reply with quote

Im trying to hack Elex.
There is an unknown amount of stamina that decreases while: atacking, evading, blocking.
I'd like to stop it from decreasing while evading and blocking.

When i search for a decreased value cheat shows me 400 milions+ results with some of them red coded. The red code means that those values have changed. But it is impossible to go through all of 400milions of items!

So i'm trying to search by narrowing the first search to a value between 2 and 100. Then I chose decreased value by... and put a supposed number like 10.
After going to the game and evading and going back to the cheat engine the red coding does not show the increased values - it still does sho all the changed ones. When I press next scan however the result shows values that has not changed!

So how to use the cheat engine to find a value that has recently increased or decreased by some omount?

Here is the result for searching a value that has increased by 10:



Clipboard01.jpg
 Description:
 Filesize:  78.03 KB
 Viewed:  27299 Time(s)

Clipboard01.jpg


Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Sun Jun 17, 2018 6:47 pm    Post subject: Reply with quote

tip:
in most games stamina is float.
many games use '1' float as full stamina.

what i have seen in many games:
1, 2, 5, 10, 100 all single floating point values.

seen only 1 game with double data type, and 1 game with 4 byte.
good luck.

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
martinezz123
Newbie cheater
Reputation: 0

Joined: 17 Jun 2018
Posts: 12

PostPosted: Mon Jun 18, 2018 12:26 am    Post subject: Reply with quote

thanks.
But the question was how the cheat engine works - in terms of searching some values.

Anyway I've discovered how to search (by trial and error), and have found the memory entry which controls CURRENT STAMINA LEVEL.
The maximum is 100 and it drops by 25 with evade.
When I change the entry stamina stops dropping.

Now. I've got two questions:
1. How to find the entry which sets the MAXIMUM stamina level?
It should be a static value. Unfortunatelly when I search for "100" I get several thousands of results.
2. How to find the entry which controls how much stamina should drop when evading.
Again the xeact value is 25, and does not change, but searching for 25 gives over 55 thousands of results.
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1586

PostPosted: Mon Jun 18, 2018 2:01 am    Post subject: Reply with quote

martinezz123 wrote:
Now. I've got two questions:
1. How to find the entry which sets the MAXIMUM stamina level?
It should be a static value. Unfortunatelly when I search for "100" I get several thousands of results.
2. How to find the entry which controls how much stamina should drop when evading.
Again the xeact value is 25, and does not change, but searching for 25 gives over 55 thousands of results.

1. it should be in range, try "browse memory region" by right-clicking the address.
you can also try dissect data / structures, or analyze stamina function.
its better to write a script for full stamina.

2. best thing to "break and trace", the value might also be on the stack so check the stack too.
you can modify how much stamina to be subtracted using a script, but this can be difficult in some games. (games that multiply and divide crap values, uses crap mathematics)

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
martinezz123
Newbie cheater
Reputation: 0

Joined: 17 Jun 2018
Posts: 12

PostPosted: Mon Jun 18, 2018 2:42 pm    Post subject: Reply with quote

What you write is to advanced for me. I don't understand half of that.
:/
Back to top
View user's profile Send private message
kantoboy69
Advanced Cheater
Reputation: 2

Joined: 31 Mar 2010
Posts: 71
Location: Manila

PostPosted: Mon Jun 18, 2018 5:38 pm    Post subject: Reply with quote

martinezz123 wrote:
thanks.
But the question was how the cheat engine works - in terms of searching some values.

Anyway I've discovered how to search (by trial and error), and have found the memory entry which controls CURRENT STAMINA LEVEL.
The maximum is 100 and it drops by 25 with evade.
When I change the entry stamina stops dropping.

Now. I've got two questions:
1. How to find the entry which sets the MAXIMUM stamina level?
It should be a static value. Unfortunatelly when I search for "100" I get several thousands of results.
2. How to find the entry which controls how much stamina should drop when evading.
Again the xeact value is 25, and does not change, but searching for 25 gives over 55 thousands of results.


ELEX default stamina for player is always (float)100.0

If you use "find out what access this address" at the stamina address you've found and try to attack and evade you'll notice there would be 4 address with lesser count are found (their count is also the same).

The first address from that if you disassembly and look up at the rest of the code there are instructions with "mov ecx,[rsi+2C] then dec ecx". [rsi+2c] contains the value 1 if attack then 4 if evade.

Then the third address (with the lesser count) is when stamina is being updated.

So you need to combine two script in order to do what you want.

1st Script
move value of [rsi+2C] to a registeredsymbol_1
move value of [rax+280] to a registeredsymbol_2

2nd Script
Check if registeredsymbol_1 is 1
if not 1 then move registeredsymbol_2 to xmm3

By doing that in essense your stamina will decrease when you attack
When you block and evade it won't decrease and will gradually increase until another attack

_________________
Cheater always prosper Hitler
Back to top
View user's profile Send private message
kantoboy69
Advanced Cheater
Reputation: 2

Joined: 31 Mar 2010
Posts: 71
Location: Manila

PostPosted: Tue Jun 19, 2018 4:00 am    Post subject: Reply with quote

While playing I notice that sprinting also decreases stamina thus defeated my first approach to let only attack decrease stamina.

So I tinkered with dissect structure and check which offset changes when attacking, sprinting, evading and any combination of them and found another offset [rax+000002c8] which I think is the strength of attack.

if [rax+000002c8] == 0 // if true then not attacking
movss xmm3, [rax+00000280]
else // attacking
movss [rax+00000280], xmm3 // original code

So scrap script 1 Very Happy

_________________
Cheater always prosper Hitler
Back to top
View user's profile Send private message
martinezz123
Newbie cheater
Reputation: 0

Joined: 17 Jun 2018
Posts: 12

PostPosted: Mon Jun 25, 2018 5:33 am    Post subject: Reply with quote

WOOW!! Shocked
Thank you!
I'll try to implement this!
Back to top
View user's profile Send private message
martinezz123
Newbie cheater
Reputation: 0

Joined: 17 Jun 2018
Posts: 12

PostPosted: Sun Jul 15, 2018 11:53 am    Post subject: Reply with quote

Sory for the delay. I had alot of work lately.

The thing is I can't find anything you've said.
I can find four adresses but when I diasemble any of them there is no "mov ecx,[rsi+2C] then dec ecx" instructions.


Then when I check what is accessing these adresses I do not find what you are writing about:


I'm an inteligent person but a complete newbe in this. So please help step by step. ok?



elex2.jpg
 Description:
 Filesize:  67.78 KB
 Viewed:  26779 Time(s)

elex2.jpg



elex1.jpg
 Description:
 Filesize:  176.44 KB
 Viewed:  26779 Time(s)

elex1.jpg


Back to top
View user's profile Send private message
yabaddi
How do I cheat?
Reputation: 0

Joined: 28 Jul 2018
Posts: 4
Location: Vancouver

PostPosted: Sun Jul 29, 2018 11:48 pm    Post subject: Reply with quote

You may want to watch this:
[YT link]
It's a step-by-step tutorial regarding Stamina hack in ELEX by SneakyMofo. That guy is awsome, I've learned much from his vids.

Edit:
Doh, I didn't know I can't post links yet. Anyway - go to YouTube and search for :"Let's Hack: ELEX, Ep. 4 - Infinite Stamina" by Stephen Chapman.
Back to top
View user's profile Send private message
martinezz123
Newbie cheater
Reputation: 0

Joined: 17 Jun 2018
Posts: 12

PostPosted: Tue Aug 21, 2018 11:22 am    Post subject: Reply with quote

hi. I've finished my vacations so I can set myself to make that cheat.

Thanks for the YT tutorial - I've found some tricks to find adresses there.
However the whole part about scripting is... well, let's say he did it for himself only.
It's allways the same problem with programers: they do not shere their knowledge in a proper and understandable way. So anyone, no matter how smart, can not follow their flow of mind.

Anyway.
I can easily find all the four adresses which change while running/attacking/evading.
I can view the adresses which they write in to. I can stop Stamina from changing.
But I can't find a code responsible for discriminating evading from atacking.
The adresses and instructions kantoboy69 gave are nowhere to be found.
And I dont know how to find that one wchich
Quote:
contains the value 1 if attack then 4 if evade
.
Quote:
Moreover I don't know how to replace one instruction set with another one.
Edit: I've just found out how to do it.


So please give me instructions on how to:
1. find the code that contains the value 1 if attack then 4 if evade
2. how to aplly the script kantoboy69 gave.

thanks alot in advance.
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