You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I'm trying to figure out how to determine how many players have actually joined a game. Let's say I create a new game that has space for 10 players, I want a way for the game to proceed if only 6 players actually join the game and generate a turn order sequence based on 6 players instead of 10.
The client side view is provided with matchData: FilteredMetadata which can be used to see which players have a name attached to them but I don't see an equivalent way to determine this in all the server callbacks that receive only GameState and Ctx. Is there a way to determine which playerIds are actually filled with an actual player on the server so that games can proceed with less than ctx.numPlayers present? Thank you.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello! I'm trying to figure out how to determine how many players have actually joined a game. Let's say I create a new game that has space for 10 players, I want a way for the game to proceed if only 6 players actually join the game and generate a turn order sequence based on 6 players instead of 10.
The client side view is provided with
matchData: FilteredMetadata
which can be used to see which players have a name attached to them but I don't see an equivalent way to determine this in all the server callbacks that receive onlyGameState
andCtx
. Is there a way to determine which playerIds are actually filled with an actual player on the server so that games can proceed with less thanctx.numPlayers
present? Thank you.Beta Was this translation helpful? Give feedback.
All reactions