View previous topic :: View next topic |
Author |
Message |
i345t3rd How do I cheat?
Reputation: 0
Joined: 12 Oct 2015 Posts: 1
|
Posted: Mon Oct 12, 2015 6:13 pm Post subject: How can I make a script without making the game crash? |
|
|
So I just recently got back into cheat engine. I always.. always.. ALWAYS.. try to learn hao2use cheat engine once every few months. It used to be my dream to learn hao2hack. I know it's not hacking, but still..
Anyway.. I just got metro 2033 redux. 'N I was making a infinite ammo script 'n.. the whole game froze after a cut scene. q-q
lel..
I tried again 'n.. the game freezes at the same time after the same cutscene.
SO.. hao can I make a script that's less buggy 'n doesn't make the game crash? I remember making my own cheat table for this one game, 'n my cheats would always make the game crash some times. After I downloaded another cheat table, for the same game, with most of the same cheats, I almost never crashed.
So hao're people.. not crashing the game? q-q
(EDIT)
My script:
Code: |
[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048,"metro.exe"+2B2729)
label(returnhere)
label(originalcode)
label(exit)
newmem:
mov [rcx+000004F4],#999
jmp exit
originalcode:
mov [rcx+000004F4],edx
exit:
jmp returnhere
"metro.exe"+2B2729:
jmp newmem
nop
returnhere:
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"metro.exe"+2B2729:
mov [rcx+000004F4],edx
//Alt: db 89 91 F4 04 00 00
|
|
|
Back to top |
|
 |
Rydian Grandmaster Cheater Supreme
Reputation: 31
Joined: 17 Sep 2012 Posts: 1358
|
Posted: Mon Oct 12, 2015 10:35 pm Post subject: |
|
|
When you're looking at the line in the memory browser, right-click it and choose Find What Addresses This Instruction Accesses. Watch that list as you play normally and when you hit the cutscene, to see if it touches more addresses than just the one you're targeting.
_________________
|
|
Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Tue Oct 13, 2015 5:30 am Post subject: |
|
|
Some games can be buggy that way, even if it accesses the same address it might still crash upon level loads/cutscene. Nothing you can do about it except disable the cheats when cutscene starts.
No idea about metro 2033 but last light didn't have this issue.
_________________
|
|
Back to top |
|
 |
|