Recovering cards from a player who has disconnected?
Posted: 18 May 2021, 17:57
Is there any way for the host to recover the cards that were in a player's hand after that player disconnects from the server?
-- When that player rejoins, how does the game know to give them the correct hand of cards back?
-- Does it use their name as a unique identifier, or is there some other hidden id assigned to a user based on ip/mac address or something?
-- If this user changed their name before rejoining, would they still get the correct hand of cards back?
-- If a user changes their name to that of another player that has disconnected, would they be able to recover the cards that were in the other player's hand?
-- If the user reconnected from a different location/ip/computer, would they still get the correct hand of cards back?
Apologies for the barrage of questions; I'm just hoping to understand how this part of the app works a bit better. I'm gearing up to play some long async games with a risk of players dropping out and not being able to return in a timely fashion, so there is some concern about cards getting lost in a player's hand.
Thanks!
-- When that player rejoins, how does the game know to give them the correct hand of cards back?
-- Does it use their name as a unique identifier, or is there some other hidden id assigned to a user based on ip/mac address or something?
-- If this user changed their name before rejoining, would they still get the correct hand of cards back?
-- If a user changes their name to that of another player that has disconnected, would they be able to recover the cards that were in the other player's hand?
-- If the user reconnected from a different location/ip/computer, would they still get the correct hand of cards back?
Apologies for the barrage of questions; I'm just hoping to understand how this part of the app works a bit better. I'm gearing up to play some long async games with a risk of players dropping out and not being able to return in a timely fashion, so there is some concern about cards getting lost in a player's hand.
Thanks!