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 


Why this script Cause crashing game?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Tue May 03, 2016 5:15 am    Post subject: Why this script Cause crashing game? Reply with quote

Hi.
I test "Geri" stronghold Crusader II health script.
Why "Geri" stronghold Crusader II health script crashing this game:
Code:
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)
label(drain)
label(label2)
registersymbol(label2)
aobscan(aob2,D9 82 8C 03 00 00 89)

newmem: //this is allocated memory, you have read,write,execute access
pushfd
pushad
push 70     //F1 Key
call GetAsyncKeyState
shr ax,#15
cmp ax,1
popad
jne drain
mov [edx+0000038C],(float)999999999
mov [edx+00000390],(float)999999999
mov [edx+00000394],(float)999999999

drain:
pushad
push 71   //F2 Key
call GetAsyncKeyState
shr ax,#15
cmp ax,1
popad
jne originalcode
mov [edx+0000038C],(float)1


originalcode:
popfd
fld dword ptr [edx+0000038C]

exit:
jmp returnhere

aob2:
label2:
jmp newmem
nop
returnhere:


 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
label2:
db D9 82 8C 03 00 00
unregistersymbol(label2)



There is problem this script?(You can find problem in script?)

Thanks,
SJL002
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25837
Location: The netherlands

PostPosted: Tue May 03, 2016 5:33 am    Post subject: Reply with quote

perhaps the aob is too small, or it's finding a different/wrong location because the offset (38c) has changed
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Tue May 03, 2016 6:59 am    Post subject: Reply with quote

Thanks for your answer . I can solve this problem.
I have a other problem in the Stronghold crusader II.
I can find gold value but i cant change to other value . I mean is : when i change value and freeze when go to the game: no change in the amount of gold in the game cannot be viewed(or cannot be see it change)? {Help}
Back to top
View user's profile Send private message
rog9001
Expert Cheater
Reputation: 2

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Tue May 03, 2016 7:11 am    Post subject: Reply with quote

Quote:
I have a other problem in the Stronghold crusader II.
I can find gold value but i cant change to other value . I mean is : when i change value and freeze when go to the game: no change in the amount of gold in the game cannot be viewed(or cannot be see it change)? {Help}


Could be that the stuff you found isn't actually gold. Could be that gold is a encrypted value and will have to be searched via increased/decreased or changed/unchanged.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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