 |
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
Twistedfate Expert Cheater
Reputation: 1
Joined: 11 Mar 2016 Posts: 231
|
Posted: Fri Aug 05, 2016 4:10 pm Post subject: Few Injections in one Script ? |
|
|
I followed this tutorial here
http://www.cheatengine.org/forum/viewtopic.php?t=585146&sid=587896aa02769a00653e9c6d58536973
but the game crashes
When I run each script separated It works .
Can u merge my scripts or fix it
the 1st script
Code: | [enable]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
push ecx
mov ecx,[mygame.exe+00773BF0]
mov ecx,[ecx+3ac]
mov ecx,[ecx+6e8]
mov ecx,[ecx+400]
mov ecx,[ecx+2f8]
mov ecx,[ecx+1c]
cmp [esi+164], ecx
je originalcode
mov eax,#0
jmp exit
originalcode:
mov eax,[esi+000001E0]
exit:
pop ecx
jmp returnhere
"mygame.exe"+2EE3AD:
jmp newmem
nop
returnhere:
[Disable]
dealloc(newmem)
"mygame.exe"+2EE3AD:
mov eax,[esi+000001E0] |
the 2nd script
Code: |
[enable]
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
fimul [esi+20]
mov [esi+20],#0
fdiv qword ptr [00E4F3A0]
jmp exit
originalcode:
fimul [esi+20]
fdiv qword ptr [00E4F3A0]
exit:
jmp returnhere
"RoleView.dll"+21B0:
jmp newmem
nop
nop
nop
nop
returnhere:
[disable]
"RoleView.dll"+21B0:
fimul [esi+20]
fdiv qword ptr [00E4F3A0]
|
//-------------//
the merged codes which crash my game ... :
Code: | [enable]
alloc(cheat,1024)
label(newmem)
label(returnhere)
label(originalcode)
label(exit)
label(newmem2)
label(returnhere2)
label(originalcode2)
label(exit2)
cheat:
//--------------------------------------------------//
//1st Script
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
push ecx
mov ecx,[mygame.exe+00773BF0]
mov ecx,[ecx+3ac]
mov ecx,[ecx+6e8]
mov ecx,[ecx+400]
mov ecx,[ecx+2f8]
mov ecx,[ecx+1c]
cmp [esi+164], ecx
je originalcode
je originalcode
mov eax,#0
jmp exit
originalcode:
mov eax,[esi+000001E0]
exit:
pop ecx
jmp returnhere
"mygame.exe"+2EE3AD:
jmp newmem
nop
returnhere:
jmp newmem
//--------------------------------------------------//
//2nd Script
newmem2: //this is allocated memory, you have read,write,execute access
//place your code here
fimul [esi+20]
mov [esi+20],#0
fdiv qword ptr [00E4F3A0]
jmp exit2
originalcode2:
fimul [esi+20]
fdiv qword ptr [00E4F3A0]
exit2:
jmp returnhere2
"RoleView.dll"+21B0:
jmp newmem2
nop
nop
nop
nop
returnhere2:
[disable]
dealloc(cheat)
"mygame.exe"+2EE3AD:
mov eax,[esi+000001E0]
"RoleView.dll"+21B0:
fimul [esi+20]
fdiv qword ptr [00E4F3A0] |
so what is the mistake here ? why I am merging to scripts ?
I want to try to jump from 1st script to the 2nd one and compare 1st and then je to the 2nd ... |
|
Back to top |
|
 |
cooleko Grandmaster Cheater
Reputation: 11
Joined: 04 May 2016 Posts: 717
|
Posted: Fri Aug 05, 2016 4:40 pm Post subject: |
|
|
you need to rename all of the labels to be different. |
|
Back to top |
|
 |
Twistedfate Expert Cheater
Reputation: 1
Joined: 11 Mar 2016 Posts: 231
|
Posted: Fri Aug 05, 2016 4:47 pm Post subject: |
|
|
cooleko wrote: | you need to rename all of the labels to be different. |
It is ? newmem2 - exit2
newmem exit |
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
|
Back to top |
|
 |
Twistedfate Expert Cheater
Reputation: 1
Joined: 11 Mar 2016 Posts: 231
|
Posted: Fri Aug 05, 2016 6:16 pm Post subject: |
|
|
++METHOS wrote: | https://c2.staticflickr.com/8/7737/28093652233_ae0068d9e6_o.gif |
thank you
but can I jmp from 1st injection to the 2nd .
I meant i want to compare at first injection then je to the 2nd injection is that possible ? |
|
Back to top |
|
 |
++METHOS I post too much
Reputation: 92
Joined: 29 Oct 2010 Posts: 4197
|
Posted: Fri Aug 05, 2016 6:32 pm Post subject: |
|
|
You can do whatever you want. You just have to set it up. If you want to compare something in script #2, that is accessed in script #1, then you just have to store it somewhere. You can allocate memory for this and use a custom label, or use a custom symbol etc.. |
|
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
|
|