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 


Need help with HP value encryption of a game.

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

Joined: 16 Oct 2023
Posts: 12

PostPosted: Mon Oct 16, 2023 10:37 pm    Post subject: Need help with HP value encryption of a game. Reply with quote

So, a game I was playing had some really good anti-cheat measures, and it took me half an hour to find the value responsible for the characters' HP values. What surprises me was that there was ONE singular value responsible for SIX characters' HP. It was a Double type value and I've been trying to crack the pattern to edit one specific character's max HP.
If the Value is 2.68904540886523E-316 then the characters' max HP are
A: 9999
B: 9999
C: 9999
D: 1761
E: 1012
F: 32767

If the Value is 2.67775042591595E-316 then the characters' max HP are
A: 9999
B: 9999
C: 9999
D: 1757
E: 1012
F: 762

I have figured out how to Edit F's HP, but I need A's HP to be the same as F
I honestly don't know if the pattern can be cracked or I'd have to use pure guesswork to get what I want.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 150

Joined: 06 Jul 2014
Posts: 4652

PostPosted: Mon Oct 16, 2023 11:33 pm    Post subject: Reply with quote

It's not a double. "2.68904540886523E-316" is the 4-byte value 0x33E7D05, and "2.67775042591595E-316" is the 4-byte value 0x33B0000. Besides, those values have to be at least 2 bytes, and you need at least 12 bytes of memory to encode 6 2-byte values (doubles are 8 bytes).

It's not encryption either. At best it's obfuscation using bitwise / arithmetic operations. Could also be some memory-size optimization with bit packing or something- not uncommon to see that in emulated architectures where memory is a big constraint.

Why do you think changing that value affects all those values? At best it looks like it only affected D and F. You don't have to set it to random values (might crash if unrelated), but at least freeze it, do something in game to change it, and see what happens.

Are you sure it's not just a 2-byte value you're looking for?

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 468

Joined: 09 May 2003
Posts: 25706
Location: The netherlands

PostPosted: Tue Oct 17, 2023 12:31 am    Post subject: Reply with quote

turn fastscan off
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
WorldWreckerYT
Newbie cheater
Reputation: 0

Joined: 16 Oct 2023
Posts: 12

PostPosted: Tue Oct 17, 2023 12:36 am    Post subject: Reply with quote

I did change the value around quite a bit and loading different saves to alter the max hp of the characters and I see the number changing. It also doesn't change when I walk around, use HP unrelated items or interact with the world so I know for sure it's a value related to max HP.
My guess is that it could be something similar to a Seed that changes according to different HP values and I should look at a different type of value instead.
But I know the max HP value is not a 4-bit value and is a Double or Float because when I use an item that increases the max HP by 10, the number shown under the character increases by 11 instead, so there is some decimal rounding going on.

Update: I tried searching for a 2 byte value and it worked! Thanks for the help!
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 150

Joined: 06 Jul 2014
Posts: 4652

PostPosted: Tue Oct 17, 2023 9:39 am    Post subject: Reply with quote

WorldWreckerYT wrote:
I did change the value around quite a bit...
For future reference, you need to change the value in CE and see an effect in-game. The other way - doing stuff in-game and watching values change in CE - doesn't mean much of anything.
_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
WorldWreckerYT
Newbie cheater
Reputation: 0

Joined: 16 Oct 2023
Posts: 12

PostPosted: Tue Oct 17, 2023 11:12 am    Post subject: Reply with quote

Well... I did change each digit of the number and I noticed that the HP value of each member increases/decreases each time I do that. The only thing that's stopping me is that I couldn't spot the pattern in order to change the HP of my desired character
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