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 


Game crashes with script

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

Joined: 18 Apr 2017
Posts: 3

PostPosted: Tue Apr 18, 2017 7:37 pm    Post subject: Game crashes with script Reply with quote

I made several scripts for an fps game and they work just fine however the one that I made for infinite ammo crashes the game right after I enable and shoot. Its strange because the first time that I made the script it worked just fine but when I reopen the game and enable the script the game crashes. Line 12 is the one I edited. I tried putting [eax+04],#100 but it still crashes.


Screenshot (15).png
 Description:
 Filesize:  138.86 KB
 Viewed:  3718 Time(s)

Screenshot (15).png


Back to top
View user's profile Send private message
sbryzl
Advanced Cheater
Reputation: 3

Joined: 25 Jul 2016
Posts: 97

PostPosted: Tue Apr 18, 2017 8:08 pm    Post subject: Reply with quote

You are overwriting operations after a 'ret' so whatever is supposed to land on 'mov ecx,[esi+ecx*8+3c0]' is instead landing on partially overwritten junk.

You need to post the table in text format with the disassembled injection point still showing at the bottom so it can be analyzed easier.
Back to top
View user's profile Send private message
rog9001
Expert Cheater
Reputation: 2

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Wed Apr 19, 2017 4:03 am    Post subject: Reply with quote

Have you tried writing it like this?
Code:

mov edx,#100
mov [eax+04],edx
ret
mov ecx,[esi+ecx*8+000003C0]

Also have you checked that nothing else is being accessed by the instruction, because its possible that edx isn't only moving ammo into [eax+04] it may be also moving the guns id or if you are shooting or not (1/0)?
Back to top
View user's profile Send private message
[Eloy]
How do I cheat?
Reputation: 0

Joined: 18 Apr 2017
Posts: 3

PostPosted: Wed Apr 19, 2017 7:24 pm    Post subject: Reply with quote

I'm sorry but I don't know how to display the code the way that your are asking. The blue is the injection point. I tried writing the code the way rog9001 said, it worked the first time but after reopening the game it crashed.


Screenshot (17).png
 Description:
 Filesize:  103.3 KB
 Viewed:  3618 Time(s)

Screenshot (17).png


Back to top
View user's profile Send private message
sbryzl
Advanced Cheater
Reputation: 3

Joined: 25 Jul 2016
Posts: 97

PostPosted: Wed Apr 19, 2017 7:54 pm    Post subject: Reply with quote

Your picture showed what was needed. You can move the injection point up one operatoin to "and edx,ecx". That way it won't kill the operation after the return.
Back to top
View user's profile Send private message
[Eloy]
How do I cheat?
Reputation: 0

Joined: 18 Apr 2017
Posts: 3

PostPosted: Wed Apr 19, 2017 8:06 pm    Post subject: Reply with quote

Thank you very much it worked!
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 Discussions 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