Repository navigation
Conversation
|
I'm working on a related networking refactor in feature/modernize-networking that removes networking settings from the client entirely (splitting it into smaller PRs against TSH). Might be worth syncing so this doesn't need rework once that lands. |
I reviewed your related work, these will go well together. Whichever is merged first just needs to account for differences in prefs.getLANIPAddress() |
4ba7b93 to
b75b9af
Compare
a33c187 to
56ed502
Compare
|
Important Review skippedWe couldn't safely recover the incremental review. No full review was started, and the last reviewed checkpoint was preserved. Retry later, or explicitly request a full review by commenting You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. WalkthroughDebug builds can configure LAN match hosting or joining from command-line arguments. The auto-start flow uses Direct Connect, LAN callbacks, map-transfer checks, and menu integration in Generals and Zero Hour. ChangesDebug LAN match auto-start
Estimated code review effort: 4 (Complex) | ~60 minutes Change: Feature Sequence Diagram(s)sequenceDiagram
participant CommandLine
participant NetworkAutoStart
participant LANAPI
participant LANAPICallbacks
CommandLine->>NetworkAutoStart: Set mode, role, address, and startup options
NetworkAutoStart->>LANAPI: Request host creation or join
LANAPI->>LANAPICallbacks: Report create or join result
LANAPICallbacks->>NetworkAutoStart: Pass operation result
NetworkAutoStart->>LANAPI: Accept player slots and request game start
LANAPICallbacks->>NetworkAutoStart: Report game-start result
Merge Risk:
|
| Check name | Status | Explanation |
|---|---|---|
| Title check | ✅ Passed | The title clearly identifies the main change: adding debug Direct Connect startup options for network testing. |
| Description check | ✅ Passed | The description directly explains the new command-line options, supported host and join flows, testing scope, and excluded process launcher. |
| Linked Issues check | ✅ Passed | The PR satisfies the coding objectives in [#3092]. The debug-only NetworkAutoStart path supports Direct Connect host and join roles, local addresses, unique default names, map and timeout options, r… |
| Out of Scope Changes check | ✅ Passed | The changes remain within [#3092]. Command-line parsing, LAN initialization, callback handling, map-transfer checks, menu automation, and failure cleanup support automated LAN startup. The PR does not… |
ℹ️ Recent review info
-
⚙️ Run configuration
-
Configuration used: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 6fa37071-7105-4e1a-9710-1311703271bb
📥 Commits
-
Reviewing files that changed from the base of the PR and between 2bbd82ca218b5305e414f3e76216b8471d044af7 and 87ff6a0046451d6021244a140a40d0987ec287e0.
📒 Files selected for processing (4)
-
Generals/Code/GameEngine/Source/Common/GameMain.cpp
Generals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/NetworkDirectConnect.cpp
GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/LanGameOptionsMenu.cpp
GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/NetworkDirectConnect.cpp
🚧 Files skipped from review as they are similar to previous changes (1)
-
- Generals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/NetworkDirectConnect.cpp
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.
ℹ️ Recent review info
-
⚙️ Run configuration
-
Configuration used: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID:
6fa37071-7105-4e1a-9710-1311703271bb
📥 Commits
-
Reviewing files that changed from the base of the PR and between 2bbd82ca218b5305e414f3e76216b8471d044af7 and 87ff6a0046451d6021244a140a40d0987ec287e0.
📒 Files selected for processing (4)
-
Generals/Code/GameEngine/Source/Common/GameMain.cppGenerals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/NetworkDirectConnect.cppGeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/LanGameOptionsMenu.cppGeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/NetworkDirectConnect.cpp
🚧 Files skipped from review as they are similar to previous changes (1)
-
- Generals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/NetworkDirectConnect.cpp
Included review availability: Your plan provides up to 10 included reviews per hour; 8 remain after this review.
-
There was a problem hiding this comment.
Actionable comments posted: 2
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: 8b3d5ce8-c37a-4a76-b7b2-0f744b783b05
📥 Commits
Reviewing files that changed from the base of the PR and between bfa3bbf and 2bbd82ca218b5305e414f3e76216b8471d044af7.
📒 Files selected for processing (20)
Core/GameEngine/CMakeLists.txtCore/GameEngine/Include/GameClient/MapUtil.hCore/GameEngine/Include/GameNetwork/LANAPI.hCore/GameEngine/Include/GameNetwork/LANAPICallbacks.hCore/GameEngine/Include/GameNetwork/NetworkAutoStart.hCore/GameEngine/Include/GameNetwork/networkutil.hCore/GameEngine/Source/Common/CommandLine.cppCore/GameEngine/Source/GameClient/MapUtil.cppCore/GameEngine/Source/GameNetwork/LANAPI.cppCore/GameEngine/Source/GameNetwork/LANAPICallbacks.cppCore/GameEngine/Source/GameNetwork/NetworkAutoStart.cppCore/GameEngine/Source/GameNetwork/NetworkUtil.cppGenerals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/LanGameOptionsMenu.cppGenerals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/MainMenu.cppGenerals/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/NetworkDirectConnect.cppGeneralsMD/Code/GameEngine/Source/Common/GameMain.cppGeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/LanGameOptionsMenu.cppGeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/LanLobbyMenu.cppGeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/MainMenu.cppGeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/NetworkDirectConnect.cpp
Included review availability: Your plan provides up to 10 included reviews per hour; 3 remain after this review.
|
@macroscope-app review |
|
Manual reviews triggered for commit All prior checks · these links stay valid even if you push more commits. |
|
Review started; results will be posted as check runs. |
87ff6a0 to
127715e
Compare
|
Really like this change. Could also be useful for non-debug builds, like for launchers. |
|
Thanks. I kept it debug-only for this PR. |
127715e to
4c6f671
Compare
4c6f671 to
748568f
Compare
Closes #3092.
Adds debug command-line options to host or join a Direct Connect match without going through the menus manually. This makes repeated network testing easier, especially with eight clients.
Use
-autoNetworkMode directwith-autoNetworkHost <player-count>or-autoNetworkJoin <host-address>. Optional arguments set the local IP, player name, map and timeout.Uses the existing LAN join, accept and start paths. Tested two-player startup and eight-player Zero Hour startup with matching simulation CRCs.
The process launcher is separate and is not included here.
Note
Add debug Direct Connect auto-startup options for LAN games
NetworkAutoStartautomation layer that drives LAN game startup end-to-end: main menu to LAN lobby, direct-connect screen, host/join requests with retries, map selection, and game start. All debug builds process new command-line options (-autoNetworkMode,-autoNetworkHost,-autoNetworkJoin,-autoNetworkLocalAddress,-autoNetworkName,-autoNetworkMap,-autoNetworkTimeout); invalid values exit with status 1.networkutil.ParseIPv4Addressand a newLANAPI::initoverload that binds an explicit local IP.MapUtil.CanTransferMapcentralizes the map-transfer eligibility check that LAN callers previously assembled inline.GameMain.LanGameOptionsMenu::StartPressedis renamed toStartLANGameand now returns whether the start request was issued; the manual start-button callback ignores the result.StartLANGamerename changes the callback signature in LanGameOptionsMenu.cpp and LanGameOptionsMenu.cpp; the no-argumentLANAPI::initin LANAPI.cpp now delegates to the explicit-IP variant.Macroscope summarized 87ff6a0. (Automatic summaries will resume when PR exits draft mode or review begins).