From 5028aade9e04da6b71ce70db9162b441e391bb1c Mon Sep 17 00:00:00 2001 From: Detanup01 <91248446+Detanup01@users.noreply.github.com> Date: Thu, 25 Jul 2024 15:14:09 +0200 Subject: [PATCH] Fixing Steam Datagram Error. --- CHANGELOG.md | 4 ++++ dll/dll/steam_networking_utils.h | 12 +++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 726752ad..ac7c46a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ + +* **[Detanup01]** Fix GetISteamGenericInterface when asking for Interface: STEAMTIMELINE_INTERFACE_V001 +* **[KGHTW]** Fixing Steam Datagram Error. + ## 2024/7/7 * **[Detanup01]** implement SDK v1.60, also thanks to **[universal963]** for the help in testing some functions diff --git a/dll/dll/steam_networking_utils.h b/dll/dll/steam_networking_utils.h index ca4f0e35..1e5f997c 100644 --- a/dll/dll/steam_networking_utils.h +++ b/dll/dll/steam_networking_utils.h @@ -35,7 +35,17 @@ public ISteamNetworkingUtils std::chrono::time_point initialized_time = std::chrono::steady_clock::now(); FSteamNetworkingSocketsDebugOutput debug_function{}; bool relay_initialized = false; - bool init_relay = false; + bool init_relay = true; // Initializing relay immediately when we ask for it. Fixing Elden Ring SeamlessCoop + // NOTE from Detanup01: They should call InitializeRelayAccess BTW. Whoever write that mod cannot read valve docs. + /* + Valve docs: + If you know that you are going to be using the relay network + (for example, because you anticipate making P2P connections), + call this to initialize the relay network. + If you do not call this, the initialization will be delayed until + the first time you use a feature that requires access to the relay network, + which will delay that first access. + */ static void free_steam_message_data(SteamNetworkingMessage_t *pMsg); static void delete_steam_message(SteamNetworkingMessage_t *pMsg);