| View previous topic :: View next topic |
| Author |
Message |
mildblue How do I cheat?
Reputation: 0
Joined: 22 May 2009 Posts: 9
|
Posted: Sat May 23, 2009 5:11 pm Post subject: value decimal to hex? O_O |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 475
Joined: 09 May 2003 Posts: 25976 Location: The netherlands
|
Posted: Sat May 23, 2009 5:15 pm Post subject: |
|
|
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 |
|
 |
mildblue How do I cheat?
Reputation: 0
Joined: 22 May 2009 Posts: 9
|
Posted: Sat May 23, 2009 5:21 pm Post subject: |
|
|
| it is as you say, it will show B059E68, but why does ce give me 0B059E68?
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 475
Joined: 09 May 2003 Posts: 25976 Location: The netherlands
|
Posted: Sat May 23, 2009 5:23 pm Post subject: |
|
|
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 |
|
 |
mildblue How do I cheat?
Reputation: 0
Joined: 22 May 2009 Posts: 9
|
Posted: Sat May 23, 2009 5:29 pm Post subject: |
|
|
but the value is 184917608, wich is shown as 0B059E68 in ce
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 475
Joined: 09 May 2003 Posts: 25976 Location: The netherlands
|
Posted: Sat May 23, 2009 5:32 pm Post subject: |
|
|
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 |
|
 |
Vexyl Newbie cheater
Reputation: 0
Joined: 25 Mar 2008 Posts: 19
|
Posted: Sat May 23, 2009 11:27 pm Post subject: |
|
|
| 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 |
|
 |
|