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 to suppress errors/direct to own file log with trainer

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

Joined: 03 Jun 2018
Posts: 2

PostPosted: Sun Jun 03, 2018 9:52 pm    Post subject: How to suppress errors/direct to own file log with trainer Reply with quote

I have a trainer, but whenever an error occurs, the lua engine output window shows up (ex: Access Violation)

Would it be possible to keep this window from showing up (like suppressing the error with pcall or something) or redirect that output to a function/log

I suppose I could always use the trainer to nop out the error handling but would love a more elegant solution Rolling Eyes
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

PostPosted: Sun Jun 03, 2018 10:11 pm    Post subject: Reply with quote

To avoid lua engine window pop-up, add this code at beginning your trainer script :

Code:
getLuaEngine().cbShowOnPrint.Checked=false
getLuaEngine().hide()


also consider to add errorOnLookupFailure(false) to your script

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
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 Lua Scripting 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