Repository navigation
Sync source: Steamworks, movement/prediction, UI and network fixes - #10
Conversation
- Add Steamworks client/server integration and test AppID config - Update local movement, action map, stance and player prediction code - Update network queue/server, inventory, zombie, vehicle and UI code - Update DX9 x64 project and runtime configuration - Source only: no build artifacts or binaries
There was a problem hiding this comment.
Devin Review found 6 potential issues.
5 flags not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
| <Message /> | ||
| <Command /> | ||
| <Message>Copy Steamworks server runtime (AppID 480)</Message> | ||
| <Command>copy /Y "$(SolutionDir)extern\Steamworks\bin\steam_api64.dll" "$(OutDir)steam_api64_real.dll" && copy /Y "$(SolutionDir)extern\Steamworks\bin\steam_api64_compat.dll" "$(OutDir)steam_api64.dll" && copy /Y "$(SolutionDir)extern\Steamworks\steam_appid.test.txt" "$(OutDir)steam_appid.txt"</Command> |
There was a problem hiding this comment.
🔴 Steam DLL blocks release packaging
The retail post-build copy puts steam_api64.dll into both release candidates. The package validator rejects that DLL, so neither candidate can become a release archive.
Learn more
Both x64 retail configurations write to the same distribution directory, and both post-build steps stage Steam DLLs there. The release candidate workflow collects every DLL in that directory. The package validator rejects the Steam runtime by name. This failure occurs even when the Steam dependencies were supplied and both executables built successfully.
Example: Build a client and server with the new runtime installed. Candidate collection includes steam_api64.dll for each role, and packaging stops at the prohibited-content check.
Recommended fix: Keep the Steam-enabled test build and its runtime in a separate output and packaging flow, or explicitly update the release runtime policy and packaging together. Validate both roles from clean candidate directories.
Was this helpful? React with 👍 or 👎 to provide feedback.
| ISteamGameServer *steamServer = SteamGameServer(); | ||
| RString expectedSteamId = Format("%I64u", (unsigned __int64)_steamId); | ||
| if (!_steamId || strcmpi(identity.id, expectedSteamId) != 0 || | ||
| _steamSessionTicket.Size() == 0 || !steamServer || !steamServer->BLoggedOn()) | ||
| { | ||
| _started = false; | ||
| _server->KickOff(_dpid, KOROther, "Steam identity or authentication unavailable"); | ||
| return; |
There was a problem hiding this comment.
🔴 Steam authentication breaks LAN hosting
When a player hosts a LAN game, SteamValidation::Start rejects login even with a valid Steam ticket. Only CreateDedicatedServer starts the Steam game-server session required by validation.
Learn more
The multiplayer menu's host flow creates a native listen server. Client Steam initialization does not start a Steam game server. The login handler starts Steam validation for that listen server anyway, and validation requires a logged-on game server.
Example: Start Steam, host a LAN session from the game, and connect with another Steam-equipped client. A ticket from the joining client cannot satisfy the missing server-side Steam session.
Recommended fix: Match the authentication policy to the session type. Keep native LAN sessions on their supported login path, or initialize and pump a Steam game-server session for listen servers before accepting Steam-authenticated logins.
Was this helpful? React with 👍 or 👎 to provide feedback.
| #if _ENABLE_STEAM_IDENTITY && defined(_WIN64) | ||
| if (SteamUser()) | ||
| { | ||
| identity._steamID = SteamUser()->GetSteamID().ConvertToUint64(); |
There was a problem hiding this comment.
🔴 Missing Steam DLL crashes multiplayer
Without the Steam DLL, NetworkClient::OnMessage still calls SteamUser during login after InitSteam fails. SteamOnlineServerStart likewise calls Steam during dedicated startup without checking the DLL. Both calls raise a delay-load exception instead of reaching the native fallback.
Learn more
The Steam imports are delay-loaded, so starting the process does not prove the DLL is available. InitSteam checks the DLL and returns false on failure, but client login still calls a Steam import. SteamOnlineServerStart calls a Steam import before it can handle an initialization failure.
Example: Launch the client without the Steam DLL and join by IP. Startup logs that native multiplayer is unchanged, but the login handler attempts to resolve the missing DLL. Starting the dedicated executable without the DLL hits the same failure during server creation.
Recommended fix: Gate client ticket creation on successful Steam initialization and guard dedicated startup and authentication before any Steam import or callback registration. Test client and server with an absent runtime as well as an installed but unavailable Steam service.
Was this helpful? React with 👍 or 👎 to provide feedback.
| #if _ENABLE_STEAM_IDENTITY && defined(_WIN64) | ||
| TRANSF(steamID) | ||
| TRANSF(steamSessionTicket) |
There was a problem hiding this comment.
| void SteamValidation::OnValidateAuthTicketResponse(ValidateAuthTicketResponse_t *response) | ||
| { | ||
| if (!_authPending || !response || response->m_SteamID.ConvertToUint64() != _steamId) return; |
There was a problem hiding this comment.
| if (ask._person && ask._item && | ||
| (ask._person->FindItem(ask._item) || ask._item->IsInLandscape())) |
There was a problem hiding this comment.
Source-only sync of the local Personed-Game tree.
No build artifacts, PBOs, DLLs or backups are included.
Note: the branch is based on 50fa2a6; main has advanced since then, so a rebase may be needed.