Skip to content
This repository was archived by the owner on Sep 4, 2026. It is now read-only.
p0ssPublic archive

About

Archived. Modding toolkit for MENACE; development continues at antistrategie/MenaceModkit (Mod Manager) and antistrategie/jiangyu (authoring).

Resources

Stars

8 stars

Watchers

0 watching

Forks

Latest commit

 

History

125 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Menace Modkit

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.

Menace Modkit

A modloader and modding toolkit for MENACE. Grab the latest version from the downloads page

Menace Modkit Homepage

Load mods, handle conlficts and load order, modify saves and check if mods are safe

Menace Modkit Loadorder

Create mods without touching game files. Tweak stats, replace textures, add custom code — all through a visual editor.

Menace Modkit Screenshot

What's Included

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

Documentation

📖 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

Getting Started

Requirements

Quick Start

# Build and run the desktop app
dotnet run --project src/Menace.Modkit.App

On first launch the app will:

  1. Detect your game installation
  2. Install MelonLoader (the mod framework) if needed
  3. Deploy the DataExtractor to pull game data
  4. Prompt you to launch the game once to extract templates

After that, the Stats Editor, Asset Browser, and Code Editor are ready to use.

Building Releases

./build-redistributables.sh

Creates self-contained builds in dist/:

  • dist/gui-linux-x64/ — Linux GUI
  • dist/gui-win-x64/ — Windows GUI

Modpack Structure

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.

Projects

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

Dev Console

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.

Twitch Integration

The TwitchSquaddies system lets Twitch viewers control squaddies:

  1. Run tools/TwitchServer/ — connects to Twitch IRC
  2. Deploy the TwitchSquaddies modpack
  3. Viewers type !draft to enter the pool

See TwitchSquaddies README for setup.

Architecture

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

Running Tests

dotnet test tests/Menace.Modkit.Tests
dotnet test tests/Menace.ModpackLoader.Tests

License

GNU General Public License v3.0

About

Archived. Modding toolkit for MENACE; development continues at antistrategie/MenaceModkit (Mod Manager) and antistrategie/jiangyu (authoring).

Resources

Stars

8 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages