Jump to content

Mods.RogueTrader.Shared/SPEC

From MindAttic Docs
Revision as of 13:36, 30 November 2026 by Docs Sync (talk | contribs) (md2wiki: sync from MindAttic.Docs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Mods.RogueTrader.Shared — Product specification

The complete product, written down before it is built (owner, 2026-11-30, MAT-T360). Every epic, feature and story the finished product will have is listed here, built or not. The ticket tree mirrors this file one to one: every ID below is a ticket. Nothing gets built unless it is here, and anything taken out of here is closed wont-do in the tree. docs/RELEASE.md says which part of this the current milestone delivers.

1. Product definition

Shared is the MSBuild setup and source helpers every MindAttic Rogue Trader mod compiles into itself: game paths and references, release packaging, the Owlcat-mod build checks, and small runtime and tool helpers. Its users are the mods themselves (Overwatch and Brevity). The finished product is v1.0.0, tagged on GitHub, with both consumers confirmed to build on it and docs that name the current repos.

2. Scope boundary

2.1 In the product

  • Game paths and references, mod and tool props, release packaging with empty folders kept.
  • The three Owlcat-mod build checks (Bundles folder, bundle sections, string enums in patches).
  • Runtime helpers ModLog, Sprites.FromPng, LocalizationOverlay; tool helper BlueprintArchive.

2.2 Never in the product

  • A DLL or NuGet package: mods share one game process, so it stays source (BIBLE §3).
  • Being a mod itself: it is never installed in the game.
  • Helpers only one mod needs (README rule): they stay in that mod.
  • Open-ended "exhaustive bughunt" passes (RTS-T15, wont-do).

3. Users and roles

  • Consumer mod (Mods.RogueTrader.Overwatch, Mods.RogueTrader.Brevity): imports one props file and gets a working build, install and dist/ zip.
  • Owner: builds every consumer before committing a change here (RTS-LAW-2).

4. Requirements

Status is built (closed ticket, with evidence) or MS-81: the milestone in §7 that delivers it.

E1. Mod build kit — RTS-T24 — built

F1.1 Paths, references and packaging — RTS-T25 — built

  • S1.1.1 One import builds a mod — RTS-T2 — built As a consumer mod, I want one props import to give me game references, install and a dist zip, so that I need no build setup of my own.
  • S1.1.2 Empty folders survive packaging — RTS-T3 — built Acceptance: Given a mod with an empty Bundles folder, then the release zip keeps it.

F1.2 Owlcat-mod build checks — RTS-T26 — built

  • S1.2.1 Bundles and settings sections — RTS-T4 — built
  • S1.2.2 String enums in patches — RTS-T5 — built
  • S1.2.3 Central Bundles guarantee — RTS-T9 — built Acceptance: Given any of the three traps, when the mod builds, then the build fails and names the fix.

F1.3 Runtime and tool helpers — RTS-T27 — built

  • S1.3.1 Helpers hardened — RTS-T8 — built As a consumer mod, I want ModLog, Sprites, LocalizationOverlay and BlueprintArchive compiled in as internal types, so that each mod logs, loads icons, overlays text and reads blueprints the same way.

E2. Shared 1.0.0 baseline (polish and release) — RTS-T16 — MS-81

F2.1 Consumer build check — RTS-T17 — MS-81

  • T2.1.1 Verify consumers and tag v1.0.0 — RTS-T19 — MS-81 Acceptance: Given Shared's main, when Overwatch src/RogueTrader.Overwatch and Brevity src/BrevityMod and tools/DialogueExport build with -c Release, then all are clean and v1.0.0 is tagged and pushed.

F2.2 Docs current — RTS-T18 — MS-81

  • T2.2.1 Renamed repo names — RTS-T20 — MS-81 Acceptance: Then docs/overview.md and AGENTS.md name the renamed Mods.RogueTrader.* repos and folders.

5. Non-functional requirements

  • net48 for mod code, net8+ for tools; every path overridable with -p:Name=value (RTS-LAW-4).
  • Everything compiles into the consumer as internal types in the RogueTrader.Shared namespace (RTS-LAW-1).

6. Interfaces and dependencies

  • Consumers: Mods.RogueTrader.Overwatch (Owlcat format), Mods.RogueTrader.Brevity (UMM mod and tools), as sibling checkouts.
  • Game: Warhammer 40,000: Rogue Trader install and its modding template.

7. Release sequence

  1. MS-81 "Shared 1.0.0 baseline" (active, docs/RELEASE.md): epic RTS-T16, ending with the v1.0.0 tag. This is the finished product: new helpers come only when a second mod needs them.

8. Change log

Date Change to scope Ticket
2026-11-30 Specification written from overview, BIBLE, RELEASE, the code and the ticket history; built work filed as epic RTS-T24; RTS-T20 now targets docs/overview.md and AGENTS.md MAT-T388
From Mods.RogueTrader.Shared/docs/SPEC.md via MindAttic.Docs; synced automatically, so edit the repo, not this page.