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 sometimes crashes when changing values

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

Joined: 23 Sep 2023
Posts: 2

PostPosted: Sat Sep 23, 2023 2:36 pm    Post subject: Game sometimes crashes when changing values Reply with quote

So, I am really new to using cheat engine. I've been using it lately to swap maps in a game I'm running through an emulator, by changing the string values of some maps' addresses. While the game runs perfectly fine with some values, there are a few specific ones which, when inputted, cause the game to freeze and crash while loading the map (whose value has been altered). Cheat engine also remains frozen till the game closes. I am pretty sure there is no mistake in the values themselves, as I am copy-pasting them from an online source (and they are the exact same in every other online source I've checked).

Does anyone know if there is a way to find out what is causing this issue? (I have tried checking memory viewer with debug breaks enabled but I couldn't understand much). Any help would be greatly appreciated.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4719

PostPosted: Sat Sep 23, 2023 2:52 pm    Post subject: Reply with quote

Changing a string to a longer string is bad (buffer overflow). There's no good way around this. You'd be better off changing a pointer to the string instead, but you might run into ownership problems (e.g. double free is bad).
_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
Giofia
How do I cheat?
Reputation: 0

Joined: 23 Sep 2023
Posts: 2

PostPosted: Sun Sep 24, 2023 2:50 am    Post subject: Reply with quote

Thanks a lot! I'll see if I can work this out then.
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