Skip to content

Add auto-start countdown for multiplayer lobbies - #1

Open
CnCRAZER wants to merge 5 commits into
developfrom
Auto-Start
Open

Add auto-start countdown for multiplayer lobbies#1
CnCRAZER wants to merge 5 commits into
developfrom
Auto-Start

Conversation

@CnCRAZER

@CnCRAZER CnCRAZER commented Mar 1, 2026

Copy link
Copy Markdown
Owner

Introduce an auto-start countdown that can automatically ready remaining players and launch games. Changes include:

  • MultiplayerGameLobby: add AUTO_START_COUNTDOWN_SECONDS and ALL_READY_COUNTDOWN_SECONDS, XNATimerControl (autoStartTimer) and state variables; implement StartAutoStartCountdown, AutoStartTimer_TimeElapsed, ForceReadyAndLaunch, CancelAutoStartCountdown, AreAllNonHostPlayersReady and a virtual AutoStartCountdownNotification. Integrate countdown start when host attempts launch and not all players are ready, handle immediate force-launch behavior, shorten countdown when all players become ready, and emit periodic/localized notices.
  • LANGameLobby: add AUTO_START command, handler to show notices/flash window for clients, broadcast AUTO_START when host triggers, and cancel countdown on player leave/timeouts.
  • CnCNetGameLobby: add AUTOSTART IntNotificationHandler, send CTCP AUTOSTART when host triggers, handle client-side notice/flash/TopBar switching, and cancel countdown when players leave.
  • Hook countdown cancellation into relevant flows (lobby init/host change, map/start location changes, player leaves, and game option/map changes).

The feature provides timely user notices, shortens the timer if everyone readies, and forces ready/launch at timeout to reduce stalled games.

Introduce an auto-start countdown that can automatically ready remaining players and launch games. Changes include:

- MultiplayerGameLobby: add AUTO_START_COUNTDOWN_SECONDS and ALL_READY_COUNTDOWN_SECONDS, XNATimerControl (autoStartTimer) and state variables; implement StartAutoStartCountdown, AutoStartTimer_TimeElapsed, ForceReadyAndLaunch, CancelAutoStartCountdown, AreAllNonHostPlayersReady and a virtual AutoStartCountdownNotification. Integrate countdown start when host attempts launch and not all players are ready, handle immediate force-launch behavior, shorten countdown when all players become ready, and emit periodic/localized notices.
- LANGameLobby: add AUTO_START command, handler to show notices/flash window for clients, broadcast AUTO_START when host triggers, and cancel countdown on player leave/timeouts.
- CnCNetGameLobby: add AUTOSTART IntNotificationHandler, send CTCP AUTOSTART when host triggers, handle client-side notice/flash/TopBar switching, and cancel countdown when players leave.
- Hook countdown cancellation into relevant flows (lobby init/host change, map/start location changes, player leaves, and game option/map changes).

The feature provides timely user notices, shortens the timer if everyone readies, and forces ready/launch at timeout to reduce stalled games.
@github-actions

github-actions Bot commented Mar 1, 2026

Copy link
Copy Markdown

Nightly build for this pull request:

  • artifacts.zip
    This comment is automatic and is meant to allow guests to get latest automatic builds without registering. It is updated on every successful build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant