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 


Gamecrash: After using the Script (3 merged scripts)

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Restodruid
How do I cheat?
Reputation: 0

Joined: 10 Aug 2019
Posts: 2

PostPosted: Sat Aug 10, 2019 6:55 am    Post subject: Gamecrash: After using the Script (3 merged scripts) Reply with quote

Hey guys, I got a problem with my merged script, maybe I did many things wrong in writing / merge it. The Problem is: After using it, my game crashs.

About the Script: It is divided into 3 Rubrics (3 scripts, A, B and C)

Firstly I will show u the merged script, then the 3 three other scripts (not merged) Btw. if i use the 3 scripts in a row it does work, but the merged one not.

Merged(Changed - deleted nops - works now!):
Code:


xlive.dll+F370C:
jmp xlive.dll+F3843
db 90

xlive.dll+F3646:
db EB
xlive.dll+F36A6:
db 90 90 90 90 90 90
xlive.dll+F3614:
db EB

[ENABLE]
aobscanmodule(StepA,Spartan.exe,39 73 10 75 30) // Should be unique
alloc(newmema,$1000,"Spartan.exe"+3821FB)

label(codea)
label(returna)

aobscanmodule(StepB,Spartan.exe,8B 47 10 75 1D) // Should be unique
alloc(newmemb,$1000,"Spartan.exe"+11C132)

label(codeb)
label(returnb)

aobscanmodule(StepC,Spartan.exe,80 7F 0D 00 74 17)// Should be unique
alloc(newmemc,$1000,"Spartan.exe"+11C137)

label(codec)
label(returnc)

//-----------------//

newmema:

codea:
mov [ebx+10],01
//cmp [ebx+10],esi
jne Spartan.rmGetPlayerName+100230
jmp returna

StepA:
jmp codea
returna:
registersymbol(StepA)

newmemb:

codeb:
mov [edi+10],1
mov eax,[edi+10]
jne Spartan.IsMapType+44924
jmp returnb

StepB:
jmp codeb
returnb:
registersymbol(StepB)

newmemc:

codec:
mov [edi+0D],01
cmp byte ptr [edi+0D],00
je Spartan.IsMapType+44924

jmp returnc

StepC:
jmp codec
nop
returnc:
registersymbol(StepC)

[DISABLE]
//code from here till the end of the code will be used to disable the cheat

StepA:
db 39 73 10 75 30

StepB:
db 8B 47 10 75 1D

StepC:
db 80 7F 0D 00 74 17

unregistersymbol(StepA)
dealloc(newmema)

unregistersymbol(StepB)
dealloc(newmemb)

unregistersymbol(StepC)
dealloc(newmemc)


1:
Code:
xlive.dll+F370C:
jmp xlive.dll+F3843
db 90


xlive.dll+F3646:
db EB
xlive.dll+F36A6:
db 90 90 90 90 90 90
xlive.dll+F3614:
db EB


[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
mov [ebx+10],01

originalcode:
//cmp [ebx+10],esi
jne Spartan.rmGetPlayerName+100230


exit:
jmp returnhere


"Spartan.exe"+3821FB:
jmp newmem
returnhere:


[DISABLE]


2:
Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the sheat

alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov [edi+10],1

originalcode:
mov eax,[edi+10]
jne Spartan.IsMapType+44924

exit:
jmp returnhere

"Spartan.exe"+11C132:
jmp newmem
returnhere:


3:
Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the sheat

alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov [edi+0D],01

originalcode:
cmp byte ptr [edi+0D],00
je Spartan.IsMapType+44924

exit:
jmp returnhere

"Spartan.exe"+11C137:
jmp newmem
nop
returnhere:

[DISABLE]
//code from here till the end of the code will be used to disable the sheat


//If anyone could help me please, would be very cool.
Edit: My problem was solved, thank u @ParkourPenguin .-)


Last edited by Restodruid on Sat Aug 10, 2019 9:57 am; edited 6 times in total
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 71

Joined: 06 Jul 2014
Posts: 2321

PostPosted: Sat Aug 10, 2019 9:06 am    Post subject: Reply with quote

That code at the top changing code in xlive.dll doesn't exist in any of the three other scripts.

Script 1 doesn't use a nop in the injection point, but your injection point A does. Same thing for script 2 / injection point B, but not the third / C.

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Restodruid
How do I cheat?
Reputation: 0

Joined: 10 Aug 2019
Posts: 2

PostPosted: Sat Aug 10, 2019 9:38 am    Post subject: Reply with quote

ParkourPenguin wrote:
That code at the top changing code in xlive.dll doesn't exist in any of the three other scripts.

Script 1 doesn't use a nop in the injection point, but your injection point A does. Same thing for script 2 / injection point B, but not the third / C.


Oh sry, ye : youre right the Code with the Xlive was at Script 1(not merged) at the top before [Enable] - I changed my post. I re-edited my post and the things you mean with the nops.

Okay, thank u men. My code does work now Very Happy
U can see it at the top, i already changed my post.

Now i know that its important to look at the original script at end.

Btw. where I can give u rep? I don't see a like or rep-button here. Im new at this forum but i'm using CE since many years, Very Happy
Back to top
View user's profile Send private message
MrViZZion
Cheater
Reputation: 1

Joined: 13 Aug 2019
Posts: 36

PostPosted: Wed Aug 28, 2019 4:05 pm    Post subject: Reply with quote

Restodruid wrote:


Btw. where I can give u rep? I don't see a like or rep-button here. Im new at this forum but i'm using CE since many years, Very Happy


According to this //forum.cheatengine.org/viewtopic.php?t=307503

Reputation can be given or taken when you have 20 or more posts and are registered for over a week and have been granted reputation abilities after verification by an admin or mod.
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