Skip to content

Client may (re)spawn with camera stuck at 0,0,0 under certain circumstances in multiplayer #4152

@Cervator

Description

@Cervator

What you were trying to do

Play test and assorted testing, dying to respawn, disconnecting to relog, etc. Wanted to be able to respawn successfully or relog at the place I logged out.

What actually happened

In some cases my player's camera would be stuck at 0,0,0 and able to look around. At the same time an entire player avatar was correctly present where it was supposed to be, and even accepted the input from said players mouse + keyboard, seeming to move, break blocks, etc perfectly normally to an observing player.

@DarkWeird noted some likely clues / theories in #4126 where it seems like a LocationComponent somewhere gets set wrong or not set at all. It might also be that the few entities related to a player (client, character, gaze...) get split somehow, as I think we've even seen the avatar both stuck in the ground at 0,0,0 as well as functioning normally at a proper location.

How to reproduce

  • Start a multiplayer game - has been seen in JoshariasSurvival and MetalRenegades for play tests (so several people involved from different sites)
  • Connect, disconnect, die, respawn, relog, etc
  • Profit!

Don't have a lot more specific details yet. We also tried during a play test where it happened to reset a given player's config.cfg to cause creation of a brand new player on the server, which might have fixed it in some cases, but not others? May be a roll of the dice or up to timing whether a player successfully avoids the issue or not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    MultiplayerAffects aspects not visible in Singleplayer mode onlyStatus: Needs InvestigationRequires to be debugged or checked for feasibility, etc.Type: BugIssues reporting and PRs fixing problems

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions