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 


Code filter causing game to crash

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

Joined: 02 Aug 2018
Posts: 4

PostPosted: Tue Jun 14, 2022 10:54 am    Post subject: Code filter causing game to crash Reply with quote

the game im working on is 32 bit so i have to load the address list from disassembler and fix the broken addresses myself as mentioned in 2 diff threads i found here about crashes (cant post links), tho how would i actually find the correct address in the list?

I saved the addresslist to a file and all the addresses are in mygame.exe however when i set the debug to break on exception and hit start, the memory viewer opens a location in a dll and not the game executable
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25807
Location: The netherlands

PostPosted: Tue Jun 14, 2022 9:33 pm    Post subject: Reply with quote

use the option to break on unexpected exceptions.
with some luck it'll show you an instruction with an invalid cc in it and then remove that from the list and restart the game and try again

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
kurama371
How do I cheat?
Reputation: 0

Joined: 02 Aug 2018
Posts: 4

PostPosted: Wed Jun 15, 2022 5:13 am    Post subject: Reply with quote

Dark Byte wrote:
use the option to break on unexpected exceptions.
with some luck it'll show you an instruction with an invalid cc in it and then remove that from the list and restart the game and try again


Exactly that is the problem, when it breaks at unexpected exceptions, the disassembler opens an address that is not in the module i selected (being the game's .exe). eg. the saved list that was loaded from disassembler are all in mygame.exe, and the break on unhandled exception opens the disassembler somewhere in somedll.dll, which are not included in the list.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25807
Location: The netherlands

PostPosted: Wed Jun 15, 2022 5:41 am    Post subject: Reply with quote

check the stacktrace
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
kurama371
How do I cheat?
Reputation: 0

Joined: 02 Aug 2018
Posts: 4

PostPosted: Wed Jun 15, 2022 8:47 am    Post subject: Reply with quote

Dark Byte wrote:
check the stacktrace


looking through the stacktrace in a few cases brought me to addresses of the game's exe, though im stuck at a point where i went through all the addresses in the stacktrace and even got rid of all the function calls that are even remotely close to the one shown in the stacktrace, but it still gets an exception at the same place (memory viewer shows "C000001D EXCEPTION_ILLEGAL_INSTRUCTION) opcode being "lea eax,[edi*4+0000000]"
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25807
Location: The netherlands

PostPosted: Wed Jun 15, 2022 9:12 am    Post subject: Reply with quote

look anywhere in the game's .exe for a misplaced CC byte (likely near the last call, but it's of course possible it affected a jump destination which makes it a lot more difficult)
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
kurama371
How do I cheat?
Reputation: 0

Joined: 02 Aug 2018
Posts: 4

PostPosted: Wed Jun 15, 2022 9:46 am    Post subject: Reply with quote

Dark Byte wrote:
look anywhere in the game's .exe for a misplaced CC byte (likely near the last call, but it's of course possible it affected a jump destination which makes it a lot more difficult)


i did find CC bytes at the bottom of the stacktrace in a dll but not in the game exe being

call
int3 (CC)
push 30

the stacktrace at the top for example is a
mov [00000000],00000000
with a jump being the instruction before, how do i handle that
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