This program is designed to help users generate Lua On/Off scripts for Cheat Engine's Auto Assembler (AA) scripts.
I often use this technique in my tables because, honestly, I'm lazy. However, maintaining these scripts becomes a hassle when the table gets outdated and needs to be renewed. So, I decided to spend some time writing a program to streamline the process.
I initially tried developing it directly in Cheat Engine's Lua environment, but debugging there was a pain to me (low lua skill), so I switched to another platform.
Here's how it works:
Select a Cheat Engine Table File:
- The program opens a file dialog allowing the user to select a
.CT(Cheat Engine Table) file.
- The program opens a file dialog allowing the user to select a
Parse the XML File:
- It reads the
.CTfile as XML and extracts entries withAuto Assembler Scriptor those with specific options (e.g.,moHideChildren=1).
- It reads the
Display a TreeView:
- The program shows a TreeView UI for users to explore and select entries.
- Each entry is displayed hierarchically based on its depth in the
.CTsource file. - A numeric selector allows users to control how many levels of the TreeView are expanded.
Spoiler

Generate Lua Scripts:
- Based on the selected entries, the program generates two Lua script sections:
[ENABLE]: Activates the selected entries in ascending order of their hierarchy.[DISABLE]: Deactivates all entries (irrespective of user selection) in reverse hierarchical order.
- The Lua script includes comments with metadata (ID, description, and depth) for each entry.
Spoiler

- Based on the selected entries, the program generates two Lua script sections:
Paste the generated AA script into Cheat Engine. It will activate scripts based on your selection and disable all scripts from the tree, starting from the leaf nodes up to the root, when this AA is turned off. Make sure to exclude this AA script itself.
Below is a screenshot example (with "Execute asynchronous" checked).

Developed using .NET Framework 4.8 (Windows platform only)
Old releases

