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 


Few Injections in one Script ? !

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Betcha
Expert Cheater
Reputation: 4

Joined: 13 Aug 2015
Posts: 232
Location: Somewhere In Space

PostPosted: Tue Oct 27, 2015 2:07 pm    Post subject: Few Injections in one Script ? ! Reply with quote

Hello!

Once again playing around with CE, and wondering how to make 2 or more scripts in one.

Example: First is about Inf. Health , Second is Exp Boost.

-------------------------------------------------------------------------------------

Code:

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
//fstp dword ptr [eax]
mov eax,[esi+00000330]

exit:
jmp returnhere

"Darksiders2.exe"+3248D2:
jmp newmem
nop
nop
nop
returnhere:


 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"Darksiders2.exe"+3248D2:
fstp dword ptr [eax]
mov eax,[esi+00000330]
//Alt: db D9 18 8B 86 30 03 00 00

-------------------------------------------------------------------------------------
Code:

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
add ecx,C4
mov [edi+1C],ecx
jne Darksiders2.Scaleform::Event::IsSignaled+E43D2

exit:
jmp returnhere

"Darksiders2.exe"+322988:
jmp newmem
returnhere:


 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"Darksiders2.exe"+322988:
mov [edi+1C],ecx
jne Darksiders2.Scaleform::Event::IsSignaled+E43D2
//Alt: db 89 4F 1C 75 28

-------------------------------------------------------------------------------------


Last edited by Betcha on Tue Oct 27, 2015 3:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
Cake-san
Grandmaster Cheater
Reputation: 8

Joined: 18 Dec 2014
Posts: 541
Location: Semenanjung

PostPosted: Tue Oct 27, 2015 2:25 pm    Post subject: Reply with quote

like this ? Confused
Code:

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
//fstp dword ptr [eax]
mov eax,[esi+00000330]

exit:
jmp returnhere

"Darksiders2.exe"+3248D2:
jmp newmem
nop
nop
nop
returnhere:
-------------------------------------------------------------------------------------
alloc(newmem2,2048)
label(returnhere2)
label(originalcode2)
label(exit2)

newmem2: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode2:
add ecx,C4
mov [edi+1C],ecx
jne Darksiders2.Scaleform::Event::IsSignaled+E43D2

exit2:
jmp returnhere2

"Darksiders2.exe"+322988:
jmp newmem2
returnhere2:




