View previous topic :: View next topic |
Author |
Message |
grim10465 How do I cheat?
Reputation: 0
Joined: 03 Jan 2022 Posts: 2
|
Posted: Mon Jan 03, 2022 10:32 pm Post subject: Conversion happening with possible shared code. |
|
|
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.
Description: |
|
Filesize: |
53.45 KB |
Viewed: |
1009 Time(s) |

|
Description: |
|
Filesize: |
177.58 KB |
Viewed: |
1009 Time(s) |

|
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8585 Location: 127.0.0.1
|
Posted: Tue Jan 04, 2022 1:52 am Post subject: |
|
|
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 |
|
 |
grim10465 How do I cheat?
Reputation: 0
Joined: 03 Jan 2022 Posts: 2
|
Posted: Tue Jan 04, 2022 9:26 pm Post subject: |
|
|
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.
Description: |
Op-code were the instructions are being sent |
|
Filesize: |
29.54 KB |
Viewed: |
927 Time(s) |

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

|
|
|
Back to top |
|
 |
|