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 


value decimal to hex? O_O

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

Joined: 22 May 2009
Posts: 9

PostPosted: Sat May 23, 2009 5:11 pm    Post subject: value decimal to hex? O_O Reply with quote

hello! i've got a pointer, that returns an adress, i need. this adress is shown as 184917608. if i check the "Hex-Box" in CE, it is shown as 0B059E68(wich is right), but if i insert this 184917608 into an dexi/hex converter, i get something, that not even looks like that. whan can i do? i just need to make my script show the value that is returned as 0B059E68 and not as 184917608.

thanks!
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 475

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

PostPosted: Sat May 23, 2009 5:15 pm    Post subject: Reply with quote

you need a dec->hex convertor

e.g in the calculator that comes with windows set it to scientific. Then set it to dec, fill in 184917608 and check set it to hex. It'll show B059E68

And it depends on the language you write it in. Delphi has IntToHex, ansi C has itoa, c# has it's own conversion classes, etc...

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
mildblue
How do I cheat?
Reputation: 0

Joined: 22 May 2009
Posts: 9

PostPosted: Sat May 23, 2009 5:21 pm    Post subject: Reply with quote

it is as you say, it will show B059E68, but why does ce give me 0B059E68?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 475

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

PostPosted: Sat May 23, 2009 5:23 pm    Post subject: Reply with quote

ce gives you 0B059E68 because that's the value of the address you're reading from, shown in hexadecimal form
_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
mildblue
How do I cheat?
Reputation: 0

Joined: 22 May 2009
Posts: 9

PostPosted: Sat May 23, 2009 5:29 pm    Post subject: Reply with quote

but the value is 184917608, wich is shown as 0B059E68 in ce Smile
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 475

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

PostPosted: Sat May 23, 2009 5:32 pm    Post subject: Reply with quote

as I said, ce is converting the value from decimal form to hexadecimal form, because addresses tend to be shown in hex notation anyhow.
If you want to show it as decimal, just rightclick and choose the option "show as decimal value" and it'll show it in decimal notation again

Quote:
if i insert this 184917608 into an dexi/hex converter, i get something, that not even looks like that.
Just means that you did something wrong
_________________
Tools give you results. Knowledge gives you control.

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

Joined: 25 Mar 2008
Posts: 19

PostPosted: Sat May 23, 2009 11:27 pm    Post subject: Reply with quote

mildblue wrote:
it is as you say, it will show B059E68, but why does ce give me 0B059E68?


If I understand you correctly, the dec -> hex converter does not include the 0 on the high part of the address, that is because the 0 is assumed since an address generally has 8 digits 00000000 - FFFFFFFF (32-bit address).
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