diff --git a/.voidbot/state/aetheria.cc b/.voidbot/state/aetheria.cc index 82686b89f..b716d486d 100644 Binary files a/.voidbot/state/aetheria.cc and b/.voidbot/state/aetheria.cc differ diff --git a/Aetheria.State.Verify/Program.cs b/Aetheria.State.Verify/Program.cs index 92c765c52..b86fac070 100644 --- a/Aetheria.State.Verify/Program.cs +++ b/Aetheria.State.Verify/Program.cs @@ -791,7 +791,10 @@ static void RequireTypedFactionShellLinks(string root) "ParseOptionalLegacyId", "GeonameFileLegacyId", "BossHullLegacyId", - ".BossHull != Guid.Empty" + ".BossHull != Guid.Empty", + "public Guid ID", + "ID = ParseLegacyId", + "ParseLegacyId(corporation.LegacyId" }; var hits = checkedFiles diff --git a/Aetheria.State/README.md b/Aetheria.State/README.md index 3006f63d9..af0cfcff0 100644 --- a/Aetheria.State/README.md +++ b/Aetheria.State/README.md @@ -117,8 +117,7 @@ GUID link fields. `Faction` equality, hashing, narrative constraints, sector display filtering, sector-map link/influence rendering, zone security ownership checks, and runtime faction-relationship ordering now use `FactionKey`. The legacy -`Faction.ID` remains projection residue only until the temporary simulation -shell is removed. +`Faction.ID` projection field is deleted from the temporary simulation shell. Run checkpoint commit DTOs carry typed `OrbitKey`, `ParentOrbitKey`, and `BodyKey` only for zone orbit/body snapshots. The old pending-command `OrbitLegacyId`, `ParentLegacyId`, and `BodyLegacyId` fallback fields are diff --git a/Assets/Scripts/ServerShared/Corporations.cs b/Assets/Scripts/ServerShared/Corporations.cs index e327d661b..4094bfa4b 100644 --- a/Assets/Scripts/ServerShared/Corporations.cs +++ b/Assets/Scripts/ServerShared/Corporations.cs @@ -10,7 +10,6 @@ using Unity.Mathematics; [Inspectable] public class Faction : INamedEntry { - public Guid ID = Guid.NewGuid(); public string FactionKey; [Inspectable] diff --git a/Assets/Scripts/ServerShared/Galaxy.cs b/Assets/Scripts/ServerShared/Galaxy.cs index 05dbc387f..7cbe6571d 100644 --- a/Assets/Scripts/ServerShared/Galaxy.cs +++ b/Assets/Scripts/ServerShared/Galaxy.cs @@ -261,7 +261,6 @@ public class Galaxy return new Faction { - ID = ParseLegacyId(corporation.LegacyId, nameof(corporation.LegacyId), corporation.Name), FactionKey = corporation.CorporationKey, Name = corporation.Name, ShortName = corporation.ShortName, @@ -272,16 +271,6 @@ public class Galaxy }; } - private static Guid ParseLegacyId(string legacyId, string fieldName, string ownerName) - { - if (Guid.TryParse(legacyId, out var parsed) && parsed != Guid.Empty) - { - return parsed; - } - - throw new InvalidOperationException($"Typed catalog corporation {ownerName} has invalid {fieldName} '{legacyId}'."); - } - private void PlaceFactionsMain(int bossCount, Action progressCallback = null) { progressCallback?.Invoke("Finding Chokepoints"); diff --git a/docs/aetheria-perfect-machine-map.md b/docs/aetheria-perfect-machine-map.md index 342b8d856..0c91af3b0 100644 --- a/docs/aetheria-perfect-machine-map.md +++ b/docs/aetheria-perfect-machine-map.md @@ -1025,8 +1025,8 @@ First Aetheria surfaces to publish: - Done: move temporary `Faction` equality, hashing, narrative constraints, sector display filtering, sector-map link/influence rendering, zone security ownership checks, and runtime faction-relationship ordering to - `FactionKey`. `Faction.ID` is now projection residue rather than - comparison/order authority. + `FactionKey`. The legacy `Faction.ID` projection field is deleted from + the temporary simulation shell. - Done: move package and canonical manufacturer/corporation/name-file lookup to typed keys (`ManufacturerKey`, `CorporationKey`, `GeonameFileKey`, and `NameFileKey`), and move loadout manufacturer-distance weighting to @@ -1771,8 +1771,8 @@ First Aetheria surfaces to publish: boss-hull relationships use typed keys, not legacy GUID projection fields. - `Aetheria.State.Verify` guards temporary `Faction` identity: equality, hashing, ordering, narrative checks, sector filtering/rendering, and zone - security checks must use `FactionKey`, leaving `Faction.ID` as projection - residue only. + security checks must use `FactionKey`; the legacy `Faction.ID` projection + field may not return. - Unity batchmode compile returned cleanly after the runtime blueprint rename; live Unity source has no `EntityPack`, `ShipPack`, `OrbitalEntityPack`, `ZonePack`, `PackedContents`, `PackZone`, `EntitySerializer.Pack`, or