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 


SOLVED: Problems while creating a trainer with LUA script

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

Joined: 21 Dec 2012
Posts: 591
Location: Spain (Barcelona)

PostPosted: Wed Dec 03, 2014 8:09 pm    Post subject: SOLVED: Problems while creating a trainer with LUA script Reply with quote

Hi all

Sometimes I need to create a trainer with no form/window. In the past, mgr inz player helped with this:

http://forum.cheatengine.org/viewtopic.php?p=5456658

In the current CE version, generated script don't have the LUA code form_show(), instead have CETrainer.show()

I tried to comment that line but the trainer still show the form. How can I make "invisible" trainers with the current CE version?

Thanks Very Happy


==========================

EDIT: OMG I'm so retarded. the answer is at main.lua

Code:
CETrainer.hide()


Thanks anyway xD[/code]

_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it!
HERE


Last edited by aikoncwd on Wed Dec 03, 2014 8:20 pm; edited 1 time in total
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Wed Dec 03, 2014 8:19 pm    Post subject: Reply with quote

open the form designer and then execute
Code:

formname.visible=false

then close the designer and save the trainer/table and the form will be invisible when loaded.

(This is because the visible property is now also saved, but since it's not an editable property in the property editor you can't set it there)

the ce svn already has this fixed

_________________
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


Last edited by Dark Byte on Wed Dec 03, 2014 8:21 pm; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
aikoncwd
Grandmaster Cheater
Reputation: 23

Joined: 21 Dec 2012
Posts: 591
Location: Spain (Barcelona)

PostPosted: Wed Dec 03, 2014 8:21 pm    Post subject: Reply with quote

Dark Byte wrote:
open the form designer and then execute
Code:

formname.visible=false


save the trainer/table and the form will be invisible when loaded.

(This is because the visible property is now also saved, but since it's not an editable property in the property editor you can't set it there)

the ce svn already has this fixed


Thanks I solved with CETrainer.hide() too

btw... when you generate a trainer "script", the SAVE AS menuclick don't work.

_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it!
HERE
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Wed Dec 03, 2014 8:22 pm    Post subject: Reply with quote

it's a known bug. Just go to the main ce window and click save there (or file->save as)
_________________
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
chem0ne
Cheater
Reputation: 0

Joined: 19 Nov 2014
Posts: 33
Location: germany

PostPosted: Sun Dec 07, 2014 1:16 pm    Post subject: GUI Reply with quote

so before i open up a new thread...

hi @Dark Byte, @AikonCWD,

my question, are you active here? i've one or three questions about your knowledge to write a code in CE to make custom GUIs for trainers.

AikonCWD Trainer GUI example: /viewtopic.php?p=5445654&sid=c228f07ec591e02f2aa67aa0bc508161

i don't want all your assistance, but only some information to create a simple tiny dialog with my GUI.


special regards

_________________
» GameHacking & Music Production :: Offical Channel
Back to top
View user's profile Send private message Visit poster's website
aikoncwd
Grandmaster Cheater
Reputation: 23

Joined: 21 Dec 2012
Posts: 591
Location: Spain (Barcelona)

PostPosted: Sun Dec 07, 2014 9:13 pm    Post subject: Re: GUI Reply with quote

chem0ne wrote:
so before i open up a new thread...

hi @Dark Byte, @AikonCWD,

my question, are you active here? i've one or three questions about your knowledge to write a code in CE to make custom GUIs for trainers.

AikonCWD Trainer GUI example: /viewtopic.php?p=5445654&sid=c228f07ec591e02f2aa67aa0bc508161

i don't want all your assistance, but only some information to create a simple tiny dialog with my GUI.


special regards


Hi bro, yes, I'm active and ready to help everyone ho wants learn. The trainer generator from CE is based on pure LUA scripting. I'm not an expert with LUA so I prefer to code a simple trainer with no gui/form/window and attach to a template/layout with Visual Basic.

Ask here or in a new thread and I will try to help u. If you want to see my "works"...

http://forum.cheatengine.org/viewtopic.php?t=561315 (rainbow background, music, moving windows, text scroller, NFO viewer...)

http://forum.cheatengine.org/viewtopic.php?p=5565611&sid=cc7c72ff6f662e2368a7735afbf5e206 (starfield, music, img effects, NFO viewer)

If you want more in-deep CE LUA trainers I recommend to speak with mgr.inz.player, he is a monster about LUA, CE and shit.

_________________
Hey Hitler
Test here your skill with CheatEngine, I coded a challenge for you. Try to beat it!
HERE
Back to top
View user's profile Send private message
chem0ne
Cheater
Reputation: 0

Joined: 19 Nov 2014
Posts: 33
Location: germany

PostPosted: Mon Dec 08, 2014 1:37 pm    Post subject: Re: GUI Reply with quote

AikonCWD wrote:
chem0ne wrote:
so before i open up a new thread...

hi @Dark Byte, @AikonCWD,

my question, are you active here? i've one or three questions about your knowledge to write a code in CE to make custom GUIs for trainers.

AikonCWD Trainer GUI example: /viewtopic.php?p=5445654&sid=c228f07ec591e02f2aa67aa0bc508161

i don't want all your assistance, but only some information to create a simple tiny dialog with my GUI.


special regards


Hi bro, yes, I'm active and ready to help everyone ho wants learn. The trainer generator from CE is based on pure LUA scripting. I'm not an expert with LUA so I prefer to code a simple trainer with no gui/form/window and attach to a template/layout with Visual Basic.

Ask here or in a new thread and I will try to help u. If you want to see my "works"...

(rainbow background, music, moving windows, text scroller, NFO viewer...)

(starfield, music, img effects, NFO viewer)

If you want more in-deep CE LUA trainers I recommend to speak with mgr.inz.player, he is a monster about LUA, CE and shit.



hi @AikonCWD,
thanks! but i don't own VB6 or language. Confused

if someone wants to see what i mean by small dialog:
picload . org / image/clrgcac/smallui.png


regards

_________________
» GameHacking & Music Production :: Offical Channel
Back to top
View user's profile Send private message Visit poster's website
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