teardown-lua-executor Svelte Themes

Teardown Lua Executor

External Lua executor for Teardown using shellcode injection with a modern WebView2 UI built in Svelte, TailwindCSS, and Monaco

Teardown Lua Executor

External Lua executor for the Teardown game using shellcode injection with a modern WebView2 UI built in Svelte, TailwindCSS, and Monaco.

Features

  • 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

Usage Prerequisites

Building

1. Clone the Repository

git clone https://github.com/yourusername/teardown-lua-executor
cd teardown-lua-executor

2. Install UI Dependencies

cd webui
npm install

3. Build with Visual Studio

  1. Open the solution in Visual Studio 2022
  2. Build the project (the pre-build event will automatically run npm run build)
  3. The UI will be compiled and embedded as a resource in the executable

Project Structure

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)

Usage

  1. Launch Teardown
  2. Run the executor
  3. Wait for the connection indicator to turn green
  4. Write Lua code in the editor or load a script file
  5. Click "Execute" to run your code

Development

UI Development (with hot reload)

cd webui
npm run dev

Debug build in Visual Studio automatically sets the target web page to http://localhost:5173 instead of loading from resources.

Production Build

cd webui
npm run build

Please 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.

Technical Details

  • 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

License

All source code in this project falls under the MIT license. License

Disclaimer

This tool is for educational purposes only. Use at your own risk.

Top categories

Loading Svelte Themes