Lua Engine setting extras

A forum dedicated to use and support LUA for Cheat Engine.


Post Reply
User avatar
bbfox
Table Master
Table Master
Journeyman Hacker
Journeyman Hacker
Posts: 425
Joined: Sat Jul 23, 2022 8:59 am
Answers: 0
x 915

Lua Engine setting extras

Post by bbfox »

Original post by YoucefHam in OCT.org site
All credit belongs to YoucefHam.

LUA ENGINE SETTINGS EXTRAS

  • Add "LUA Engine" Button next to Memory View button
  • Add items to the Right click menu in the lua engine editor:
    "Font Size": to change the font size of the editor and the output.
    "LuaEngine Editor On Top": Puts the editor on top and the output at the bottom.
    "Clear Output": Clear the output text.
  • Add some functions:
    "clc()": Clear Output.
    "tsprint(...)": it is print(tostring(...)).
    "cprint(Component,'string to filter')": print components, example "cprint(MainForm)" or "cprint(MainForm,'memory')"
    "countPattern(String, pattern)": count how many pattern in String, example "Countpattern('29 87 1C 01 00 00 FF 77 7C', '%x%x')" return 9.

The appearance after button added:

Spoiler

Image

Old version

Spoiler

Since site does not allow .zip, .7z, or .lua file types to be posted as attachment, I put it on Pastebin:
Click on "DOWNLOAD RAW"

How to use:

  • download, extract
  • copy/move the file into "autorun" folder under CE installation directory
  • Restart CE if needed

Revised thread safe version:

Attachments
LUA ENGINE SETTINGS EXTRAS.lua
(2025/03/05): thread safe ver.
(9.07 KiB) Downloaded 421 times

May use AI for assistance. Don't use it if you have any concern. Free to modify it but leave credit. Table is free, just leave the author's name and source URL.
Tip me a coffee? https://ko-fi.com/bbfoxmodding


Post Reply