This repository is archived (September 2026).
Development has moved to a fork maintained by the author of Jiangyu:
- Playing with mods: antistrategie/MenaceModkit ships a standalone Mod Manager that installs modpacks, raw MelonLoader mods and Jiangyu mods, plus a continuation of this Modkit with loader fixes for current game builds.
- Making mods: Jiangyu (docs) is the actively developed authoring platform, including 3D model replacement and prefab additions.
The final release here is v37.0.0 (beta), updated for MENACE v0.7.14 and MelonLoader 0.7.3. The schema regeneration pipeline it added (
tools/update-for-game-patch.sh) is what keeps the data extractor working across game patches; the fork had not picked it up at the time of archiving. Issues are closed; the code stays available under the GPL for anyone who wants to build on it.
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


