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 


Lua Information (Guides, Tutorials, etc.)
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Tr1gun87
Cheater
Reputation: 0

Joined: 17 May 2017
Posts: 27

PostPosted: Mon Aug 24, 2020 1:27 pm    Post subject: Reply with quote

i don't understand something very basic...
CE use lua or u use lua functions from CE?
if i use lua without CE i can do the same stuff?
i saw that with ahk i can use lua... i can basically do the same stuff i can do with CE? or i need something like CE-engine? Very Happy

need to know this before start to study Smile
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Mon Aug 24, 2020 3:30 pm    Post subject: Reply with quote

Lua is general programming language. It can use for almost others programming as long as the Lua environment has register to the stacks and then callback.

https://en.wikipedia.org/wiki/Lua_(programming_language)
https://www.lua.org/semish94.html
http://lua-users.org/wiki/BindingCodeToLua
https://wiki.cheatengine.org/index.php?title=Lua
https://en.wikipedia.org/wiki/Cheat_Engine

CE Build using Lazarus Free Pascal / (and Delphi) for main GUI and CE environments.
CE Lua (functions and variables) has registered, so it able to use in CE.
Also, custom Auto Assembler programming.
In short, CE has two main language scripting, Lua and AA.

You can do the same stuffs using Lua (pure Lua or plus Lua plug-in).
And when you done on your own Lua project, then you can compile your project as an application, module, etc.

But, pure Lua scripting doesn't have GUI, graphical functions, anyhow Lua able to call graphical functions from other libraries.

Conclusion,
1. Lua is Lua, a general programming language
2. CE Lua is adopted or custom Lua scripting language which has adjusted to CE environments and purposes

See how CE source project and interacting with Lua language.

https://github.com/cheat-engine/cheat-engine/blob/master/Cheat%20Engine/LuaEdit.pas

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
aizen415
!BEWARE! Deletes post on answer
Reputation: 0

Joined: 11 Apr 2020
Posts: 7
Location: Chinchón, 28370, Madrid, Spanien

PostPosted: Mon Oct 12, 2020 9:20 am    Post subject: Reply with quote

Damn thanks a lot this help me on my daily struggle trial n error coding.
_________________
Aizen Wong
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
Goto page Previous  1, 2
Page 2 of 2

 
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