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 trainer from Lua script

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

Joined: 16 Aug 2013
Posts: 26

PostPosted: Wed May 25, 2016 12:31 pm    Post subject: How to make trainer from Lua script Reply with quote

I have a function that simply find and replace value. Now I am doing it manually that I first open process then click on Table->Show Cheat Table Lua Script.
In that window I have code like below

Code:

function replace(searchV, replaceV){
    // my code
}

replace(10,100)  // for health 
replace(20,100)  // for gold


So I just want to make a trainer that just contains 2 button only so that I click on that and they do same job for me rather I execute script everytime.[/code]
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Wed May 25, 2016 12:40 pm    Post subject: Reply with quote

http://forum.cheatengine.org/viewtopic.php?p=5576412
_________________
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
azamalvi
Cheater
Reputation: 0

Joined: 16 Aug 2013
Posts: 26

PostPosted: Sat May 28, 2016 3:11 am    Post subject: Reply with quote

Thanks for your reply. I have a problem that when I create a .exe trainer file after that i run this it does not work. I just check this in task manger then i found that there but not in show window. What I am missing ?
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 138

Joined: 06 Jul 2014
Posts: 4275

PostPosted: Sat May 28, 2016 8:10 am    Post subject: Reply with quote

Did you write UDF1.show() (or whatever else the form name is)? There might be some other error that's happening. Try saving it as a .CT first and see if you can debug it.
_________________
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
azamalvi
Cheater
Reputation: 0

Joined: 16 Aug 2013
Posts: 26

PostPosted: Sat May 28, 2016 11:59 am    Post subject: Reply with quote

I save it as .CT file and it works fine. But the .EXE file not opening any form/trainer that I made.
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