GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - SenjuWoo/Risk-Of-Rain-2-Forge: WIP: CLI-first, agent-ready Risk of Rain 2 modding forge. Pinned tools, C# templates, inspection and packaging. Optional MCP, off by default.

BranchesTags
Open more actions menu

Latest commit

 

History

54 Commits
54 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
assets
assets
 
 
docs
docs
 
 
ror2forge
ror2forge
 
 
scripts
scripts
 
 
skills/ror2-forge
skills/ror2-forge
 
 
src/AsmRefs
src/AsmRefs
 
 
templates
templates
 
 
tests
tests
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CLAUDE.md
CLAUDE.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
NuGet.Config
NuGet.Config
 
 
PLAN.md
PLAN.md
 
 
README.md
README.md
 
 
RELEASE_PROCESS.md
RELEASE_PROCESS.md
 
 
SECURITY.md
SECURITY.md
 
 
STATE.md
STATE.md
 
 
THIRD_PARTY.md
THIRD_PARTY.md
 
 
VALIDATION.md
VALIDATION.md
 
 
VERSION
VERSION
 
 
WORKSPACE_OWNERSHIP.md
WORKSPACE_OWNERSHIP.md
 
 
forge.cmd
forge.cmd
 
 
forge.ps1
forge.ps1
 
 
forge.py
forge.py
 
 
mcp.ps1
mcp.ps1
 
 
requirements-mcp.txt
requirements-mcp.txt
 
 

Repository files navigation

Risk of Rain 2 Forge: a blue raindrop mark on a dark slate background, with the tagline 'Make, check and package Risk of Rain 2 mods against the RoR2.dll you actually have installed.' and the chips ILSpy lookup, pinned templates, audited ZIPs and JSON output

CI Release Python .NET License: MIT Status: WIP

Install · Tour · Commands · Survivors and assets · How it works · Changelog

Risk of Rain 2 Forge is a local, CLI-first workbench for AI agents (and people) making Risk of Rain 2 mods. It reads the game you have installed, finds exact type names in your own RoR2.dll through ILSpy, scaffolds pinned BepInEx/R2API C# templates, compiles them with locked references, audits the result against its manifest and packages a deterministic Thunderstore ZIP. It needs no always-on service, account, API key or Unity editor for code mods.

Work in progress. The CLI, build and package pipeline is tested; generated mods still need in-game validation. Windows x64 is the supported development platform. Unity asset authoring is a documented optional route, not a certified editor integration.

Point an agent at this folder and tell it: "Read AGENTS.md and use this forge to make my Risk of Rain 2 mod." The CLI is the default. No MCP is globally registered or automatically launched.

What you get

  • Names from your game, not from memory. symbols searches the installed RoR2.dll (or any DLL) for exact class, struct, enum, interface and delegate names; inspect decompiles one type or one member with ILSpy, so an agent never needs a whole-game source dump.
  • A route before any code. plan "add a survivor with four skills" classifies the request and returns only the docs, R2API modules, checks and pitfalls it needs.
  • Templates that build. plugin, stats (R2API RecalculateStats movement speed) and procedural (runtime geometry, no Unity) compile against pinned NuGet references, with or without a game install.
  • Locked, reproducible builds. build --locked --offline refuses a changed packages.lock.json, records source/DLL hashes and keeps a build log and receipt per mod.
  • Packages that hold only your mod. package audits R2API usage, dependency GUIDs and version fields, refuses stale builds, then writes a deterministic ZIP with the mod's own DLL, manifest, README, icon and declared content/. Reference DLLs are never packaged.
  • A survivor playbook proven on real ports. The character pipeline takes another game's character to a playable survivor with skins, without a Unity editor.
  • JSON everywhere. Every command prints one JSON object; errors exit nonzero. Built for scripts and agents.

Terminal: forge doctor reports forge 1.16.1, .NET SDK 11.0.100, no missing tools, Steam build 25921972, Unity 2021.3.45f2, the RoR2.dll SHA-256, ready for build and inspection, Wwise 2023.1 not installed and runtime_verified false; forge plan for a new survivor with four skills returns the survivor category, required R2API ContentManagement, Skins and Prefab modules and four survivor checks

