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 convert a number searched for a number found DWORD?

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

Joined: 05 Jan 2011
Posts: 6

PostPosted: Mon Jul 18, 2016 12:45 pm    Post subject: How to convert a number searched for a number found DWORD? Reply with quote

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
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4702

PostPosted: Mon Jul 18, 2016 12:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
ramzero
How do I cheat?
Reputation: 0

Joined: 05 Jan 2011
Posts: 6

PostPosted: Mon Jul 18, 2016 1:30 pm    Post subject: Reply with quote

How do I do that? And how do I know what kind of value it is?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4702

PostPosted: Mon Jul 18, 2016 1:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
ramzero
How do I cheat?
Reputation: 0

Joined: 05 Jan 2011
Posts: 6

PostPosted: Mon Jul 18, 2016 2:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4702

PostPosted: Mon Jul 18, 2016 2:13 pm    Post subject: Reply with quote

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
View user's profile Send private message
ramzero
How do I cheat?
Reputation: 0

Joined: 05 Jan 2011
Posts: 6

PostPosted: Mon Jul 18, 2016 2:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Mon Jul 18, 2016 6:45 pm    Post subject: Reply with quote

You can right-click the found results and select a different display type from the one you originally searched.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4702

PostPosted: Mon Jul 18, 2016 8:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
ramzero
How do I cheat?
Reputation: 0

Joined: 05 Jan 2011
Posts: 6

PostPosted: Tue Jul 19, 2016 5:34 am    Post subject: Reply with quote

Even if I change the results to another type as float for example, it does not show me the exact amount initially sought Sad
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4702

PostPosted: Tue Jul 19, 2016 8:50 am    Post subject: Reply with quote

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
View user's profile Send private message
ramzero
How do I cheat?
Reputation: 0

Joined: 05 Jan 2011
Posts: 6

PostPosted: Tue Jul 19, 2016 5:41 pm    Post subject: Reply with quote

I found the value.

Now I understand

Thank you
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions 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