 |
Cheat Engine The Official Site of 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
|
Posted: Tue Oct 27, 2015 2:07 pm Post subject: Few Injections in one Script ? ! |
|
|
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 |
|
 |
Cake-san Grandmaster Cheater
Reputation: 8
Joined: 18 Dec 2014 Posts: 541 Location: Semenanjung
|
Posted: Tue Oct 27, 2015 2:25 pm Post subject: |
|
|
like this ?
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 |
|
 |
Betcha Expert Cheater
Reputation: 4
Joined: 13 Aug 2015 Posts: 232 Location: Somewhere In Space
|
Posted: Tue Oct 27, 2015 3:18 pm Post subject: |
|
|
Cake-san wrote: | like this ?
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 |
|
 |
vng21092 Grandmaster Cheater
Reputation: 15
Joined: 05 Apr 2013 Posts: 644
|
Posted: Tue Oct 27, 2015 3:36 pm Post subject: |
|
|
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 |
|
 |
Betcha Expert Cheater
Reputation: 4
Joined: 13 Aug 2015 Posts: 232 Location: Somewhere In Space
|
Posted: Tue Oct 27, 2015 4:15 pm Post subject: |
|
|
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 |
|
 |
vng21092 Grandmaster Cheater
Reputation: 15
Joined: 05 Apr 2013 Posts: 644
|
Posted: Tue Oct 27, 2015 4:32 pm Post subject: |
|
|
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 |
|
 |
Betcha Expert Cheater
Reputation: 4
Joined: 13 Aug 2015 Posts: 232 Location: Somewhere In Space
|
Posted: Wed Oct 28, 2015 2:54 am Post subject: |
|
|
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.
|
|
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
|
|