Terasology / LightAndShadow

Light & Shadow is an experimental game type set in a quirky Alice in Wonderland inspired setting
Apache License 2.0
8 stars 22 forks source link

Health hud fix for reconnects and restarts #90

Closed darshan3 closed 5 years ago

darshan3 commented 5 years ago

Project Cards:

  1. Handle loading from saved game and client reconnects

How to test:

  1. Host a Light and Shadow game
  2. Join the game using one more client instance
  3. Choose one team with each of the players
  4. Leave the game for one of the clients and join in again.
  5. Close the game and try loading the game back from save and join using other clients again.

Expected outcome: Health HUD should be initially white dots and it should change to Spades for black team, hearts for red team.

skaldarnar commented 5 years ago

This does work for a single client re-joining a game, and for the host when quitting the game and then hosting it again (loading the same game). However, it does not work for a previously connected client if they lost connection because the host quit. Player appears as white and also has the white dots.

Terasology-190614000627-1152x720 image

skaldarnar commented 5 years ago

On the upside, it works if the client disconnects before the host. When re-joining after the host is up again the HUD is correct. What's the difference between a graceful disconnect and losing connection to the server?