Install

Clone the repository, or download the source kit from the latest release. Each release carries the source ZIP, SHA256SUMS and a BUILD-RECEIPT.json. Install Python 3.11+ and the .NET 10 SDK, then in PowerShell:

git clone https://github.com/SenjuWoo/Risk-Of-Rain-2-Forge.git
cd Risk-Of-Rain-2-Forge
.\forge.cmd setup
.\forge.cmd doctor

forge.cmd is the Windows entry point; python forge.py works the same with Python 3.11+. Setup installs pinned ILSpy, Thunderstore CLI and the official MCP SDK inside this folder (tools/, .venv/), reuses your Python and .NET SDK, and retains caches so forge.cmd setup --offline can restore them later on the same Python/OS/architecture. Third-party binaries, game files and private caches are not in Git. See toolchain and provenance for pins and limits.

A Steam copy of Risk of Rain 2 is needed for installed-assembly inspection and game testing. Template compilation uses NuGet references and works without an installed game. Set ROR2_GAME_DIR when automatic Steam discovery cannot find it.

A two-minute tour

.\forge.cmd doctor                                   # game build, Unity, assembly hash, SDK and tools
.\forge.cmd plan "add a new survivor with four skills"
.\forge.cmd symbols CharacterBody --limit 10          # exact names from the installed RoR2.dll
.\forge.cmd inspect RoR2.RoR2Application --member 'M:RoR2.RoR2Application.Awake'
.\forge.cmd lookup RiskofThunder R2API_RecalculateStats --version 1.7.0
.\forge.cmd new MyMod --author MyTeam --template stats
.\forge.cmd build MyMod
.\forge.cmd build MyMod --locked
.\forge.cmd package MyMod
.\forge.cmd validate artifacts\MyTeam-MyMod-1.0.0.zip
.\forge.cmd logs --path 'C:\path\to\BepInEx\LogOutput.log'

Terminal: forge symbols CharacterBody finds 28 matches in the installed RoR2.dll and lists the first five, including RoR2.CharacterBody and its nested AffixEchoBehavior and BodyFlags types; forge lookup reads RiskofThunder-R2API_RecalculateStats-1.7.0 from Thunderstore with its HookGenPatcher, BepInExPack and R2API_Core dependencies; forge updates reports a complete check with one update available

Source lives in projects/MyMod/src/; package metadata lives beside it. artifacts/ receives the checked ZIP. Generated mods and caches are private and excluded from source tracking. Use --template stats for a configurable movement speed example using R2API's stat event (default multiplier 1.0), or --template procedural for runtime-generated geometry with no Unity editor.

Terminal: forge new scaffolds BlazingSprint from the stats template; forge build compiles version 1.0.0 with SDK 11.0.100 and prints the assembly SHA-256; forge package writes a valid ZIP holding README.md, icon.png, manifest.json and plugins/BlazingSprint/BlazingSprint.dll with no audit errors or warnings and publish not requested; forge validate confirms the ZIP is valid with no errors

The shots above are real runs, excerpted; runtime_verified: false is the forge saying that compiling and packaging are not proof the mod loads in game.

Commands

