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 


Avoid exceptions from Windows with AA excepcion handler

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

Joined: 28 May 2020
Posts: 8

PostPosted: Tue Apr 13, 2021 12:44 pm    Post subject: Avoid exceptions from Windows with AA excepcion handler Reply with quote

I come from a post in the lua scripting forum (I realized it had nothing to do with lua anymore).

I have this piece of code inside a script
Code:
  {$try}
  mov ebx,[edi-4C]
  jmp short noexc
  {$except}
  jmp end


And the instruction mov ebx,[edi-4C] is still crashing my game with the exception of access denied, I know this because I checked at the Windows event viewer.

Am I doing something wrong? Or what could be happening? I'm running CE 7.2 in admin mode, thanks.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4706

PostPosted: Tue Apr 13, 2021 1:51 pm    Post subject: Reply with quote

Post the full script you're using.
_________________
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
Sp4rt
How do I cheat?
Reputation: 0

Joined: 28 May 2020
Posts: 8

PostPosted: Tue Apr 13, 2021 2:40 pm    Post subject: Reply with quote

It actually looks like it works now, seems like the try/except can't be indented or they will be taken as comments. I'd appreciate if this is correct (since the crashes are hard to replicate in this case).


2.png
 Description:
This seems to work
 Filesize:  3.13 KB
 Viewed:  824 Time(s)

2.png



1.png
 Description:
This didn't work
 Filesize:  3.29 KB
 Viewed:  824 Time(s)

1.png


Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Tue Apr 13, 2021 9:35 pm    Post subject: Reply with quote

yes, right now {$ xxx} blocks need to be on the first character to be recognized (as they get parsed before the comments)
_________________
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
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