GraveFramework
Shared mod-discovery and content-injection framework for Graveyard Orbit. Required by other mods; not a gameplay mod on its own.
| Last updated | 5 hours ago |
| Total downloads | 1 |
| Total rating | 0 |
| Categories | Libraries AI Generated |
| Dependency string | Luminaex-GraveFramework-1.1.0 |
| Dependants | 1 other package depends on this package |
README
GraveFramework
A shared BepInEx/Harmony plugin for Graveyard Orbit (dev AnchorheadGames) that lets other mods add real content — new structures/contracts, research-tree "Mods", boosters, anomalies and quotas — by dropping JSON files into a folder, with no code required.
This is not a gameplay mod on its own. It's infrastructure other mods depend on. GraveBuilder is the first mod built on top of it.
What it does
- Mod discovery — any folder under
BepInEx/plugins/with amanifest.jsonor acontent/<type>/folder is picked up as a content mod automatically, DLL optional. - Five content types:
content/structures/,content/mods/,content/boosters/,content/anomalies/,content/quotas/— each a folder of*.jsonfiles matching the game's own schema for that catalog. - Cross-mod collision detection — if two mods claim the same id, the later one is rejected and the log names both mods, instead of silently overwriting.
- A boot-time load report — printed to
BepInEx/LogOutput.loga couple of seconds after launch, and again after every hot-reload: every discovered mod, and per-type injected/skipped/rejected counts with reasons. - A "MODS (n)" button on the main menu that lists every mod
ModDiscoveryfound (id, name, version, description, dependencies) — players can see what's installed without openingLogOutput.log. Its panel also has a RELOAD MODS button to re-scan every mod's content folders and re-apply without restarting. Any assembly's own bespoke injector also joins in automatically, just by defining a static parameterlessReload()method — no registration needed. SeeModsMenuPatch.cs.
Installing (for players)
Recommended: install via r2modman or the Thunderstore Mod Manager — search for "GraveFramework" under Graveyard Orbit and click Install. BepInEx and any dependency are installed automatically.
Manual install:
- Install BepInEx 5.4.x (Mono) into your Graveyard Orbit install, if you haven't already — extract its zip into the game's install folder and run the game once so it finishes setting itself up.
- Download the latest release zip from this repo's
Releases page and extract it into
BepInEx/plugins/, so you end up withBepInEx/plugins/GraveFramework/GraveFramework.dll. BepInEx loads it first automatically via[BepInDependency]for any mod that depends on it (e.g. GraveBuilder).
Building from source
Requires the .NET SDK and a local install of Graveyard Orbit (for its Assembly-CSharp.dll
and BepInEx's own core DLLs, referenced via HintPath). Edit the $(GameDir) property in
Directory.Build.props (repo root; MSBuild picks it up automatically) to point at your own
install, e.g.:
<GameDir>C:\Program Files (x86)\Steam\steamapps\common\Graveyard Orbit</GameDir>
Then dotnet build.
Authoring content for this framework
Each content type's JSON schema matches the game's own data format for that catalog — see
the comments in the matching *InjectPatch.cs file in this repo for the exact fields expected
(e.g. ModsInjectPatch.cs for research-tree nodes, StructuresInjectPatch.cs for
contracts/structures). A manifest.json identifying your mod is optional but recommended:
{
"name": "YourModName",
"version_number": "1.0.0",
"website_url": "",
"description": "",
"dependencies": []
}
Building your own menu UI
See UI_GUIDE.md — how to hook a Harmony patch into a screen, the game's own
GraveyardOrbit.UI helper library (MetaUi/ModalKit/SlabFrame/PadNav/UiSfx) every
official menu is built from, and the full button + modal pattern, worked through using
ModsMenuPatch.cs as the example.
Examples
The examples/ folder is a separate, optional companion project
(GraveFrameworkExamples.dll) that shows every technique this framework enables, working end
to end: zero-code content folders (a research-tree node, a booster, an anomaly, a quota) and
code-based techniques the content folders don't cover (a new campaign chapter, a new ship
part, a new weapon hit-mechanic, mod-supported localisation). It's reference material for mod
developers to read and build themselves. It isn't something players install, and it's never
included in GraveFramework's own release zip. See examples/README.md.
Status
Early v1. Built and verified live in-game against the running game (all five catalog injectors, cross-mod collision detection, hot-reload). Not affiliated with AnchorheadGames.