Entering a new map causes desync
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.
~~### 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]
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:
- Dev quicktest
- Host multifaction game
- Client: Join and create faction
- Host: Debug tools -> Generate quest -> OpportuinitySite_AncientComplex
- Host: Form Caravan -> Send it to quest site
- Host: Enter quest site map
- Host: Run through a door => Desync happens
Additional Info:
Save/Load fixes the and "Try resync" as well