[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"Darksiders2.exe"+3248D2:
fstp dword ptr [eax]
mov eax,[esi+00000330]
//Alt: db D9 18 8B 86 30 03 00 00

dealloc(newmem2)
"Darksiders2.exe"+322988:
mov [edi+1C],ecx
jne Darksiders2.Scaleform::Event::IsSignaled+E43D2
//Alt: db 89 4F 1C 75 28
Back to top
View user's profile Send private message
Betcha
Expert Cheater
Reputation: 4

Joined: 13 Aug 2015
Posts: 232
Location: Somewhere In Space

PostPosted: Tue Oct 27, 2015 3:18 pm    Post subject: Reply with quote

Cake-san wrote:
like this ? Confused
Code:

[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
//fstp dword ptr [eax]
mov eax,[esi+00000330]

exit:
jmp returnhere

"Darksiders2.exe"+3248D2:
jmp newmem
nop
nop
nop
returnhere:
-------------------------------------------------------------------------------------
alloc(newmem2,2048)
label(returnhere2)
label(originalcode2)
label(exit2)

newmem2: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode2:
add ecx,C4
mov [edi+1C],ecx
jne Darksiders2.Scaleform::Event::IsSignaled+E43D2

exit2:
jmp returnhere2

"Darksiders2.exe"+322988:
jmp newmem2
returnhere2:




[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"Darksiders2.exe"+3248D2:
fstp dword ptr [eax]
mov eax,[esi+00000330]
//Alt: db D9 18 8B 86 30 03 00 00

dealloc(newmem2)
"Darksiders2.exe"+322988:
mov [edi+1C],ecx
jne Darksiders2.Scaleform::Event::IsSignaled+E43D2
//Alt: db 89 4F 1C 75 28



Yes,Yes,Yes that's exactly what i mean.

So how i understand , if add more scripts, the only thing to do is just add numbers in couple places.. if add 3 scripts then rename with - example : newmem3 , is that right?
Back to top
View user's profile Send private message
vng21092
Grandmaster Cheater
Reputation: 15

Joined: 05 Apr 2013
Posts: 644

PostPosted: Tue Oct 27, 2015 3:36 pm    Post subject: Reply with quote

you could do that... but if you're gonna toss multiple scripts inside one, you could just allocate one memory region. And replace the rest of your alloc() with label()

Code:
[Enable]

alloc(cheats,1024)

label(newmem)
label(originalcode)
label(returnhere)

label(newmem2)
label(originalcode2)
label(returnhere2)

cheats:
//--------------------------------------------------//
newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
//fstp dword ptr [eax]
mov eax,[esi+00000330]
jmp returnhere

"Darksiders2.exe"+3248D2:
jmp newmem
nop
nop
nop
returnhere:
//--------------------------------------------------//
newmem2: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode2:
add ecx,C4
mov [edi+1C],ecx
jne Darksiders2.Scaleform::Event::IsSignaled+E43D2
jmp returnhere2

"Darksiders2.exe"+322988:
jmp newmem2
returnhere2:
//--------------------------------------------------//

[Disable]

"Darksiders2.exe"+3248D2:
fstp dword ptr [eax]
mov eax,[esi+00000330]

"Darksiders2.exe"+322988:
mov [edi+1C],ecx
jne Darksiders2.Scaleform::Event::IsSignaled+E43D2

dealloc(cheats)
Back to top
View user's profile Send private message
Betcha
Expert Cheater
Reputation: 4

Joined: 13 Aug 2015
Posts: 232
Location: Somewhere In Space

PostPosted: Tue Oct 27, 2015 4:15 pm    Post subject: Reply with quote

vng21092 wrote:
you could do that... but if you're gonna toss multiple scripts inside one, you could just allocate one memory region. And replace the rest of your alloc() with label()

Code:
[Enable]

alloc(cheats,1024)

label(newmem)
label(originalcode)
label(returnhere)

label(newmem2)
label(originalcode2)
label(returnhere2)

cheats:
//--------------------------------------------------//
newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
//fstp dword ptr [eax]
mov eax,[esi+00000330]
jmp returnhere

"Darksiders2.exe"+3248D2:
jmp newmem
nop
nop
nop
returnhere:
//--------------------------------------------------//
newmem2: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode2:
add ecx,C4
mov [edi+1C],ecx
jne Darksiders2.Scaleform::Event::IsSignaled+E43D2
jmp returnhere2

"Darksiders2.exe"+322988:
jmp newmem2
returnhere2:
//--------------------------------------------------//

[Disable]

"Darksiders2.exe"+3248D2:
fstp dword ptr [eax]
mov eax,[esi+00000330]

"Darksiders2.exe"+322988:
mov [edi+1C],ecx
jne Darksiders2.Scaleform::Event::IsSignaled+E43D2

dealloc(cheats)


Hmmm.. I think it's retard question, but any way ..
here ---> [Enable] alloc(cheats,1024) <---- Why changes number from 2048 to 1024?

If i do this next time with other scripts, will be same way of alloc to label edit?

Thanks,
Back to top
View user's profile Send private message
vng21092
Grandmaster Cheater
Reputation: 15

Joined: 05 Apr 2013
Posts: 644

PostPosted: Tue Oct 27, 2015 4:32 pm    Post subject: Reply with quote

alloc is just how much memory you're reserving (in bytes) for the cheat. You will never use up 2048, or even 1024 for that matter. How you allocate the memory is entirely up to your preference.
Back to top
View user's profile Send private message
Betcha
Expert Cheater
Reputation: 4

Joined: 13 Aug 2015
Posts: 232
Location: Somewhere In Space

PostPosted: Wed Oct 28, 2015 2:54 am    Post subject: Reply with quote

vng21092 wrote:
alloc is just how much memory you're reserving (in bytes) for the cheat. You will never use up 2048, or even 1024 for that matter. How you allocate the memory is entirely up to your preference.


Thanks, for info. Smile
Back to top
View user's profile Send private message
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