View previous topic :: View next topic |
Author |
Message |
ramzero How do I cheat?
Reputation: 0
Joined: 05 Jan 2011 Posts: 6
|
Posted: Mon Jul 18, 2016 12:45 pm Post subject: How to convert a number searched for a number found DWORD? |
|
|
How to convert a number searched for a number found (DWORD / QWORD)? And vice versa. It is possible?
I searched for a numerical value that contains a comma.
But the displayed number in CE (4 bytes - DWORD) is different from the "real" number.
It's the right address, because I make any changes and the number in the game is changed too, but I do not know which is the default.
How do I, through the number found, change this value to leave the "real" number that I want? It is possible?
Thanks so much.
|
|
Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4702
|
Posted: Mon Jul 18, 2016 12:57 pm Post subject: |
|
|
Change the value type to whatever you want. If it's not a standard 4-byte/float/double (e.g. big endian), make a custom value type for it.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
 |
ramzero How do I cheat?
Reputation: 0
Joined: 05 Jan 2011 Posts: 6
|
Posted: Mon Jul 18, 2016 1:30 pm Post subject: |
|
|
How do I do that? And how do I know what kind of value it is?
|
|
Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4702
|
Posted: Mon Jul 18, 2016 1:36 pm Post subject: |
|
|
Add it to the address list, double click on "Type", and change it to whatever you want. To create a custom value type, right click on the "Value Type" combobox and select either AA or Lua.
In order to tell what type of value an address stores, you look at it. If it makes sense as an integer, it's probably an integer. If it makes sense as a float, it's probably a float. If it doesn't look like anything, debug the game and figure out what the game is doing with that address.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
 |
ramzero How do I cheat?
Reputation: 0
Joined: 05 Jan 2011 Posts: 6
|
Posted: Mon Jul 18, 2016 2:09 pm Post subject: |
|
|
How do I program this?
The values are presented like this: 5.576.23
For me this value is presented more as a float, correct?
|
|
Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4702
|
Posted: Mon Jul 18, 2016 2:13 pm Post subject: |
|
|
Not really- it has two decimal points. That's not a standard number, unless that's 5 million and there's suppose to be an extra 0 at the end. What's the byte representation of that value? A couple more pairs consisting of the displayed value and the bytes in memory would be nice as well.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
 |
ramzero How do I cheat?
Reputation: 0
Joined: 05 Jan 2011 Posts: 6
|
Posted: Mon Jul 18, 2016 2:19 pm Post subject: |
|
|
Sorry, typed wrong
Correct is: 5.576,23
Example:
To: -158,98
Values found using "Unknown initial value":
Type: 4 bytes
3264234832
3273587606
3311808512
3314399232
3314399232
3314399232
3314399232
3314399232
3314399232
3440877094
3440877094
3440877094
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Mon Jul 18, 2016 6:45 pm Post subject: |
|
|
You can right-click the found results and select a different display type from the one you originally searched.
|
|
Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4702
|
Posted: Mon Jul 18, 2016 8:22 pm Post subject: |
|
|
3273587606 - I wonder what this 4-byte value looks like if you changed it to a float as I originally suggested.
answer: it's -158,9827576
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
 |
ramzero How do I cheat?
Reputation: 0
Joined: 05 Jan 2011 Posts: 6
|
Posted: Tue Jul 19, 2016 5:34 am Post subject: |
|
|
Even if I change the results to another type as float for example, it does not show me the exact amount initially sought
|
|
Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4702
|
Posted: Tue Jul 19, 2016 8:50 am Post subject: |
|
|
It's pretty common to see games round the data to some precision. It's sometimes necessary to do this because not all numbers can be perfectly represented in floating point notation (e.g. closest float to 0.33 is 0.3300000131). All that matters is changing it in the address list changes it in the game.
Also, if you're searching for a float, you should change the Value Type combobox to Float instead of leaving it at 4-byte. Changing what you're viewing the results as becomes useless if you already know the type of data you're searching for.
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
 |
ramzero How do I cheat?
Reputation: 0
Joined: 05 Jan 2011 Posts: 6
|
Posted: Tue Jul 19, 2016 5:41 pm Post subject: |
|
|
I found the value.
Now I understand
Thank you
|
|
Back to top |
|
 |
|