[Lua] Cheat Engine – Plugin | Register Highlight

Utilities and third party tools used as an external or internal application for specific programs and games


Moderator: Table Moderator

Post Reply
User avatar
mul0
Novice Hacker
Novice Hacker
Posts: 43
Joined: Tue Dec 30, 2025 1:00 am
Answers: 0
x 70

[Lua] Cheat Engine – Plugin | Register Highlight

Post by mul0 »

πŸ” Register Highlight v1.1 β€” Plugin for Cheat Engine πŸ”


Register Highlight is a lightweight Lua plugin for Cheat Engine that highlights user-defined text directly in the Memory Viewer β†’ Disassembler view.

When debugging or reverse engineering, tracking registers across a large block of assembly instructions can become difficult. Important values such as RAX, RCX, or XMM0 can easily get lost in the instruction flow.

Version 1.1 expands the original register-highlighting feature into a more flexible disassembly analysis tool. In addition to registers, the plugin can now highlight register-offset expressions, bracketed memory operands, opcodes, and opcode prefixes.

This makes it easier to follow important values and instructions while scrolling through disassembled code.


Image


Image


πŸ“Œ Plugin Information


πŸ“’ What's New in v1.1

  • ⚑ Optimized Highlighting β€” Refactored and improved the original register-highlighting behavior.
  • βž• Register-Offset Expressions β€” Added support for expressions such as ecx+08 and [ecx+08].
  • πŸ”Ž Whitespace-Insensitive Matching β€” ecx+08 also matches ecx + 08.
  • πŸ”§ Offset Normalization β€” Recognizes equivalent offsets written as 8, 08, 0x08, or 08h.
  • 🎯 Opcode Highlighting β€” Added support for opcodes such as fld, fstp, and mov.
  • 🧩 Opcode-Prefix Highlighting β€” Added support for prefixes such as fld dword ptr.
  • 🎨 Syntax Color Preservation β€” Preserves Cheat Engine syntax colors outside highlighted text.
  • πŸ› οΈ Optional Debug Diagnostics β€” Added troubleshooting output that is disabled by default.

πŸš€ Plugin Features

  • βœ… Register Highlighting β€” Highlights registers such as eax, rax, rcx, xmm0, and r8.
  • βœ… Expression Highlighting β€” Highlights memory expressions such as ecx+08 and [ecx+08].
  • βœ… Opcode Highlighting β€” Highlights instructions such as fld, fstp, and mov.
  • βœ… Instruction-Prefix Highlighting β€” Highlights prefixes such as fld dword ptr.
  • βœ… x86 and x64 Support β€” Works with both 32-bit and 64-bit processes.
  • βœ… Multiple Memory Viewer Windows β€” Applies highlights per DisassemblerView.
  • βœ… Safe Hooking β€” Preserves and restores existing OnPostDisassemble handlers.
  • βœ… Cheat Engine Syntax Colors β€” Keeps unrelated disassembly formatting readable.

🧩 How It Works

  • Open the Cheat Engine Memory Viewer.

  • Select Highlight from the menu.

  • Enter the register, expression, opcode, or instruction prefix you want to track.

  • The plugin applies a visible color highlight to matching disassembly text while preserving existing Cheat Engine syntax colors outside the matched area.

  • Select Highlight again to disable the active highlight.


πŸ–₯ Example Use Cases

  • Track a register:
    rax

  • Track a memory expression:
    [ecx+08]

  • Match expressions with different formatting:
    ecx+08
    ecx + 08
    ecx+0x08
    ecx+08h

  • Track an opcode:
    fld

  • Track an instruction prefix:
    fld dword ptr


πŸ’» Compatibility

  • Cheat Engine 6.4 or newer
  • Supports x86 and x64 processes
  • Works with multiple Memory Viewer instances
  • Preserves existing Cheat Engine disassembler syntax highlighting
  • Compatible with other plugins that use OnPostDisassemble handlers

βš™οΈ Installation

  • Download "MiMemory Viewer - Highlight (v1.1).lua".
  • Place the file inside the Cheat Engine autorun folder:
    Cheat Engine\autorun\
  • Start or restart Cheat Engine.
  • Open Memory Viewer.
  • Select Highlight from the menu and enter the text you want to track.

⚠️ Important Notes

  • Highlighting is applied per DisassemblerView.
  • Register-offset matching supports bracketed and non-bracketed expressions.
  • Equivalent offset formats such as 8, 08, 0x08, and 08h are recognized.
  • Existing Cheat Engine syntax colors outside highlighted text are preserved.
  • Optional debug diagnostics are disabled by default.

πŸ’¬ Feedback & Support

  • Have suggestions, bug reports, or ideas for improvement? Leave a comment on the blog β€” feedback is always welcome! πŸ™Œ

Attachments
MiMemory Viewer - Highlight (v1.1).zip
Optimized Highlighting β€” Refactored and improved the original register-highlighting behavior.
Register-Offset Expressions β€” Added support for expressions such as ecx+08 and [ecx+08].
Whitespace-Insensitive Matching β€” ecx+08 also matches ecx + 08.
Offset Normalization β€” Recognizes equivalent offsets written as 8, 08, 0x08, or 08h.
Opcode Highlighting β€” Added support for opcodes such as fld, fstp, and mov.
Opcode-Prefix Highlighting β€” Added support for prefixes such as fld dword ptr.
Syntax Color Preservation β€” Preserves Cheat Engine syntax colors outside highlighted text.
Optional Debug Diagnostics β€” Added troubleshooting output that is disabled by default.
(131.35 KiB) Downloaded 15 times
MiHighlight (v1.0).zip
Release
(5.19 MiB) Downloaded 9 times

Post Reply