Jump to content

Recommended Posts

Posted (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 by MartinCo
  • Like 1
  • 3 weeks later...
Posted (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 by MartinCo
  • 2 months later...
Posted

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

 

  • Like 1
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...