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
|
Posted: Sun Nov 17, 2019 12:37 pm Post subject: |
|
|
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 |
|
|
Csimbi I post too much Reputation: 92
Joined: 14 Jul 2007 Posts: 3102
|
Posted: Sun Nov 17, 2019 5:56 pm Post subject: |
|
|
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 |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sun Nov 17, 2019 6:28 pm Post subject: |
|
|
try those: link
_________________
|
|
Back to top |
|
|
Csimbi I post too much Reputation: 92
Joined: 14 Jul 2007 Posts: 3102
|
Posted: Mon Nov 18, 2019 5:11 am Post subject: |
|
|
DB's were: 7.0.0.6007
Yours are: 7.0.0.6012
Same error with both.
Does it require customTypesExt?
|
|
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: Mon Nov 18, 2019 7:34 am Post subject: |
|
|
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 |
|
|
Csimbi I post too much Reputation: 92
Joined: 14 Jul 2007 Posts: 3102
|
Posted: Mon Nov 18, 2019 2:35 pm Post subject: |
|
|
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 |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Mon Nov 18, 2019 3:24 pm Post subject: |
|
|
What happens when you choose "Define new custom type (Auto Assembler)" and then just click "OK"?
_________________
|
|
Back to top |
|
|
Csimbi I post too much Reputation: 92
Joined: 14 Jul 2007 Posts: 3102
|
Posted: Mon Nov 18, 2019 5:37 pm Post subject: |
|
|
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 |
|
|
theboy181 Advanced Cheater Reputation: 0
Joined: 26 Jan 2018 Posts: 89
|
Posted: Sat Mar 28, 2020 12:58 pm Post subject: |
|
|
@mgr.inz.Player
Would it be possible, to make the scripts you made for rounding floats to a lua script?
|
|
Back to top |
|
|
Corroder Grandmaster Cheater Supreme Reputation: 75
Joined: 10 Apr 2015 Posts: 1667
|
Posted: Sat Mar 28, 2020 6:05 pm Post subject: |
|
|
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 |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sun Mar 29, 2020 4:01 am Post subject: |
|
|
@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 |
|
|
|