Ship S2 fixes: structural anchors are not mounts, mod presets refused, one bad mod never bricks the boot
- Validate: a hardpoint's anchor role is fixed by its type (thruster-emitter, radiator-mesh, else articulation); ShipModPlan's duplicate role check is deleted. - Loadouts.Commit refuses a preset naming a mod design (mod-hull:/mod-ship:), so the shipped catalog never references a mod. - Compose quarantines each package: a bad package is excluded and named, a collision excludes every package involved; the game boots on the rest (or the shipped catalog) and the main menu lists the exclusions. - RequireDesigns refuses a save with a null item or lot instead of throwing NullReferenceException. - Tests: per structural role, muzzle id ties, every slot/zone/lot in RequireDesigns, listing order, exclusion cases. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
7eebd21d29
commit
54917bb39d
13 changed files with 408 additions and 92 deletions
|
|
@ -18,9 +18,10 @@ public static class ShipAuthoringCommands
|
|||
{
|
||||
if (args[0] == "compose" && args.Length == 4)
|
||||
{
|
||||
var count = ShipModCatalog.Compose(args[1], args[2], args[3]);
|
||||
Console.WriteLine($"Composed {count} mod ships into {Path.GetFullPath(args[2])}");
|
||||
return 0;
|
||||
var composition = ShipModCatalog.Compose(args[1], args[2], args[3]);
|
||||
Console.WriteLine($"Composed {composition.Included.Length} mod ships into {Path.GetFullPath(args[2])}");
|
||||
foreach (var exclusion in composition.Excluded) Console.Error.WriteLine($"Excluded {exclusion}");
|
||||
return composition.Excluded.Length == 0 ? 0 : 1;
|
||||
}
|
||||
if (args[0] == "inspect" && args.Length == 2)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue