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 do you run LUA interactively and/or load scripts?

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

Joined: 08 Oct 2017
Posts: 2

PostPosted: Mon Oct 23, 2017 3:48 pm    Post subject: How do you run LUA interactively and/or load scripts? Reply with quote

Get ready, this question has probably been asked before, but I'm having trouble finding the answer.

Where do you go in Cheat Engine to run LUA scripts?

I opened the Memory Viewer, then went Tools > Lua Engine. However, when I enter "getCEVersion()" the output is just "getCEVersion()" again. I get errors when I type in things that aren't commands, but I similarly get no output when I type in other things that do appear to be commands.
Back to top
View user's profile Send private message
ParkourPenguin
Grandmaster Cheater Supreme
Reputation: 54

Joined: 06 Jul 2014
Posts: 1815
Location: Arcadian Suburbia

PostPosted: Mon Oct 23, 2017 4:29 pm    Post subject: Reply with quote

You have to explicitly print stuff you want to print.
Code:
print(getCEVersion())

If you don't want the Lua engine to also print the code you're executing, deselect "View -> Show script in output".

In the main window, you can go to "Table -> Show Cheat Table Lua Script" to open up a bigger script window. The code put in there is saved when you save a cheat table.

_________________
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
jcarpenter2
How do I cheat?
Reputation: 0

Joined: 08 Oct 2017
Posts: 2

PostPosted: Mon Oct 23, 2017 4:41 pm    Post subject: Reply with quote

Awesome, thanks. Arrow
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 342

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

PostPosted: Tue Oct 24, 2017 1:02 am    Post subject: Reply with quote

Code:

return getCEVersion()

also works, and with tables it shows the content as well

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
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