View previous topic :: View next topic |
Author |
Message |
noko_112 Grandmaster Cheater Reputation: 0
Joined: 09 Jun 2009 Posts: 585
|
Posted: Thu Jan 14, 2010 5:57 am Post subject: Handeling Float/Double in AA? |
|
|
i know that i can handle them as 4 byte (1.0 = 1065353216), but is there som "fast" way.
like with 4 byte like 50 = 32 (Hex), but you can writhe #50 and it will translate it for you.
Anything like that for float/double?
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Thu Jan 14, 2010 9:36 am Post subject: |
|
|
5.6 which should be out soon enough will have support to input floats as (float)1.0 and doubles as (double)1.0
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
noko_112 Grandmaster Cheater Reputation: 0
Joined: 09 Jun 2009 Posts: 585
|
Posted: Thu Jan 14, 2010 9:38 am Post subject: |
|
|
Does it exsist in the (current) beta?
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Thu Jan 14, 2010 9:40 am Post subject: |
|
|
yes
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
kickclock Advanced Cheater Reputation: 0
Joined: 15 Jan 2008 Posts: 73
|
Posted: Sat Jan 16, 2010 5:42 am Post subject: |
|
|
i wrote a script like this, in bate5
[ENABLE]
globalalloc(tempmem,0x1000)
tempmem:
db 90 90 90 90 90 90
mov [tempmem+30],#100
mov [tempmem+34],(float)1.0
mov [tempmem+38],(double)1.0
ret
[DISABLE]
but got error msg
"error in line 7 (mov [tempmem+38],(double)1.0): This instruction can't be complied.
Could you show me a example script ,dark byte ?
_________________
Love CE |
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25296 Location: The netherlands
|
Posted: Sat Jan 16, 2010 10:57 am Post subject: |
|
|
there is no version of mov in 32-bit that supports a 64-bit value being written
Code: |
label(valuewith8bytedoublevalue)
db 90 90 90 90 90 90
mov [tempmem+30],#100
mov [tempmem+34],(float)1.0
push eax
mov eax,[valuewith8bytedoublevalue]
mov [tempmem+38],eax
mov eax,[valuewith8bytedoublevalue+4]
mov [tempmem+3c],eax
pop eax
ret
valuewith8bytedoublevalue:
dq (double)1.0
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
Nemexia55 Expert Cheater Reputation: 0
Joined: 28 Jan 2014 Posts: 160
|
Posted: Sat Dec 20, 2014 12:08 pm Post subject: |
|
|
oh is this in 6.4 version ?
_________________
|
|
Back to top |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sat Dec 20, 2014 4:52 pm Post subject: |
|
|
Of course from version 5.6.1, CE6.X has it too.
_________________
|
|
Back to top |
|
|
|