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 


Open/Load a .CT callback

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Skyrimfus
Cheater
Reputation: 1

Joined: 17 Mar 2016
Posts: 42

PostPosted: Mon Aug 09, 2021 9:16 am    Post subject: Open/Load a .CT callback Reply with quote

is there a callback function when loading a cheat table? If so, is it possible to get the path of the .ct from it?
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1055
Location: 0x90

PostPosted: Mon Aug 09, 2021 10:50 am    Post subject: Reply with quote

Code:

loadTable(FileName, merge OPTIONAL): Loads a .CT or .cetrainer. If merge is provided and set to true it will not clear the old table.
loadTable(Stream ,merge OPTIONAL, ignoreluascriptdialog BOOLEAN): Loads a table from a stream object.

onTableLoad(before): If defined, this function will be called twice when a table gets loaded. Once before the loading, and once after.


Not sure about the path to the file of the table, sorry.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Mon Aug 09, 2021 11:40 am    Post subject: Reply with quote

a table can be loaded from a stream so internally there is no file associated with it

but you can probably query the openfiledialog for the filename if it's a manual open

_________________
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 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