From 71a2c8a1e95246b1878c8ecd246c01be15283810 Mon Sep 17 00:00:00 2001 From: neckfire Date: Tue, 14 Jul 2026 18:41:20 +0200 Subject: [PATCH] feat(deploy): optional dedicated-server travel via GAMESERVER_ADDRESS When GAMESERVER_ADDRESS ("host:port") is set, EnterMatchmaking returns that server (SingleplayerStation=false) and EnterMatchmakingMatch's deploy signal carries its address, so the client travels to the real game server instead of the client-hosted station. Unset = unchanged (normal preprod). Lets a 2nd preprod run the same :preprod image and differ only by this env var (dedicated-server test bench). Co-Authored-By: Claude Opus 4.8 --- .../CloudScript/Functions/EnterMatchmaking.cs | 18 ++++++++++++++++++ .../Functions/EnterMatchmakingMatch.cs | 5 ++++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/src/Prospect.Server.Api/Services/CloudScript/Functions/EnterMatchmaking.cs b/src/Prospect.Server.Api/Services/CloudScript/Functions/EnterMatchmaking.cs index 95cd0ae..2924dec 100644 --- a/src/Prospect.Server.Api/Services/CloudScript/Functions/EnterMatchmaking.cs +++ b/src/Prospect.Server.Api/Services/CloudScript/Functions/EnterMatchmaking.cs @@ -25,6 +25,24 @@ public class EnterMatchmakingFunction : ICloudScriptFunction 1 && int.TryParse(parts[1], out var gsPort) ? gsPort : 7777, + MaintenanceMode = false, + }; + } + return new FYEnterMatchAzureFunctionResult { Success = true, diff --git a/src/Prospect.Server.Api/Services/CloudScript/Functions/EnterMatchmakingMatch.cs b/src/Prospect.Server.Api/Services/CloudScript/Functions/EnterMatchmakingMatch.cs index 49f1016..5bf6316 100644 --- a/src/Prospect.Server.Api/Services/CloudScript/Functions/EnterMatchmakingMatch.cs +++ b/src/Prospect.Server.Api/Services/CloudScript/Functions/EnterMatchmakingMatch.cs @@ -100,9 +100,12 @@ public class EnterMatchmakingMatchFunction : ICloudScriptFunction