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 LUA scripts execute standalone exe?

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

Joined: 04 Dec 2013
Posts: 9

PostPosted: Mon Apr 28, 2014 7:25 am    Post subject: How to make LUA scripts execute standalone exe? Reply with quote

I know CE do that, but CE take so many RAM space and with 3 process running in background, and problem here is the other guy can get all my LUA scripts by view memory with CE. So how can I make LUA scripts to EXE?

And can I ask one more question ?

Code:
h = io.popen('WMIC PROCESS get Caption,Commandline')
line = h:read()


why io.popen not closing after open ?

And this code
Code:
os.execute("WMIC /OUTPUT:C:\\ProcessList.txt PROCESS get Caption,Commandline")
h=io.popen('C:\\ProcessList.txt')
line=h:read()
while line do
print(line)
end


All the string in ProcessList.txt become "??C" , do anyone know why ?

Thanks you.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8585
Location: 127.0.0.1

PostPosted: Mon Apr 28, 2014 1:09 pm    Post subject: Reply with quote

The text returned by WMIC is unicode, which Lua does not handle as it is an ASCII encoded language.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Ugly Truth
How do I cheat?
Reputation: 0

Joined: 04 Dec 2013
Posts: 9

PostPosted: Tue Apr 29, 2014 1:36 am    Post subject: Reply with quote

ok I already fixed it, Just use h:read("*a") every going to be fine.

And do you know how to make LUA scripts with form execute standalone EXE ?

thanks for your help Very Happy
Back to top
View user's profile Send private message
kennard11
How do I cheat?
Reputation: 0

Joined: 27 Mar 2014
Posts: 9

PostPosted: Tue May 20, 2014 9:28 am    Post subject: Reply with quote

To get your cheat engine lua script to a trainer, open it in cheat engine and click Save As and select .EXE.
Back to top
View user's profile Send private message
mariamerlino
How do I cheat?
Reputation: 0

Joined: 22 May 2014
Posts: 0

PostPosted: Thu May 22, 2014 9:25 am    Post subject: Reply with quote

You can use the standalone interpreter to run Lua scripts and load external ...
Back to top
View user's profile Send private message
Redouane
Master Cheater
Reputation: 3

Joined: 05 Sep 2013
Posts: 363
Location: Algeria

PostPosted: Sun May 25, 2014 5:08 am    Post subject: Re: How to make LUA scripts execute standalone exe? Reply with quote

Ugly Truth wrote:
I know CE do that, but CE take so many RAM space and with 3 process running in background, and problem here is the other guy can get all my LUA scripts by view memory with CE. So how can I make LUA scripts to EXE?

I believe that you are looking for a way to save Lua scripts to tiny executables,I use srlua to do this,if you want to add a GUI to your exe then use iuplua or wxlua,if you are trying to write a hack for a game or program,then use the Alien library (to call foreign functions inside dlls).
I do use srlua,but I have never used the Alien library.
Also,by using those librairies,your app will be lighter,but you'll pay the price in its development : a GUI designer is much easier to use than a GUI library,because you'll have to code it yourself.
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