From 48742498a71de743a65e20399c9aa90a9126857f Mon Sep 17 00:00:00 2001 From: Simon <63975668+Simyon264@users.noreply.github.com> Date: Thu, 19 Dec 2024 04:26:57 +0100 Subject: [PATCH] Supply engine version CVar from launcher --- SS14.Launcher/Models/Connector.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SS14.Launcher/Models/Connector.cs b/SS14.Launcher/Models/Connector.cs index f2664556..bd085801 100644 --- a/SS14.Launcher/Models/Connector.cs +++ b/SS14.Launcher/Models/Connector.cs @@ -373,7 +373,6 @@ private async Task LaunchClientWrap( // Pass build info to client. This is not critical to the client's function, // it was added to aid client replay recording. - // No point reporting engine version: obviously the client already knows that. BuildCVar("download_url", serverBuildInformation?.DownloadUrl); BuildCVar("manifest_url", serverBuildInformation?.ManifestUrl); BuildCVar("manifest_download_url", serverBuildInformation?.ManifestDownloadUrl); @@ -381,6 +380,9 @@ private async Task LaunchClientWrap( BuildCVar("fork_id", serverBuildInformation?.ForkId); BuildCVar("hash", serverBuildInformation?.Hash); BuildCVar("manifest_hash", serverBuildInformation?.ManifestHash); + // This overrides the clients engine_version cvar which gets used in client replay recordings. + // the only case where serverBuildInformation is running replays, in which case this cvar is not used on the client. + BuildCVar("engine_version", serverBuildInformation?.EngineVersion); void BuildCVar(string name, string? value) {