Barotrauma icon indicating copy to clipboard operation
Barotrauma copied to clipboard

Items will fall to the floor when two players put things into the same container at same time

Open michael-fakefish opened this issue 3 months ago • 0 comments

Still valid in autumn-update 4e5adfea Easy to reproduce alone by using simulatedlatency 100 100 with two clients on top of each other and quickly tabbing to repeat the double click. Setting simulatedlatency 0 0 immediately after this prevents a possible disconnect from occurring.

If the fix is to fill the next adjacent free slot with the item, we should consider what to do when only one slot is available as well. Should the item then go back to the inventory or drop on the floor?

Discussed in https://github.com/FakeFishGames/Barotrauma/discussions/14853

Originally posted by A2ur3 October 18, 2024

Disclaimers

  • [X] I have searched the issue tracker to check if the issue has already been reported.
  • [X] My issue happened while using mods.

What happened?

if two players put items into the same container (steel cabinet, deconstructor...) at same time only one of player can successfully put items. Items put by another player will fall to the floor

Reproduction steps

  1. start a multiplayer game
  2. make two players put items into same cabinet/deconstructor
  3. items fall to the floor

Bug prevalence

Happens every time I play

Single player or multiplayer?

Multiplayer hosted from the in-game menu (= using a listen server)

-

No response

Version

v1.5.9.2 (Summer Update Hotfix 2)

-

No response

Which operating system did you encounter this bug on?

Windows

Relevant error messages and crash reports

No response

michael-fakefish avatar Sep 02 '25 09:09 michael-fakefish