|
Cheat Engine The Official Site of Cheat Engine
|
View previous topic :: View next topic |
Author |
Message |
KalasDev Master Cheater Reputation: 1
Joined: 29 May 2016 Posts: 311
|
Posted: Mon Aug 28, 2017 12:23 pm Post subject: Saving Trainer failed |
|
|
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 |
|
|
panraven Grandmaster Cheater Reputation: 55
Joined: 01 Oct 2008 Posts: 942
|
Posted: Mon Aug 28, 2017 1:33 pm Post subject: |
|
|
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 |
|
|
KalasDev Master Cheater Reputation: 1
Joined: 29 May 2016 Posts: 311
|
Posted: Mon Aug 28, 2017 1:37 pm Post subject: |
|
|
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 |
|
|
|
|
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
|
|