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 


How can I make a script without making the game crash?

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

Joined: 12 Oct 2015
Posts: 1

PostPosted: Mon Oct 12, 2015 6:13 pm    Post subject: How can I make a script without making the game crash? Reply with quote

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
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Mon Oct 12, 2015 10:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Tue Oct 13, 2015 5:30 am    Post subject: Reply with quote

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.

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
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