Nitrox
Nitrox copied to clipboard
Items disappear or duplicate
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
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
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)
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.
Still happens on 1.6.0.0. Happens predominantly with multi-slot items.
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:
- Player 1
- Player 2
- Player 3
- 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:
- Start server
- Make sure everyone joins in order
- No touching anything or opening your inventory before everyone is in and loaded fully (seeing the game world)
- 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.
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:
- Player 1
- Player 2
- Player 3
- 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:
- Start server
- Make sure everyone joins in order
- No touching anything or opening your inventory before everyone is in and loaded fully (seeing the game world)
- 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: @.***>
Probably solved with new entity system