amaatouq/netwise

Add Lobby timeouts

Closed this issue · 0 comments

There are 2 exclusive lobby timeout types:

  • Lobby timeout
  • Individual timeout

A game can only have one or the other. If lobby timeout, the timer starts with the first player entering the lobby. There are 2 exclusive options for the lobby timeout:

  • Play anyway: play even if playerCount not reached
  • Fill with bots: fill the missing players with bots (selection of which bots in admin)

If neither options are selected, the game is cancelled at the end of the timeout period.

For the individual timeout, each player has a timer that starts when they enter the lobby. If timer runs out, the player is asked if they want to wait the same amount of time again. There is an configuration to set max number of times this question can be asked. If set to 0, the question is never asked, they immediately exit.

In the admin, there is a new tab, Lobby Templates, where different timeout configurations can be created. Then when creating the batch, for each treatment, we can select a lobby template.