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 


Yo I'm wondering something

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

Joined: 08 Nov 2021
Posts: 1

PostPosted: Mon Nov 08, 2021 3:22 pm    Post subject: Yo I'm wondering something Reply with quote

Hi guys, I'm new to this stuff. I wanna know how Lua works on Cheat Engine like do you need to know Lua to start learning the CE Lua version or can you just straight up learn CE Lua. I'm also wondering where I can learn the very, very basics since I'm new. Thanks you all
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1069
Location: 0x90

PostPosted: Mon Nov 08, 2021 3:29 pm    Post subject: Reply with quote

They're pretty much the same. See celua.txt for commands that you can use. If you haven't started with the CE tutorial already, I would recommend that as a basis.

There are tutorials on the Cheat Engine Wikipedia also.
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4702

PostPosted: Mon Nov 08, 2021 8:29 pm    Post subject: Reply with quote

Learn the basics of the Lua scripting language first. CE uses Lua 5.3.

Then learn the stuff CE adds to Lua. Most stuff is documented in celua.txt. The wiki might be more user-friendly.

_________________
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
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3325

PostPosted: Tue Nov 09, 2021 5:41 am    Post subject: Re: Yo I'm wondering something Reply with quote

Aimlessly wrote:
I wanna know how Lua works on Cheat Engine

I'd recommend you check the CE source code.
There is not clearer description than that to understand how it works on CE.

If you want to learn about LUA (as opposed to how it works in CE).
There are people who learn by reading smart things others have already written.
There are people who learn by starting entering LUA code and see what comes back, then use a reference manual to correct things that don't work.
I'd recommend a healthy combination of the two.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Nov 09, 2021 9:19 pm    Post subject: Reply with quote

Lua is an embedded language, meaning the application that embeds and implements it can extend it and add its own objects, calls, etc. to the language. In most cases, there are no actual syntax changes made when something embeds Lua and exposes it to be used. Thus, learning the base language is definitely ideal and worth while.

There is a sticky topic with a handful of useful links/guides/etc. found here:
https://forum.cheatengine.org/viewtopic.php?t=538130

The things CE exposes to Lua can be found in the celua.txt as others linked here:
https://github.com/cheat-engine/cheat-engine/blob/master/Cheat%20Engine/bin/celua.txt

CE's actual implementation/usage of Lua is available in the source found here:
https://github.com/cheat-engine/cheat-engine/tree/master/Cheat%20Engine

(Look for the Lua*.pas files for each file that contains usages of exposing functionality to Lua. CE also uses Lua for other parts such as some interpreter stuff, debugging, etc. which you can find in the various other source files.)

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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