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

Clients that join back the server lose their state. #242

Closed
hubastard opened this issue Apr 28, 2021 · 2 comments · Fixed by #244
Closed

Clients that join back the server lose their state. #242

hubastard opened this issue Apr 28, 2021 · 2 comments · Fixed by #244
Assignees
Labels
bug Something isn't working

Comments

@hubastard
Copy link
Collaborator

In some conditions clients that join back a server loses their inventory.

  1. Host a game
  2. Join with a client
  3. Move both players out of the pod
  4. Save the game on the host
  5. Make the client Quit the game
  6. (important) Make the host Quit the game
  7. Host back the game that you saved
  8. Join back with the client
  9. Notice that the host position is correct but the client now a fresh new player spawned back on the pod
@hubastard hubastard added the bug Something isn't working label Apr 28, 2021
@hubastard hubastard self-assigned this Apr 28, 2021
@hubastard
Copy link
Collaborator Author

Will be fix in next PR, we were not loading the save file on game load.

@hubastard
Copy link
Collaborator Author

This is fixed in the PR #244. It was caused by the fact that when the host was hosting a previous save game, we did not load the server save for that game. So the server save was only working if the host stayed in game while the clients disconnected / reconnected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant