Nitrox icon indicating copy to clipboard operation
Nitrox copied to clipboard

Items disappear or duplicate

Open Fraaahhh opened this issue 4 years ago • 4 comments

Version

1.5.0.1

Bug

Items disappear or duplicate

Expected

  • Every time someone enters the server, all players' items are duplicated
  • Sometimes the player's inventory is cleared

Fraaahhh avatar Aug 15 '21 19:08 Fraaahhh

It happened to me. I would say the duplication always happens when a inventory is opened/loaded when a player enters the server. But the items are ghost items because on server restart they disappear. If you drop those ghosts items an error is shown on the server console

Pietro2999 avatar Aug 19 '21 10:08 Pietro2999

It happened to me too. I think it happens when something changed in your inventary, but it happens not always. Maybe when you enter in the world too(and you have already played)

mcdelarosa avatar Jan 16 '22 09:01 mcdelarosa

I had the problem too. Sometimes even with storage containers. A friend of mine checked if the storage was deleted but for him it was completely normal so i rejoined the game an it seemed to work again.

H4x0r-000 avatar Feb 21 '22 09:02 H4x0r-000

Still happens on 1.6.0.0. Happens predominantly with multi-slot items.

Flash1232 avatar Aug 14 '22 16:08 Flash1232

I solved this by making everyone join in order. The join order should always be the same as the order people joined in to the world the first time. For example:

  1. Player 1
  2. Player 2
  3. Player 3
  4. Player 4

If everyone joins in this order, no issues occur. If someone leaves, that will cause no issues. However, they cannot rejoin as they "own" items from other people's inventories, which will cause duplication. Anyone who wasn't part of the first time the server was ran can join, but they should join last. So, the steps to mitigate:

  1. Start server
  2. Make sure everyone joins in order
  3. No touching anything or opening your inventory before everyone is in and loaded fully (seeing the game world)
  4. No rejoining without everyone leaving and then restarting the server.

I think this could be because Player 1 will own some items of players that join after him, and so on. This could (maybe) be permanently fixed by making the server own and simulate everything, instead of splitting it onto players. This way, when someone joins, they get the most up-to-date gamestate directly from the server.

Rosentti avatar Sep 26 '22 17:09 Rosentti

I just passed this on the help channel and credited you.

Nice solve!

On Mon, Sep 26, 2022, 1:46 PM 20PercentRendered @.***> wrote:

I solved this by making everyone join in order. The join order should always be the same as the order people joined in to the world the first time. For example:

  1. Player 1
  2. Player 2
  3. Player 3
  4. Player 4

If everyone joins in this order, no issues occur. If someone leaves, that will cause no issues. However, they cannot rejoin as they "own" items from other people's inventories, which will cause duplication. Anyone who wasn't part of the first time the server was ran can join, but they should join last. So, the steps to mitigate:

  1. Start server
  2. Make sure everyone joins in order
  3. No touching anything or opening your inventory before everyone is in and loaded fully (seeing the game world)
  4. No rejoining without everyone leaving and then restarting the server.

I think this could be because Player 1 will own some items of players that join after him, and so on. This could (maybe) be permanently fixed by making the server own and simulate everything, instead of splitting it onto players. This way, when someone joins, they get the most up-to-date gamestate directly from the server.

— Reply to this email directly, view it on GitHub https://github.com/SubnauticaNitrox/Nitrox/issues/1566#issuecomment-1258397010, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANIO56ECAIZRY2NCTIQXMUDWAHOPNANCNFSM5CGPUI4Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>

sarayuuki avatar Sep 26 '22 18:09 sarayuuki

Probably solved with new entity system

Jannify avatar Apr 09 '23 21:04 Jannify