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 


Floats Filtering ?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author 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: Sun Nov 17, 2019 12:37 pm    Post subject: Reply with quote

Csimbi wrote:
mgr.inz.Player wrote:
or you can use CustomType for this:


Any clues why CE throws this error (see attachment) when I try to add your custom type?
Your code looks legit to me.

Thanks!

Are you using CE7.0 custom builds? If yes, try newer one.
Maybe I will add something new to the "Unofficial builds" thread in "Cheat Engine Beta" sub-forum.

_________________
Back to top
View user's profile Send private message MSN Messenger
Csimbi
I post too much
Reputation: 92

Joined: 14 Jul 2007
Posts: 3102

PostPosted: Sun Nov 17, 2019 5:56 pm    Post subject: Reply with quote

mgr.inz.Player wrote:

Are you using CE7.0 custom builds? If yes, try newer one.

Not that I know of.
I use the release on GitHub with the EXE that DB sent me (which fixed a very specific bug).
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: Sun Nov 17, 2019 6:28 pm    Post subject: Reply with quote

try those: link
_________________
Back to top
View user's profile Send private message MSN Messenger
Csimbi
I post too much
Reputation: 92

Joined: 14 Jul 2007
Posts: 3102

PostPosted: Mon Nov 18, 2019 5:11 am    Post subject: Reply with quote

DB's were: 7.0.0.6007
Yours are: 7.0.0.6012

Same error with both.
Does it require customTypesExt?
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: Mon Nov 18, 2019 7:34 am    Post subject: Reply with quote

Quote:
Does it require customTypesExt?

No.

Quote:
DB's were: 7.0.0.6007
Yours are: 7.0.0.6012

It is from Git, commit date:Nov 16, 2019

Quote:
Same error with both

Which script? The very first one?

_________________
Back to top
View user's profile Send private message MSN Messenger
Csimbi
I post too much
Reputation: 92

Joined: 14 Jul 2007
Posts: 3102

PostPosted: Mon Nov 18, 2019 2:35 pm    Post subject: Reply with quote

I watch only this page for releases. (Not sure where to get the newer ones.)

Anyway, it's your first mod Double:
Code:
alloc(ConvertRoutine,1024)
alloc(ConvertBackRoutine,1024)
alloc(TypeName,256)
alloc(ByteSize,4)
alloc(PreferedAlignment,4)
alloc(UsesFloat,1)
alloc(CallMethod,1)

TypeName:
db 'mod Double(Int)',0

ByteSize:
dd 8

PreferedAlignment:
dd 4

UsesFloat:
db 1

CallMethod:
db 1

ConvertRoutine:
[64-bit]
movsd xmm0,[rcx]
[/64-bit]

[32-bit]
mov eax,[esp+4]
movsd xmm0,[eax]
[/32-bit]

cvtsd2ss xmm0,xmm0 // convert double to single
movd eax,xmm0

cvtps2dq xmm1,xmm0 // convert single to integer
cvtdq2ps xmm1,xmm1 // convert integer to single

ucomiss xmm0,xmm1
je @f
mov eax,7FC00000 // NaN

@@:
ret


ConvertBackRoutine:
[64-bit]
movd xmm0,ecx
cvtps2dq xmm0,xmm0 // convert single to integer
cvtdq2ps xmm0,xmm0 // convert integer to single
cvtss2sd xmm0,xmm0 // convert single to double
movsd [r8],xmm0
[/64-bit]

[32-bit]
push ebp
mov ebp,esp
push eax
push ebx
mov eax,[ebp+8]
mov ebx,[ebp+10]
movd xmm0,eax
cvtps2dq xmm0,xmm0 // convert single to integer
cvtdq2ps xmm0,xmm0 // convert integer to single
cvtss2sd xmm0,xmm0 // convert single to double
movsd [ebx],xmm0
pop ebx
pop eax
pop ebp
[/32-bit]

ret


As I said, it looks legit so I am not sure why CE is throwing that popup.
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: Mon Nov 18, 2019 3:24 pm    Post subject: Reply with quote

What happens when you choose "Define new custom type (Auto Assembler)" and then just click "OK"?
_________________
Back to top
View user's profile Send private message MSN Messenger
Csimbi
I post too much
Reputation: 92

Joined: 14 Jul 2007
Posts: 3102

PostPosted: Mon Nov 18, 2019 5:37 pm    Post subject: Reply with quote

Oh, crap, I just realized I effed up.
I kept adding it as LUA, lol
Instead of AA.
No just once, every time!
I'm so sorry about wasting your time on this!
I feel so stupid now.
Back to top
View user's profile Send private message
theboy181
Advanced Cheater
Reputation: 0

Joined: 26 Jan 2018
Posts: 89

PostPosted: Sat Mar 28, 2020 12:58 pm    Post subject: Reply with quote

@mgr.inz.Player

Would it be possible, to make the scripts you made for rounding floats to a lua script?
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Sat Mar 28, 2020 6:05 pm    Post subject: Reply with quote

theboy181 wrote:
@mgr.inz.Player

Would it be possible, to make the scripts you made for rounding floats to a lua script?


You can use, 'autoAssemble(script)'. See this:
https://wiki.cheatengine.org/index.php?title=Lua:autoAssemble

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
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: Sun Mar 29, 2020 4:01 am    Post subject: Reply with quote

@theboy181, what do you want to achieve? Are you using memscan object? Do you have createMemScan or getCurrentMemscan somewhere in the script?

If yes, wait for CE7.1 release, this version will allow CustomType scans.

_________________
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
Goto page Previous  1, 2
Page 2 of 2

 
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