| name | compat-check |
| description | Check mod compatibility against a new Bannerlord version by reviewing patch targets and GameModel overrides |
| argument-hint | [new-version or path-to-decompiled] |
Bannerlord Compatibility Check
Check LOTRAOM compatibility against a new Bannerlord version.
Step 1: Identify All Patch Targets
Scan the codebase for:
grep -rn "HarmonyPatch" Main/ --include="*.cs" | grep -v "Test"
grep -rn ": Default" Main/Models/ --include="*.cs"
grep -rn "typeof(" Main/ --include="*.cs" | grep -i "taleworlds"
Step 2: Launch 3 Parallel Verification Agents (Sonnet)
Agent 1 — Harmony Patches
For each [HarmonyPatch] target:
- Verify the class exists in the new version
- Verify the method signature matches
- Check for renamed/removed methods
- Flag any parameter type changes
Agent 2 — GameModel Overrides
For each GameModel inheriting Default*:
- Verify the base class still exists
- Check that overridden methods still match signatures
- Verify
base.Method() calls are still valid
- Check for new required overrides
Agent 3 — Reflection Usage
For each typeof() or string-based reflection:
- Verify target types still exist
- Check field/property names haven't changed
- Flag any namespace moves
Step 3: Compatibility Report
COMPATIBILITY REPORT: Bannerlord [version]
==========================================
BREAKING: N changes (must fix before update)
WARNING: N changes (may affect behavior)
SAFE: N targets verified compatible
[Grouped findings with file:line references]
Step 4: Create Issues
For each BREAKING change, create a GitHub issue with remediation steps.