External Lua executor for the Teardown game using shellcode injection with a modern WebView2 UI built in Svelte, TailwindCSS, and Monaco.
- Execute Lua code in Teardown at runtime
- Modern dark-themed code editor with syntax highlighting
- Build into lua formatting / beautification
- Script browser to view and select loaded game scripts
- File loading / saving / viewing
- Ability to script between server and client execution
- Real-time game connection status
- Visual C++ Redistributable v14 (x64 Architecture)
- Teardown game
- WebView2 Runtime (usually pre-installed on Windows 10/11)
- Node.js 18+ and npm
- Visual Studio 2026 with C++ desktop development tools
git clone https://github.com/yourusername/teardown-lua-executor
cd teardown-lua-executorcd webui
npm install- Open the solution in Visual Studio 2022
- Build the project (the pre-build event will automatically run
npm run build) - The UI will be compiled and embedded as a resource in the executable
teardown-lua-executor/
├── webui/ # Svelte UI
│ └── src/ # UI Source
│ ├── components/ # UI Components
│ └── app.svelte # Provides entry point & Webview2 IPC to components
├── src/ # C++ project functionality
│ └── C++ Backend...
├── icon/ # Contains the handmade ICO for the application
├── resource/ # C++ embeddable resources
│ ├── resource.h
│ └── resource.rc
├── dependencies/ # Libraries used in conjunction with C++ (Webview2, json, etc.)
└── build/ # Build output for executable (MSVC)
- Launch Teardown
- Run the executor
- Wait for the connection indicator to turn green
- Write Lua code in the editor or load a script file
- Click "Execute" to run your code
cd webui
npm run devDebug build in Visual Studio automatically sets the target web page to http://localhost:5173 instead of loading from resources.
cd webui
npm run buildPlease take note that the pre-build event in Visual Studio automates this step, so long as the node packages are installed, this step is redundant.
The output in webui/dist/index.html will be embedded as a resource during the Visual Studio build.
- Injection Method: Shellcode injection
- UI Framework: Svelte 5
- Styling: TailwindCSS 4
- Code Editor: Monaco with Lua syntax highlighting
- Build Tool: Vite with single-file plugin
- WebView: Microsoft WebView2
All source code in this project falls under the MIT license. License
This tool is for educational purposes only. Use at your own risk.