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 


AutoAssemble Comment Line Count Hack

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Extensions
View previous topic :: View next topic  
Author Message
Csimbi
I post too much
Reputation: 75

Joined: 14 Jul 2007
Posts: 2564

PostPosted: Thu Jan 23, 2020 5:45 pm    Post subject: AutoAssemble Comment Line Count Hack Reply with quote

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* Wink

Thanks again, mgr.inz.Player!



AACommentLineCountHacka.lua
 Description:
v1.0a

Download
 Filename:  AACommentLineCountHacka.lua
 Filesize:  2.83 KB
 Downloaded:  47 Time(s)


AACommentLineCountHack.lua
 Description:
v1.0

Download
 Filename:  AACommentLineCountHack.lua
 Filesize:  2.83 KB
 Downloaded:  195 Time(s)



Last edited by Csimbi on Mon Jul 20, 2020 2:35 am; edited 1 time in total
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 165

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

PostPosted: Sun Jul 19, 2020 12:41 pm    Post subject: Re: AutoAssemble Comment Line Count Hack Reply with quote

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
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 Extensions 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