View previous topic :: View next topic |
Author |
Message |
[Eloy] How do I cheat? Reputation: 0
Joined: 18 Apr 2017 Posts: 3
|
Posted: Tue Apr 18, 2017 7:37 pm Post subject: Game crashes with script |
|
|
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.
Description: |
|
Filesize: |
138.86 KB |
Viewed: |
6884 Time(s) |
|
|
|
Back to top |
|
|
sbryzl Master Cheater Reputation: 6
Joined: 25 Jul 2016 Posts: 252
|
Posted: Tue Apr 18, 2017 8:08 pm Post subject: |
|
|
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 |
|
|
rog9001 Expert Cheater Reputation: 2
Joined: 22 Dec 2015 Posts: 214 Location: Jupiter
|
Posted: Wed Apr 19, 2017 4:03 am Post subject: |
|
|
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 |
|
|
[Eloy] How do I cheat? Reputation: 0
Joined: 18 Apr 2017 Posts: 3
|
Posted: Wed Apr 19, 2017 7:24 pm Post subject: |
|
|
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.
Description: |
|
Filesize: |
103.3 KB |
Viewed: |
6784 Time(s) |
|
|
|
Back to top |
|
|
sbryzl Master Cheater Reputation: 6
Joined: 25 Jul 2016 Posts: 252
|
Posted: Wed Apr 19, 2017 7:54 pm Post subject: |
|
|
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 |
|
|
[Eloy] How do I cheat? Reputation: 0
Joined: 18 Apr 2017 Posts: 3
|
Posted: Wed Apr 19, 2017 8:06 pm Post subject: |
|
|
Thank you very much it worked!
|
|
Back to top |
|
|
|