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 crash when any breakpoint is hit

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
HSergi
Newbie cheater
Reputation: 0

Joined: 17 Dec 2017
Posts: 22

PostPosted: Wed Feb 21, 2024 10:40 am    Post subject: Game crash when any breakpoint is hit Reply with quote

The game is Tekken 8. I think developers incorporated some anti-debugging technique: there's no anti-cheat, they just built something themselves. They have been incorporating some anti-reversing techniques for a few years now: so far it was just encrypting specific fields so they're harder to find.
But now I can't breakpoint anywhere. No matter what breakpoint I put: access, write or execution, and no matter where: either in the game's code/data, or even when I put the breakpoint in my own dll and I attach Visual's Studio debugger, once the breakpoint is hit, the game crashes immediately.

What I noticed is that memory in the game module is marked as execute/read/copy on write for code. Changing the permission to read/write/execute in the whole process has no effect: once the breakpoint is hit, it crashes.

Scanning/reading/writing game module's memory works. dll injection also works.

My guess it's some function call at game start that makes the system notify the game when the breakpoint is hit and then it just exist immediately. But at the moment I don't know which. I am going to google it and see what I can do, but maybe you guys here have a good idea what it is from just reading the description, any suggestions on what to check are appreciated.

Going to post if I find the solution and manage to fix it.
Back to top
View user's profile Send private message Send e-mail
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Wed Feb 21, 2024 11:14 am    Post subject: Reply with quote

Have you tried the other debugger interfaces like veh debug or dbvm level ?
_________________
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
HSergi
Newbie cheater
Reputation: 0

Joined: 17 Dec 2017
Posts: 22

PostPosted: Wed Feb 21, 2024 11:29 am    Post subject: Reply with quote

Dark Byte wrote:
Have you tried the other debugger interfaces like veh debug or dbvm level ?

I just tried it. The veh debugger works. And then I switched back to Windows debugger, restarted CE and the game crashed when I hit the same breakpoint: gamemode's tick function.

That's great that I can breakpoint in Cheat Engine. Thank you very much, I should've tried this right away.

Any suggestions on how to attach Visual Studio's debugger, so I can debug my own code?
Back to top
View user's profile Send private message Send e-mail
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