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 


Handeling Float/Double in AA?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
noko_112
Grandmaster Cheater
Reputation: 0

Joined: 09 Jun 2009
Posts: 585

PostPosted: Thu Jan 14, 2010 5:57 am    Post subject: Handeling Float/Double in AA? Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Thu Jan 14, 2010 9:36 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
noko_112
Grandmaster Cheater
Reputation: 0

Joined: 09 Jun 2009
Posts: 585

PostPosted: Thu Jan 14, 2010 9:38 am    Post subject: Reply with quote

Does it exsist in the (current) beta?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Thu Jan 14, 2010 9:40 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
kickclock
Advanced Cheater
Reputation: 0

Joined: 15 Jan 2008
Posts: 73

PostPosted: Sat Jan 16, 2010 5:42 am    Post subject: Reply with quote

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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Sat Jan 16, 2010 10:57 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Nemexia55
Expert Cheater
Reputation: 0

Joined: 28 Jan 2014
Posts: 160

PostPosted: Sat Dec 20, 2014 12:08 pm    Post subject: Reply with quote

oh is this in 6.4 version ?
_________________
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sat Dec 20, 2014 4:52 pm    Post subject: Reply with quote

Of course from version 5.6.1, CE6.X has it too.
_________________
Back to top
View user's profile Send private message MSN Messenger
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