Comment 10 for bug 1434875

Revision history for this message
Notabilis (notabilis27) wrote :

I started working on this and would like some feedback/opinions regarding my current state.

On the host, if the connection to a client is lost, the host does:
- Pause game
- Save the game
- Display dialog (see attachment)
- Wait for the decision of the host and execute it
- Unpause the game

The host can select whether to replace all disconnected clients (might be multiple at the same time) with a Normal/Weak/Very Weak/Empty AI or to abort the game.
This only happens if a player disconnects, no action is done when an observer disconnects.

I haven't changed the client side, there an already existing "autosave + messagebox + continue with AI action" is implemented.
For now, I ignored the "host player is not on computer right now" case mentioned in #9. I think with the introduction of the relay for internet games this doesn't happen often any longer.

Two problems I am having currently (hints are appreciated):
- The dropdown button is much darker than the other buttons. Is it possible to change that?
- I would like to not display the dialog for defeated and/or victorious players but silently replace them. Does anyone know how to find out if a player is defeated?