A modloader and modding toolkit for MENACE. Grab the latest version from the downloads page
Load mods, handle conlficts and load order, modify saves and check if mods are safe
Create mods without touching game files. Tweak stats, replace textures, add custom code — all through a visual editor.
ModpackLoader — A runtime mod that loads your modpacks into the game:
- Applies stat patches and asset replacements at startup
- Provides an SDK for C# mods to interact with the game
- Includes an in-game Dev Console (press
~) for debugging and live commands
Modkit App — A desktop application for creating and managing mods:
- Stats Editor — Browse and edit game data (weapons, armor, units) with side-by-side vanilla comparison
- Asset Browser — View extracted game assets and set up texture/model/audio replacements
- Code Editor — Write C# mod code with compilation, security scanning, and error checking
- Modpack Manager — Create, organize, and deploy modpacks with one click
📖 Full Documentation — Start here for guides and API reference
| I want to... | Go to... |
|---|---|
| Make my first mod | Baby's First Mod |
| Change weapon/unit stats | Stat Adjustments |
| Create new unit variants | Template Cloning |
| Replace textures | Textures & Icons |
| Write code mods | SDK Basics |
| Look up SDK APIs | Coding SDK Reference |
| Debug my mod | Debugging Guide |
- .NET 10+ SDK
- MENACE or MENACE Demo installed via Steam
- Windows or Linux
# Build and run the desktop app
dotnet run --project src/Menace.Modkit.AppOn first launch the app will:
- Detect your game installation
- Install MelonLoader (the mod framework) if needed
- Deploy the DataExtractor to pull game data
- Prompt you to launch the game once to extract templates
After that, the Stats Editor, Asset Browser, and Code Editor are ready to use.
./build-redistributables.shCreates self-contained builds in dist/:
dist/gui-linux-x64/— Linux GUIdist/gui-win-x64/— Windows GUI
A modpack is a folder with a modpack.json manifest:
MyModpack/
modpack.json # Name, author, version, load order
stats/ # JSON patches for game templates
WeaponTemplate.json
EntityTemplate.json
assets/ # Replacement textures, audio, etc.
textures/
src/ # C# source files (compiled on deploy)
MyMod.cs
See the modding guides for detailed tutorials.
| Project | Description |
|---|---|
| Menace.Modkit.App | Avalonia desktop GUI — stats editor, asset browser, code editor |
| Menace.Modkit.Core | Shared library — asset bundles, type trees, patch merging |
| Menace.ModpackLoader | MelonLoader mod — loads modpacks, provides SDK and DevConsole |
| Menace.DataExtractor | MelonLoader mod — extracts game templates to JSON |
Example modpacks in third_party/bundled/modpacks/:
- DevMode-modpack — Dev tools (god mode, spawning, teleport)
- CombinedArms-modpack — AI coordination features
- TwitchSquaddies-modpack — Twitch chat integration
Press ~ in-game to open the developer console:
| Panel | Purpose |
|---|---|
| Battle Log | Combat events with filtering |
| Log | Error and debug messages |
| Console | Commands + C# REPL |
| Inspector | Property viewer for game objects |
| Watch | Live expression monitoring |
Commands: find <type>, inspect <type> <name>, templates <type>, scene, errors
See Dev Console docs for the full command reference.
The TwitchSquaddies system lets Twitch viewers control squaddies:
- Run
tools/TwitchServer/— connects to Twitch IRC - Deploy the TwitchSquaddies modpack
- Viewers type
!draftto enter the pool
See TwitchSquaddies README for setup.
See ARCHITECTURE.md for technical details.
Key libraries:
- Avalonia — Cross-platform UI
- AssetsTools.NET — Unity asset reading/writing
- Roslyn — C# compilation
- MelonLoader — IL2CPP mod injection
- Harmony — Runtime method patching
dotnet test tests/Menace.Modkit.Tests
dotnet test tests/Menace.ModpackLoader.Tests


