Page 1 of 1

Questionning about Lua scripts.

Posted: Tue Jul 30, 2019 2:02 pm
by Shizuma
Hello people of the cheats!

I want to try to do a table with elegent lua code like you.
And to understand and feel how that work y have some questions about LUA code/script, like what is the greatest differences with AOB table .

It's Lua more stable/less crash, more efficient, less cpu usage?
It is used only on pointers, or that a convention to use/change more pointer than code?
Why there are so much jmp in AOB and so less in LUA?
Can i post an existing lua script to ask questions?

Re: Questionning about Lua scripts.

Posted: Tue Jul 30, 2019 4:19 pm
by predprey
Shizuma wrote:
Tue Jul 30, 2019 2:02 pm
Hello people of the cheats!

I want to try to do a table with elegent lua code like you.
And to understand and feel how that work y have some questions about LUA code/script, like what is the greatest differences with AOB table .

It's Lua more stable/less crash, more efficient, less cpu usage?
It is used only on pointers, or that a convention to use/change more pointer than code?
Why there are so much jmp in AOB and so less in LUA?
Can i post an existing lua script to ask questions?
The greatest difference is a Lua script is not a substitute for an AA script but a complement to it for when an AA script isn’t enough to do what we want e.g. reading values ingame to populate a dropdown list for the table. In such cases we embed a Lua script in the AA script after the {$lua} tag. The AA script then starts after the {$asm} tag.

Re: Questionning about Lua scripts.

Posted: Wed Aug 07, 2019 10:08 am
by SunBeam
Lua coding in CE allows a high-level-programming-like feel :P While some things can be done simpler and more elegant, others may prove difficult (like inter-twining ASM and Lua). You should start with the celua.txt file found in CE folder ;) You got all you need there; else, CEF (cheatengine.org > Forums) is full of examples.