Command Purpose
plan "REQUEST" Classify a mod request; return only the documents, frameworks, checks and pitfalls it needs
doctor Read-only Steam/game/Unity/profile/tool discovery, including game assembly hash
updates Query official package feeds on demand; report current pins, scoped candidates and lookup failures
setup [--offline] Restore pinned tools into this workspace
new NAME --author TEAM [--template plugin|stats|procedural] Create an owned mod without replacing source
build NAME [--locked] [--offline] Restore and compile, with source/DLL evidence and a build log
symbols QUERY [--assembly DLL] [--limit 20] Find exact type names through ILSpy; bounded, case-insensitive output
inspect TYPE [--assembly DLL] [--member ID] Decompile one exact type or member using ILSpy
bump NAME patch|minor|major|X.Y.Z Back up and update mod version fields together, then rebuild
audit DIR [--findings-limit 12] Cross-check R2API usage, dependency GUIDs, the compiled assembly's references and version fields against the manifest; warn on survivor gaps and per-frame work
package NAME [--skip-audit] Validate build freshness, run the audit and create a deterministic Thunderstore ZIP
validate ZIP Check paths, install layout, metadata, icon integrity, CRC and forbidden game references
release-check [--mode prerelease|release] [--assets DIR] [--require-verified] Compare VERSION, package version, changelog and tag; with --assets, verify published bytes and independent CI
logs [--path LOG] [--lines 250] Read a bounded log tail and identify triage candidates
lookup NAMESPACE NAME [--version VERSION] Read live Thunderstore package metadata and dependencies
guide [overview|character|runtime|audio|extraction|thunderstore|checklist|tasks|toolchain|...] Read one playbook. runtime is companion aim, buffs and camera. thunderstore is the page and dependency minimums

Normal output is JSON; errors use a nonzero exit. Invalid ZIPs return their JSON report on stdout with exit 1. --debug before the command adds a traceback on stderr. Build logs and receipts live in each mod's build/ folder.

symbols searches classes, interfaces, structs, enums and delegates in the installed RoR2 DLL by default, or a specific DLL with --assembly. It hides compiler-generated helpers, ranks an exact match first and reports truncation, the total matches and assembly hash. Feed a returned name to inspect; no whole-game source dump or persistent index is needed.

Iterating on a mod

.\forge.cmd bump MyMod patch
.\forge.cmd build MyMod --locked --offline
.\forge.cmd package MyMod

bump checks that forge.json, manifest.json, the project Version and PluginVersion agree before editing them. It preserves original bytes under the mod's build/version-backups/, updates generated state/changelog notes and rolls back a failed write. Explicit versions must increase. Custom/ambiguous declarations are refused rather than guessed; the automated version preflight does not support source containing raw C# string delimiters. Existing ZIPs remain intact; the changed source requires a rebuild. Use an online build when references are not cached yet.

Doctor, discovery and updates

doctor reports build readiness independently of game discovery: the templates can compile with a compatible SDK and NuGet references on a machine without RoR2. It reports the SDK selected from the forge root, its resolution error if any, and the separate installed-SDK inventory. A project's own global.json may select another SDK; its build remains authoritative. Default game inspection still needs the installed assembly. Setup's complete toolchain requires .NET 10 for ILSpy.

Discovery reads Steam's registry/library manifests and r2modman data. Override it with ROR2_GAME_DIR / ROR2_MODMAN_DIR, or a private forge.local.json containing game_dir / modman_dir. The manager directory is the RiskOfRain2 directory containing profiles/. No profile is changed.

Run forge.cmd updates when refreshing the workbench or investigating a game/tool update. It checks metadata without installing anything or changing pins, and covers the tool pins plus the NuGet and Thunderstore pins forge new writes into every mod. Reference candidates stay scoped to the template's loader/Unity line; a newer game reference still needs compatibility verification. Failed lookups are reported as unknown and produce exit 1, rather than pretending everything is current. This command has no background schedule and adds no MCP tool.

Survivors, assets and multiplayer

The recipes cover items/equipment, survivors/skins/stages, hooks, asset bundles, networking and debugging. Place produced runtime bundles/audio/etc. in a mod's content/; packaging preserves their paths below plugins/NAME/. Code, extra DLLs and nested archives are refused there. The ZIP includes the mod's own DLL, manifest, README, icon, optional project LICENSE and declared content, rather than the entire build folder.

Building a playable survivor from another game's assets has its own end-to-end route: the character pipeline, with the survivor checklist, runtime (companion aim, buffs, camera), audio and extraction notes. It covers source extraction, mesh/rig/clip conversion, baking runtime packs, the minimum working body, skins, the verified engine facts (including why Unity audio is unavailable) and the failure modes, proven on a 44-skin character with no Unity editor. A Thunderstore page reads THUNDERSTORE.md.

