Lua Engine setting extras

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


Post Reply
User avatar
bbfox
Table Maker
Table Maker
Apprentice Hacker
Apprentice Hacker
Posts: 98
Joined: Sat Jul 23, 2022 8:59 am
x 216

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

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 and save as .lua (i.e. "LUA ENGINE SETTINGS EXTRAS.lua")
  • copy/move the file into "autorun" folder under CE installation directory
  • Restart CE if needed

I create tables to fit my own. Table is free to use, but need to leave author name, and source from https://opencheattables.com.

Post Reply