Mods.MechWarrior5.SaveEditor/BIBLE
MW5 Save Editor — Project Bible
Single source of truth for what the MW5 Save Editor IS, is NOT, and the rules that keep it coherent. README says how to build and run it; this says how to think about it. The finish line lives in
docs/RELEASE.md.
1. The one sentence
One standalone Windows program that safely edits MechWarrior 5: Mercenaries and MechWarrior 5: Clans saves through one interface styled after the games' own HUDs.
2. The product promise
- One app, two games. The MERCENARIES and CLANS title-bar tabs switch editors; each keeps its own open save.
- Your saves are safe. An original game save is never overwritten; every edit is lossless or refused.
- Follows your game. Pictures, items, traits, career paths, fame ranks and limits come from the installed game's and enabled mods' own files, not from hand-kept lists.
- Offline. The program never connects to the internet. It reads saves and game/mod files and writes only saves and
settings.json. - Published for players on both NexusMods pages (Mercenaries mod 1677, Clans mod 70) and GitHub releases, as one self-contained zip.
3. What it is NOT
- Not a mod the game loads: it is a program the player runs.
- Not a cheat trainer or memory editor: it edits save files on disk only.
- Not online: no downloads, no telemetry, no update check. Sarna.net links open in the player's browser.
- Not per-mod code: mods are read generically; one mod's quirks go in an add-on pack (
addons/*.json). - Not a fork to push upstream: the
wmtoroderemote is the original upstream and is never pushed to.
4. Architecture canon
MechWarrior5.SaveEditor.App (WPF, .NET 10)
ShellViewModel: MERCENARIES tab | CLANS tab
| |
Mercs.SaveEditor.Core Clans.SaveEditor.Core
(Saves, Catalog, Game, (Saves, Catalog, Game,
Data, Addons) Data)
\ /
shared/: MechWarrior5.Shared (Unreal save engine, pak/IoStore
reading, editor stamp) + MechWarrior5.Shared.Wpf (theme, dialogs, images)
4.1 Projects
src/MechWarrior5.SaveEditor.App— the WPF app: shell, Mercenaries views,Clans/pages,Localization/(six languages),Services/(settings, Oodle locator, art).src/MechWarrior5.Mercs.SaveEditor.Core,src/MechWarrior5.Clans.SaveEditor.Core— per-game save logic.shared/src/MechWarrior5.Shared,shared/src/MechWarrior5.Shared.Wpf— game-neutral code, folded in from the archived Mods.MechWarrior5.Shared repo (M5SE-T90); split back out withgit subtree split --prefix shared.tests/andshared/tests/— NUnit tests, including a headless RenderTargetBitmap UI harness.tools/package.ps1(release zip),tools/nexus-description.ps1,tools/AddonPack,tools/CatalogCheck.
4.2 Domain model
Save (GVAS / Clans archive), save index (Campaign.json, UserSaveMetaData), 'Mech, loadout, pilot, trait, item, company, faction standing, career path, add-on pack, compatibility report, editor stamp.
4.3 Key services
Save parse and lossless re-serialise; save index registration; pak and IoStore reading (Clans via an Oodle DLL already on the PC); mod scan in game load order; add-on pack application; compatibility report.
5. The Laws
Inherits MindAttic.HouseRules.md by reference.
- Never overwrite an original save. Only stamped editor saves are updated in place, with a
.bak. - Lossless or nothing. A save that doesn't re-serialise byte for byte is refused; every write is read back and swapped in through a temp file.
- No network in the exe. Nothing is downloaded or bundled from third parties (no Oodle DLL either).
- Read the game, don't hard-code it. Game and mod data come from their files; a built-in list is only a fallback.
- One package, both pages. Every release is one zip, byte for byte the same on GitHub and both NexusMods pages, holding exactly one exe.
- Whole-number versions. Each release bumps the major (
Directory.Build.props). - Work on copies of real saves when testing; never on the live save folders.
6. Verified state
7.0.0 is tagged and released on GitHub (e2e9136); 6.0.0 is the last version published to both NexusMods pages (b2da639, .publish-state.json). Details in docs/RELEASE.md §6.
7. Active frontier
docs/RELEASE.md: milestone MS-31, 7.0.0 on both NexusMods pages and proven in both games.
8. Quality bar
A feature is done when it builds clean (warnings are errors), works for both games where it applies, is translated in all six languages, is checked by an off-screen render on a copy of a real save, and is in the README changelog and the user guide.
9. Glossary
- Stamp — the
Mech5SaveEditorStampproperty marking a save the editor wrote. - Add-on pack — a JSON file in
Addonscarrying one mod's corrections, active only while that mod is. - Oodle — Epic's compression library; Clans stores its pictures Oodle-compressed.
- IoStore — Unreal Engine 5's container format used by Clans.
- Quarantine — NexusMods holding a file for review (ticket 278393).