MartinCo Posted September 15, 2024 Posted September 15, 2024 (edited) Hi ED, When using dynamically spawned FARPs and warehouses in multiplayer the item counts do not seem to be syncronized on player join. (FARPs existing within the miz file however, do seem to synchronize content across rejoins) Please see attached video of the following actions: Spawn Invisible FARP Rearm / Refuel menu shows no weapons Add Hydra rockets to FARP Rearm / Refuel menu shows 70 rockets Disconnect Reconnect Rearm / refuel menu shows no weapons Remove Hydra rockets from FARP Add Hydra rockets to FARP Rearm / Refuel menu shows 70 rockets Server Log (not much on) dcs.log Server Track: server-20240915-205728.trk Mission File: farp-warehouse-issue3.miz Edit: Some things I have found out, the above works because i removed them, and added them again with some delay (client sync time) If you run just the add then you will not get weapons in the menu - it appears DCS sends a delta to clients, which makes perfect sense from an eventual consistency perspective with independent client local operations that may occur at the same time as such if you do: warehouse:setItem("weapons.nurs.HYDRA_70_M151", 10) Warehouse shows 10 Disconnect / Reconnect warehouse:setItem("weapons.nurs.HYDRA_70_M151", 10) Warehouse shows 0 warehouse:setItem("weapons.nurs.HYDRA_70_M151", 15) Warehouse shows 5 Mission file including this edit: farp-warehouse-issue3-edit.miz So it does just look like the initial state is missing as part of connection join is absent to correctly apply the series of deltas that occur after join A possible workaround for now is to monitor the time of last sync of your warehouse and if a player is within range and not been synced since they connected then you can remove current inventory making all clients 0 then add the inventory again as required (this may pose a race condition for those actively rearming at that specific location during the "outage") but it's probably better than no weapons Edited September 16, 2024 by MartinCo 1
MartinCo Posted October 3, 2024 Author Posted October 3, 2024 (edited) Issue persists with DCS 2.9.8.1214 Server Track: server-20241003-125147.trk Client Track Session 1 (spawning farp, set 10 rockets, showing rearm with 10, disconnect): farp-warehouse-issue3-20241003-125212.trk Client Track Session 2 (reconnect, rearm showing 0, set 15, rearm showing 5 (not 15), disconnect): farp-warehouse-issue3-20241003-125316.trk Other clients who were on for both "weapon add events" would have 15 showing in stock (+10 +5) Edited October 3, 2024 by MartinCo
MartinCo Posted December 4, 2024 Author Posted December 4, 2024 Issue persists with DCS 2.9.10.3948 New tracks for DCS 2.9.10.3948 Server Track: server-20241204-153723.trk Client Track Session 1 (spawning farp, set 10 rockets, showing rearm with 10, disconnect): farp-warehouse-issue3-20241204-153728.trk Client Track Session 2 (reconnect, rearm showing 0, set 15, rearm showing 5 (not 15), disconnect):farp-warehouse-issue3-20241204-153822.trk Thanks, Martin
MartinCo Posted December 11, 2024 Author Posted December 11, 2024 Issue persists with DCS 2.9.10.4160 Now i'm glad i decided to make the Airbase version that did get fixed with the patch as a different thread: https://forum.dcs.world/topic/365453-airbase-warehouses-not-syncronized-on-player-join-since-29103948/ Thanks, Martin 1
Recommended Posts