Multiplayer icon indicating copy to clipboard operation
Multiplayer copied to clipboard

Syncing pawns triggers warnings because their associated ideos are not handled correctly

Open Tick-git opened this issue 6 months ago • 0 comments

Label: Multifaction, Bug, 1.5

ModList:

Prepatcher, Harmony, Core, Biotech, Multiplayer

Reproduce:

  1. Start Multiplayer Game
  2. Settle new Faction
  3. Generate Map
  4. Warning appears

Explaination:

The method FactionSidebar.DoCreateFaction calls the [SyncMethod] FactionCreator.SendPawn, which takes an exposable Pawn as a parameter.

During pawn generation, an ideo is generated. However, ideos are deeply saved through the IdeoManager, not through the pawn itself. The pawn only holds a loading reference to its ideo. As a result, when the pawn is synchronized and exposed, only the pawn is deep saved - the ideo is not included. This causes loading warnings during the sync process, since the pawn's ideo reference is not deep saved and does not point to an object on the receiving side.

Severity:

This issue doesn't cause any actual problems beyond the warning itself. The ideo data is synchronized separately and it's later used to correctly recreate the ideo. However, the current approach feels a bit unclean. There may be a better and more robust solution to handle this more gracefully.

Stacktrace:

CouldNotResolveIdeo_Stacktrace.txt

Tick-git avatar Jun 15 '25 15:06 Tick-git