Jump to content

Mods.RogueTrader.Shared/BIBLE

From MindAttic Docs

RogueTrader.Shared — Project Bible

Single source of truth for what Shared IS, is NOT, and the rules that keep it coherent. README says how to use it; this says how to think about it. The finish line lives in docs/RELEASE.md.

1. The one sentence

Shared is the MSBuild setup and source helpers every MindAttic Rogue Trader mod compiles into itself.

2. The product promise

  • One place for game paths, game references, release packaging and the Owlcat-mod build checks.
  • A mod imports one props file and gets a working build, install and dist/ zip.
  • Mistakes that would only fail in game fail the build instead, with the fix spelled out.

3. What it is NOT

  • Not a DLL or NuGet package: mods share one game process, so a shared DLL would load once for all of them.
  • Not a mod: it is never installed in the game.
  • Not a grab-bag: a helper lands here only once a second mod needs it, or it is plumbing every mod needs.

4. Architecture canon

RogueTrader.Game.props  <- RogueTrader.Mod.props  (net48 mod) -> src/Runtime/*.cs
                                 |-> RogueTrader.OwlcatMod.targets (Bundles / settings / enum checks)
                                 |-> RogueTrader.Package.targets   (dist/<ModFolderName>-<ModVersion>.zip)
RogueTrader.Game.props  <- RogueTrader.Tools.props (net8+ tool) -> src/Tools/*.cs

4.1 Modules

  • src/Runtime: ModLog (Player.log lines tagged by mod), Sprites.FromPng, LocalizationOverlay.
  • src/Tools: BlueprintArchive.Read (blueprints from the modding template tar or a folder).

4.2 Consumers

Mods.RogueTrader.Overwatch (Owlcat format), Mods.RogueTrader.Brevity (UMM mod and its tools), checked out as siblings and imported by relative path or -p:RogueTraderShared=<path>.

5. The Laws

Inherits MindAttic.HouseRules.md by reference.

  1. Everything compiles into the consumer as internal types in the RogueTrader.Shared namespace.
  2. A change here is built in every consumer before it is committed.
  3. Owlcat-format mods must ship Bundles, the empty bundle sections in their settings JSON, and string enum values in *.jbp_patch; the targets enforce all three.
  4. Paths are overridable with -p:Name=value; no machine path is hard-coded outside the props defaults.

6. Verified state

  • The three Owlcat-mod checks (RTS-T4, RTS-T5), central Bundles guarantee (RTS-T9), bughunt fixes (RTS-T8).
  • Both mods build and ship on it (Overwatch 6.0.0, Brevity 3.0.0).

7. Active frontier

See docs/RELEASE.md: confirm both consumers build, refresh the README, tag v1.0.0.

8. Quality bar

A change is done when every consumer builds clean on it and the README table describes it.

9. Glossary

  • Owlcat-format mod: Modifications\<Name> with manifest and settings JSON.
  • UMM mod: UnityModManager\<Id> with Info.json.
From Mods.RogueTrader.Shared/docs/BIBLE.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.