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 make a CETRAINER file?

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

Joined: 06 Jul 2016
Posts: 4

PostPosted: Wed Jul 06, 2016 12:25 pm    Post subject: How to make a CETRAINER file? Reply with quote

Hello. I have a CT file that I would like to save as a CETRAINER file so I can use it without the main scanner part taking up half the window.

As I understand it, I simply "Save As" > .CETRAINER

But when I try to open the file, no window appears. Instead, I get a CheatEngine background process (that I believe is doing literally nothing).


Also, how does a CETRAINER file know what process to attach to?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4702

PostPosted: Wed Jul 06, 2016 12:36 pm    Post subject: Reply with quote

The Lua script should take care of everything. This includes showing the form and attaching to a process.
Code:
getAutoAttachList().add("mygame.exe")

UDF1.show()

Take note that you should also do other things like initializing all the events (e.g. UDF1.OnClose).

_________________
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
OldLady
How do I cheat?
Reputation: 0

Joined: 06 Jul 2016
Posts: 4

PostPosted: Wed Jul 06, 2016 1:52 pm    Post subject: Reply with quote

Aha! I figured it out.

I didn't want to use a form and customize it, I just wanted to somehow hide the top half of the CheatEngine window so I could just have the addresses below, and I thought that a CETRAINER file was the way to go, since I had an example that did what I wanted.

Since you mentioned the Lua script, I renamed file to CT and opened it up to see what it was doing, and isolated a small portion of the script.

Code:

controlMainForm = getMainForm()

control_setVisible(wincontrol_getControl(controlMainForm,0), false)
control_setVisible(wincontrol_getControl(controlMainForm,2), false)
control_setVisible(wincontrol_getControl(controlMainForm,3), false)


Turns out I can just start from any CT file, go to Table>Show Cheat Table Lua Script, paste this code, and execute, and it will hide the whole scan/find address part of CheatEngine. An excellent "compact mode"!

I hope this is helpful to anyone else who wants to do the same thing.
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