There is no survivor template: new scaffolds plugin, stats or procedural, and a survivor is built on top of one by following the pipeline above.

Unity authoring is optional and needs a matching editor and verified EditorKit/ThunderKit setup. Unity itself is not bundled. Read the asset route before creating an editor project. Runtime shader, gameplay, save and multiplayer checks require actual game sessions; compilation cannot settle them.

Optional MCP, off by default

CLI use requires no MCP configuration. If a particular agent host benefits from typed tools/resources, explicitly start mcp.ps1 for that task, or configure that host only in its trusted RoR2 project:

{
  "command": "<absolute forge path>/.venv/Scripts/python.exe",
  "args": ["-m", "ror2forge.mcp_server"],
  "cwd": "<absolute forge path>"
}

This is a server entry example, not a provider-specific full config. Nothing here installs it into personal/global settings. Eight typed tools and two guide resources expose the original workflow. New symbols, bump and updates operations use the CLI, keeping this optional schema small. A host must start the server before tools are callable; stop it when the RoR2 task ends. The agent guide and reusable skill work with CLI-only agents too.

How it works

flowchart TD
  GAME["Your RoR2 install (read-only)"] -->|"doctor"| FACTS["build, Unity, RoR2.dll hash"]
  GAME -->|"symbols · inspect (ILSpy)"| NAMES["exact types and members"]
  PLAN["plan: route, docs, R2API modules"] --> NEW["new: pinned plugin / stats / procedural"]
  NAMES --> NEW
  NEW --> BUILD["build: locked NuGet refs, receipt, log"]
  BUILD --> AUDIT["audit: R2API, GUIDs, versions, survivor gaps"]
  AUDIT --> PKG["package: own DLL + metadata + content/"]
  PKG --> VAL["validate: layout, CRC, icon, no game refs"]
  VAL --> ZIP[("local Thunderstore ZIP")]
Loading
  • Read-only on the game. Installed game, manager profiles, saves and supplied references are never written. The forge never installs into a profile, launches the game or uploads to Thunderstore.
  • Pinned and local. Tools, templates and NuGet/Thunderstore pins are fixed; updates reports drift on demand and changes nothing.
  • Evidence stays separate. Compile, package, loader, gameplay and multiplayer results are different claims. Doctor, new, build, bump, package and validate reports all carry runtime_verified: false; the forge never claims a mod runs in game.
  • Refuses to guess. Stale builds, different bytes under an existing artifact version and ambiguous version declarations are refused, not patched over.

Validation and boundaries

Run .venv\Scripts\python.exe -m unittest discover -s tests -v after setup. MCP tests use a real local SDK client/server connection. CI also restores/builds all three templates, repeats locked offline builds and checks deterministic ZIPs on a clean Windows runner without a game install. VALIDATION.md distinguishes development-machine evidence from public CI. Generated examples and evidence files are local outputs, not files shipped in a clone.

New packages are local candidates. The forge refuses stale builds and different bytes under an existing artifact version; bump all version fields to create a changed release. Arbitrary custom MSBuild scripts/imports can execute code: build trusted owned source and record external inputs explicitly.

Releases are source kits: a source ZIP built with git archive, SHA256SUMS and a build receipt. No forge binaries or third-party tools are published; setup fetches the pinned tools. Cutting or verifying a release: RELEASE_PROCESS.md.

See CONTRIBUTING.md, the roadmap, the changelog and security reporting. Original forge code is MIT; bundled third-party tools retain their own terms. Local installation does not establish permission to redistribute every tool; see THIRD_PARTY.md.

About

WIP: CLI-first, agent-ready Risk of Rain 2 modding forge. Pinned tools, C# templates, inspection and packaging. Optional MCP, off by default.

Topics

ai-agentsbepinexclicsharpmoddingr2apirisk-of-rain-2thunderstorewip

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.