Questionning about Lua scripts.

Want Cheat Engine to do something specific and no idea how to do that, ask here. (From simple scripts to full trainers and extensions)
Post Reply
User avatar
Shizuma
Expert Cheater
Expert Cheater
Posts: 118
Joined: Thu Jun 08, 2017 7:55 am
Reputation: 96

Questionning about Lua scripts.

Post 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?

predprey
Expert Cheater
Expert Cheater
Posts: 207
Joined: Thu Mar 02, 2017 8:46 pm
Reputation: 140

Re: Questionning about Lua scripts.

Post 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.

User avatar
SunBeam
Administration
Administration
Posts: 4704
Joined: Sun Feb 04, 2018 7:16 pm
Reputation: 4287

Re: Questionning about Lua scripts.

Post 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.

User avatar
Shizuma
Expert Cheater
Expert Cheater
Posts: 118
Joined: Thu Jun 08, 2017 7:55 am
Reputation: 96

Re: Questionning about Lua scripts.

Post by Shizuma »

Thanks SunBeam for your precious advise :p

Post Reply

Who is online

Users browsing this forum: No registered users