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 


Conversion happening with possible shared code.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
grim10465
How do I cheat?
Reputation: 0

Joined: 03 Jan 2022
Posts: 2

PostPosted: Mon Jan 03, 2022 10:32 pm    Post subject: Conversion happening with possible shared code. Reply with quote



I am somewhat new to cheat engine though I do know how to do basic scans/searches and memory editing. I had a question regarding what is happening to my health in a game called Dredgers. So I was able to find the address where the health is being changed in the memory viewer but it is not a liner or 1 to one change. Here is the table of the health in double and there respective memory change in hex:


Health = 65 66 67
1 = 00 F0 3F
2 = 00 00 40
3 = 00 08 40
4 = 00 10 40
5 = 00 14 40
6 = 00 18 40
7 = 00 1C 40
8 = 00 20 40
9 = 00 22 40
10 = 00 24 40
20 = 00 34 40
30 = 00 3E 40
50 = 00 49 40
99 = C0 58 40
100 = 00 59 40

I have also attached the respective op-code but I have no clue what it means since I think It is shared code. Any help in understanding the Op-code is appreciated.



Cheat_engine1.jpg
 Description:
Memory Viewer
 Filesize:  53.45 KB
 Viewed:  1009 Time(s)

Cheat_engine1.jpg



Cheat_engine2.jpg
 Description:
Op-code
 Filesize:  177.58 KB
 Viewed:  1009 Time(s)

Cheat_engine2.jpg


Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8585
Location: 127.0.0.1

PostPosted: Tue Jan 04, 2022 1:52 am    Post subject: Reply with quote

The values you posted are correct double values. They are stored in 8 bytes though.

Meaning:
1 is actually: 00 00 00 00 00 00 F0 3F
2 is actually: 00 00 00 00 00 00 00 40
99 is actually: 00 00 00 00 00 C0 58 40
100 is actually: 00 00 00 00 00 00 59 40

Your health is starting at 0x0E06AF60 based on your screenshot so the leading zeros are also part of that double value.

Floats and doubles are also not stored as direct 1, 2, 3 etc. values. Since they hold both positive and negative numbers with decimals, the value is stored based on bits. You can read about the floating-point standard here:
https://en.wikipedia.org/wiki/IEEE_754

This should help you understand the sections of bits used in each number and what they relate to and how it can be used to convert between hex and decimal.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
grim10465
How do I cheat?
Reputation: 0

Joined: 03 Jan 2022
Posts: 2

PostPosted: Tue Jan 04, 2022 9:26 pm    Post subject: Reply with quote

Hi thank you for the help in understanding what was happening. I just wanted to ask further question on how to proceed with writing an AOB injection. I found the health address but it jumps around when you go to the next level so I found the base address where the instructions are sent. The health is constantly being by the xmm0 register what would your best was of tackling this problem.


Cheat_engine4.jpg
 Description:
Op-code were the instructions are being sent
 Filesize:  29.54 KB
 Viewed:  927 Time(s)

Cheat_engine4.jpg



Cheat_engine3.jpg
 Description:
Memory Viewer where the health is being constantly being overwritten
 Filesize:  17.62 KB
 Viewed:  928 Time(s)

Cheat_engine3.jpg


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