|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Csimbi I post too much Reputation: 94
Joined: 14 Jul 2007 Posts: 3110
|
Posted: Thu Jan 23, 2020 5:45 pm Post subject: AutoAssemble Comment Line Count Hack |
|
|
Hi guys,
I've been PMing with mgr.inz.Player regarding an extension that would change the number of comment lines that CE adds to the bottom of all auto-generated AA scripts.
mgr.inz.Player was kind enough to make this happen, please find the result attached.
All credits go to mgr.inz.Player; I merely put this into a LUA file, added the comments on top of it and posted it here.
v1.0a is the one for "for custom CE7.1+ builds".
You might want to use both LUA files at the same time so if one fails, the other can still attempt its job.
It may be of use to you as well until Dark Byte decides to expose these as settings in CE itself. *hint*
Thanks again, mgr.inz.Player!
Description: |
|
Download |
Filename: |
AACommentLineCountHacka.lua |
Filesize: |
2.83 KB |
Downloaded: |
550 Time(s) |
Description: |
|
Download |
Filename: |
AACommentLineCountHack.lua |
Filesize: |
2.83 KB |
Downloaded: |
652 Time(s) |
Last edited by Csimbi on Mon Jul 20, 2020 2:35 am; edited 1 time in total |
|
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 Jul 19, 2020 12:41 pm Post subject: Re: AutoAssemble Comment Line Count Hack |
|
|
Quote: | Would it be possible to include a setting for this in the future? |
It's up to DB. For now there's no AA templates common settings.
For now try this one (for custom CE7.1+ builds)
Code: | if cheatEngineIs64Bit() then
--Full_Injection
autoAssemble([[
define(plusminusbytes,FF) // 0xFF = 255
define(plusminuslines,18) // 0x18 = 24
alloc(newmem,$1000,400000)
aobscanmodule(Full_Injection_minus128bytes,400000,48 8D 50 80 4C 8D 85 E8 FE FF FF)
label(code1)
label(return1)
aobscanmodule(Full_Injection_plus128bytes,400000,48 8B 45 D0 48 05 80 00 00 00)
label(code2)
label(return2)
aobscanmodule(Full_Injection_tenLinesBeforeTenLinesAfter,400000,83 E8 0A 8B 95 34 FF FF FF 67 8D 5A 0A)
label(code3)
label(return3)
newmem:
code1:
lea rdx,[rax-plusminusbytes]
lea r8,[rbp-00000118]
jmp return1
code2:
add rax,plusminusbytes
jmp return2
code3:
sub eax,plusminuslines
mov edx,[rbp-000000CC]
lea ebx,[rdx+plusminuslines]
jmp return3
Full_Injection_minus128bytes:
jmp code1
nop 6
return1:
Full_Injection_plus128bytes+04:
jmp code2
nop
return2:
Full_Injection_tenLinesBeforeTenLinesAfter:
jmp code3
nop 8
return3:
]],true)
--AOB Injection
autoAssemble([[
define(plusminusbytes,FF) // 0xFF = 255
define(plusminuslines,18) // 0x18 = 24
alloc(newmem,$1000,400000)
aobscanmodule(AOB_Injection_minus128bytes,400000,48 8D 50 80 4C 8D 85 08 FF FF FF)
label(code1)
label(return1)
aobscanmodule(AOB_Injection_plus128bytes,400000,48 8B 45 E0 48 05 80 00 00 00)
label(code2)
label(return2)
aobscanmodule(AOB_Injection_tenLinesBeforeTenLinesAfter,400000,83 E8 0A 8B 95 F8 FE FF FF 67 8D 5A 0A)
label(code3)
label(return3)
newmem:
code1:
lea rdx,[rax-plusminusbytes]
lea r8,[rbp-000000F8]
jmp return1
code2:
add rax,plusminusbytes
jmp return2
code3:
sub eax,plusminuslines
mov edx,[rbp-00000108]
lea ebx,[rdx+plusminuslines]
jmp return3
AOB_Injection_minus128bytes:
jmp code1
nop 6
return1:
AOB_Injection_plus128bytes+04:
jmp code2
nop
return2:
AOB_Injection_tenLinesBeforeTenLinesAfter:
jmp code3
nop 8
return3:
]],true)
end
|
_________________
|
|
Back to top |
|
|
|
|
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
|
|