$ show maximegmd/CyberEngineTweaks
Cyber Engine Tweaks (CET) is a Windows DLL plugin (ASI) for Cyberpunk 2077 that provides a Lua scripting environment, an in-game Dear ImGui overlay, and a suite of developer tools for modding. It hooks into the game's DirectX 12 renderer and RED4ext runtime to expose internal game systems (RTTI, TweakDB, singletons, functions) to Lua scripts. The architecture is a singleton orchestrator (CET) that owns subsystems: a Lua VM (sol2 + LuaJIT), an ImGui overlay with dockable widgets (Console, TweakDB Editor, Settings, Bindings, Game Log), a raw input binding system, a persistent state manager, and a set of memory patches (disable vignette, boundary teleport, etc.). Mods are placed in a designated folder and can register callbacks for game events, create UI, manipulate game data, and override game functions via a hooking chain.
The LLM identified 2 files worth highlighting for reuse:
A comprehensive, single-header Lua binding for Dear ImGui using sol2. It registers over 100 ImGui functions, enums, and types (widgets, tables, plots, color pickers, popups, etc.) with proper overload resolution. This component is self-contained (depends only on sol2 and ImGui) and can be reused in any project that needs to expose ImGui to Lua, not just Cyberpunk 2077 modding.
A mature, standalone Lua binding for SQLite3 supporting Lua 5.1–5.3. It exposes the full SQLite3 API (prepared statements, user-defined functions, backup, hooks) as a Lua module. The code is well-structured with conditional compilation for Lua versions and includes a complete HISTORY of releases. It can be extracted and used in any Lua project requiring a database backend.