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 


Saving Trainer failed

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

Joined: 29 May 2016
Posts: 311

PostPosted: Mon Aug 28, 2017 12:23 pm    Post subject: Saving Trainer failed Reply with quote

Hello, I'm done creating my Trainer and I try to generate It but It gives me this instead of an EXE..

CET_TRAINER

I checked the lua code inside and It seems to be fine: (OFC before generating)

Code:
-- Site --
function CELabel1Click(sender)
shellExecute("https://mrantifun.net/index.php")
end
-- Message --
function CELabel6Click(sender)
showMessage[[Compatible With (PATCH 08.8.2017)
====================
Unlimited Health: Represent the Time.
====================
Easy Score: When activate you will gain 50,000 per second.]]
end
-- Donation --
function CEImage2Click(sender)
shellExecute("http://paypal.me/KalasCT")
end
-- Detection --
function CHEATPANELMouseMove(sender, x, y)
if readInteger("SineMoraEX.exe") == nil then
  CETrainer.CELabel5.Caption = "Game Not Detected"
  CETrainer.CELabel5.Font.Color = 0x0000FF
else
  CETrainer.CELabel5.Caption = "Game Detected"
  CETrainer.CELabel5.Font.Color = 0x009900
end
end
-- Drag --
function CHEATPANELMouseDown(sender, button, x, y)
form_dragNow(CETrainer)
end
Back to top
View user's profile Send private message
panraven
Grandmaster Cheater
Reputation: 54

Joined: 01 Oct 2008
Posts: 941

PostPosted: Mon Aug 28, 2017 1:33 pm    Post subject: Reply with quote

If it is the saved *.ct generated by CE, try check in the form designer if the specific ui has the specific event handler already set by CE (or not) .

If not , then they need to be set manaully.
For example,
Code:

-- your orphan event handler
function CHEATPANELMouseDown(sender, button, x, y)
form_dragNow(CETrainer)
end
-- set it manually
CETrainer.CHEATPANEL.OnMouseDown = CHEATPANELMouseDown

-- CE generated code follow
....

CE should set every ui under CETrainer form like this form:
<ui name>
->
CETrainer.<ui name>

eg, for event handler,

function <ui name><event name>( ...)
--manually set it as
<form name>.<ui name>.On<event name> = <your handler function>
--note the On prefix for valid name of the event handler function.

Note that, this is only for CE HAS NOT ALREADY SET a handler, otherwise it may be a bit more complicated.

_________________
- Retarded.
Back to top
View user's profile Send private message
KalasDev
Master Cheater
Reputation: 1

Joined: 29 May 2016
Posts: 311

PostPosted: Mon Aug 28, 2017 1:37 pm    Post subject: Reply with quote

For some reason reinstalling Cheat Engine kinda fixed the issue, glad I save my Tables with the lua code itself and the FRM files so I could just load and save, thank you for the answer though.
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