Multiplayer icon indicating copy to clipboard operation
Multiplayer copied to clipboard

Entering a new map causes desync

Open Sakura-TA opened this issue 10 months ago • 2 comments

As far as I know , should be caused by Faction.OfPlayer is different for each playerfaction in Multiplayer.Client.MapSetup.SetupMap. This would get every player sees the door(or other forbiddable things) unforbidden, path through these door desync, after forbidden then unforbidden doors it won't desync, as the game correctly synced the forbiddance.
one more thing is that going through an unclaimed door won't be able to make room inside visiable, No sure for the reason yet.

Sakura-TA avatar Feb 28 '25 09:02 Sakura-TA

~~### Cannot Reproduce the Reported Desync Issue~~

~~Mods used:~~
~~- Prepatcher, Harmony, Core, Biotech, Multiplayer (latest Steam version)~~

~~Testing setup:~~
~~- Two local instances~~

~~Steps Taken:~~

~~- Created a new game using dev quicktest~~
~~- Hosted with multifaction enabled (also tested with +async)~~
~~- Created a new faction on the client; also tested creating a faction on the host~~
~~- Sent pawns from the newly generated faction through unforbidden doors, both via forced movement and normal pathfinding~~

~~Result:~~

~~> This would get every player sees the door (or other forbiddable things) unforbidden, path through these door desync, after forbidden then unforbidden doors it won't desync, as the game correctly synced the forbiddance.~~

~~In my test only the faction/map creator sees the doors as unforbidden.~~
~~Pathing pawns from the new faction through these doors did not cause any desync in my setup.~~

Edit: I likely misunderstood the issue. I don't think they're referring to entering a newly generated map for a faction. It seems more like entering a quest-related map - I believe I ran into this problem while testing async ticking quests.

[This needs to be tested again]

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

one more thing is that going through an unclaimed door won't be able to make room inside visiable, No sure for the reason yet.

Fixed by #681 when merged.

This would get every player sees the door(or other forbiddable things) unforbidden, path through these door desync, after forbidden then unforbidden doors it won't desync, as the game correctly synced the forbiddance.

Reproduce:

  1. Dev quicktest
  2. Host multifaction game
  3. Client: Join and create faction
  4. Host: Debug tools -> Generate quest -> OpportuinitySite_AncientComplex
  5. Host: Form Caravan -> Send it to quest site
  6. Host: Enter quest site map
  7. Host: Run through a door => Desync happens

Additional Info:

Save/Load fixes the and "Try resync" as well

Tick-git avatar Sep 10 '25 18:09 Tick-git