Skip to content

Sync source: Steamworks, movement/prediction, UI and network fixes - #10

Merged
Personed merged 4 commits into
Personed:mainfrom
Arthurnashh:sourcedayz/source-sync-20261123
Nov 24, 2026
Merged

Personed merged 4 commits into
Personed:mainfrom
Arthurnashh:sourcedayz/source-sync-20261123

Conversation

@Arthurnashh

@Arthurnashh Arthurnashh commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Source-only sync of the local Personed-Game tree.

  • Steamworks client/server integration and test AppID config
  • Local movement, action map, stance and player prediction updates
  • Network queue/server, inventory, zombie, vehicle and UI updates
  • DX9 x64 project/runtime configuration

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.


Devin Review

Arthurnashh and others added 4 commits November 23, 2026 19:18
- 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
@Personed
Personed merged commit a86d3c9 into Personed:main Nov 24, 2026
1 of 3 checks passed

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 6 potential issues.

5 flags not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)

Devin Review

Comment thread lib/lib.vcxproj
<Message />
<Command />
<Message>Copy Steamworks server runtime (AppID 480)</Message>
<Command>copy /Y &quot;$(SolutionDir)extern\Steamworks\bin\steam_api64.dll&quot; &quot;$(OutDir)steam_api64_real.dll&quot; &amp;&amp; copy /Y &quot;$(SolutionDir)extern\Steamworks\bin\steam_api64_compat.dll&quot; &quot;$(OutDir)steam_api64.dll&quot; &amp;&amp; copy /Y &quot;$(SolutionDir)extern\Steamworks\steam_appid.test.txt&quot; &quot;$(OutDir)steam_appid.txt&quot;</Command>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 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.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment thread lib/Network/network.cpp
Comment on lines +2209 to +2216
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;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 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.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines +3252 to +3255
#if _ENABLE_STEAM_IDENTITY && defined(_WIN64)
if (SteamUser())
{
identity._steamID = SteamUser()->GetSteamID().ConvertToUint64();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔴 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.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment thread lib/Network/network.cpp
Comment on lines +2104 to +2106
#if _ENABLE_STEAM_IDENTITY && defined(_WIN64)
TRANSF(steamID)
TRANSF(steamSessionTicket)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟥 Steam tickets exposed to peers

When a player logs in, PlayerIdentity::TransferMsg includes the Steam ticket in identity updates sent to other players. Those peers receive the credential intended for the server.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment thread lib/Network/network.cpp
Comment on lines +2242 to +2244
void SteamValidation::OnValidateAuthTicketResponse(ValidateAuthTicketResponse_t *response)
{
if (!_authPending || !response || response->m_SteamID.ConvertToUint64() != _steamId) return;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟥 Revoked Steam sessions stay connected

After initial validation, OnValidateAuthTicketResponse ignores later failure callbacks for the same Steam session. A player can remain connected after Steam invalidates their ticket.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines +4555 to +4556
if (ask._person && ask._item &&
(ask._person->FindItem(ask._item) || ask._item->IsInLandscape()))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟥 Ground pickups bypass proximity checks

The take-to-hands handler accepts any ground item referenced by a connected player. The server forwards these requests without checking distance, so players can take items outside their pickup range.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

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.

2 participants