I propose changes to multiplayer lobby to support for check if players are ready to start game. Idea is mostly taken from freeciv and can be used for dedicated game server without host player.
[*] Add the field to the game protocol and lobby UI.
[*] Drop it if the important game's or players' changes were happened.
[*] When all human players are ready the game starts without requiring host player to press "start" button.
I don't have experience with UI so I ask for help to arrange the ready checkbox in the players list.
URL: https://github.com/o01eg/freeorion/tree/player-ready
[MULTIPLAYER] Add player readiness.
Moderator: Committer
[MULTIPLAYER] Add player readiness.
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm
-
- Programmer
- Posts: 389
- Joined: Sun Feb 14, 2016 12:08 am
Re: [MULTIPLAYER] Add player readiness.
A checkbox might be easily missed by a player here. Might I suggest reusing the start button to toggle a ready state for each player instead?
Regardless of that, looks like the column/cell alignment could be set to GG::FORMAT_RIGHT.
The column width is set to 40 without expanding the row width, so the other column width need reduction or the row needs widened.
Could reduce the checkbox column width to height + buffer, so the other columns do not need to shrink as much.
Regardless of that, looks like the column/cell alignment could be set to GG::FORMAT_RIGHT.
The column width is set to 40 without expanding the row width, so the other column width need reduction or the row needs widened.
Could reduce the checkbox column width to height + buffer, so the other columns do not need to shrink as much.
- Geoff the Medio
- Programming, Design, Admin
- Posts: 13603
- Joined: Wed Oct 08, 2003 1:33 am
- Location: Munich
Re: [MULTIPLAYER] Add player readiness.
A check box probably isn't the right UI widget in this context, as for most players in the list it won't be interactive. A simple indicator icon would suffice, and a button below, in place of "start game" would be used to indicate that a player is ready.
Re: [MULTIPLAYER] Add player readiness.
Reworked UI. Now it use labels and "start game" button.
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm
Re: [MULTIPLAYER] Add player readiness.
Thanks to dbenage-cx there is new UI for readiness:
Gentoo Linux x64, gcc-11.2, boost-1.78.0
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm
Ubuntu Server 22.04 x64, gcc-12, boost-1.74.0
Welcome to the slow multiplayer game at freeorion-lt.dedyn.io.Version 2024-04-14.ad50e93.
Donations're welcome:BTC:bc1q007qldm6eppqcukewtfkfcj0naut9njj7audnm