We're giving away Borderlands 3 gift key. Click here!

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
Shizuma
Novice Cheater
Novice Cheater
Posts: 23
Joined: Thu Jun 08, 2017 7:55 am
Reputation: 17

Questionning about Lua scripts.

Post by Shizuma » 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?

predprey
Expert Cheater
Expert Cheater
Posts: 161
Joined: Thu Mar 02, 2017 8:46 pm
Reputation: 97

Re: Questionning about Lua scripts.

Post by predprey » Tue Jul 30, 2019 4:19 pm

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: 2819
Joined: Sun Feb 04, 2018 7:16 pm
Reputation: 1201

Re: Questionning about Lua scripts.

Post by SunBeam » Wed Aug 07, 2019 10:08 am

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.

Shizuma
Novice Cheater
Novice Cheater
Posts: 23
Joined: Thu Jun 08, 2017 7:55 am
Reputation: 17

Re: Questionning about Lua scripts.

Post by Shizuma » Mon Aug 26, 2019 1:25 pm

Thanks SunBeam for your precious advise :p

Post Reply

Who is online

Users browsing this forum: No registered users