Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Negative CurrentStats and Players can't operate vehicles #1923

Closed
Bieshanas opened this issue Dec 14, 2022 · 3 comments · Fixed by #2106
Closed

Negative CurrentStats and Players can't operate vehicles #1923

Bieshanas opened this issue Dec 14, 2022 · 3 comments · Fixed by #2106
Labels
Area: persistence Related to serialization for long term storage (i.e. files and databases) Type: bug
Milestone

Comments

@Bieshanas
Copy link

Are you on the latest version of Nitrox?

Yes, I'm on the latest release of Nitrox.

Which OS are you playing on?

Windows

On which platform did you buy Subnautica?

Steam

Describe the issue.

After few minutes of playing multiplayer other players get their CurrentStats values bugged (negative health, all zeroes) and can't operate vehicles. Logs from testing, when as soon as second player connected to game he couldn't use Cyclops and after trying to pilot it, I'm too could use it. It showed that it's in use by other player.

Describe the steps you took to encounter the bug.

  1. start server
  2. two players connect to server
  3. playing normally, but after few minutes second player (I call second player that which connects to my server) can't operate any vehicles and if he reconnects his stats set to zero, he moves very slowly.
  4. if second player tries to maneuver vehicle and it's bugged, I also can't operate it. It shows that other player operates it.

example of bugged CurrentStats
image

Relevant log output

Player who runs server

Game: https://pastebin.com/wrxUQb4V
Server: https://pastebin.com/Uu51t20k

Player who connects to server

Game: https://pastebin.com/2HDp2c88

@Bieshanas Bieshanas added Status: to verify Issue is currently not verified by trusted user Type: bug labels Dec 14, 2022
@OhmV-IR
Copy link
Contributor

OhmV-IR commented Dec 1, 2023

I have had a similar issue as well

@Jannify Jannify changed the title Players can't operate vehicles Negative CurrentStats and Players can't operate vehicles Jan 9, 2024
@carlalldis
Copy link

Just had a similar issue with a build of 1.8.0.0 - a health value of 0.0 doesn't allow using any base items, hatches, vehicles, etc. after joining a server.

@dartasen dartasen added Area: persistence Related to serialization for long term storage (i.e. files and databases) and removed Status: to verify Issue is currently not verified by trusted user labels Dec 26, 2024
@dartasen dartasen added this to the 1.8 milestone Dec 26, 2024
@tornac1234
Copy link
Collaborator

Possible reason why it happens:

  • a player dies, their health is <= 0 (there's some sort of cooldown during which the player isn't respawning)
  • server auto saves
  • server exits

Player will have its life set at 0 which makes Player.IsAlive always return false which prevents all sorts of interactions.

This will simply be fixed by preventing the spawn of local player with health inferior to 1 HP in #2106

@tornac1234 tornac1234 linked a pull request Jan 1, 2025 that will close this issue
10 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: persistence Related to serialization for long term storage (i.e. files and databases) Type: bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants