You are viewing a potentially older version of this package. View all versions.
Luminaex-GraveFramework-1.1.0 icon

GraveFramework

Shared mod-discovery and content-injection framework for Graveyard Orbit. Required by other mods; not a gameplay mod on its own.

Date uploaded 6 hours ago
Version 1.1.0
Download link Luminaex-GraveFramework-1.1.0.zip
Downloads 2
Dependency string Luminaex-GraveFramework-1.1.0

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 a manifest.json or a content/<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 *.json files 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.log a 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 ModDiscovery found (id, name, version, description, dependencies) — players can see what's installed without opening LogOutput.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 parameterless Reload() method — no registration needed. See ModsMenuPatch.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:

  1. 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.
  2. Download the latest release zip from this repo's Releases page and extract it into BepInEx/plugins/, so you end up with BepInEx/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.

CHANGELOG

Changelog

v1.1.0

  • Moved the RELOAD MODS button off the Contracts page and into the main menu's Mods panel (opened via the "MODS (n)" button), alongside the installed-mods list it already showed.

v1.0.0

Initial release.

  • Mod discovery: any folder under BepInEx/plugins/ with a manifest.json or a content/<type>/ folder is picked up as a content mod automatically, no DLL required.
  • Five content types: content/structures/, content/mods/, content/boosters/, content/anomalies/, content/quotas/.
  • Cross-mod collision detection on content ids, with both mods named in the log.
  • Boot-time load report in BepInEx/LogOutput.log.
  • A "MODS (n)" button on the main menu listing every discovered mod, with a "RELOAD MODS" button to hot-reload content without restarting.