From e576724b630b3b44efe58d02ccc484623cf40eac Mon Sep 17 00:00:00 2001 From: "Joshua (MordenTral) Statzer" Date: Tue, 23 Sep 2025 13:52:32 -0400 Subject: [PATCH 1/4] include is gone --- .../AdvancedSteamSessions/Classes/AdvancedSteamFriendsLibrary.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AdvancedSteamSessions/Source/AdvancedSteamSessions/Classes/AdvancedSteamFriendsLibrary.h b/AdvancedSteamSessions/Source/AdvancedSteamSessions/Classes/AdvancedSteamFriendsLibrary.h index 043dbcd..a0a7b8e 100644 --- a/AdvancedSteamSessions/Source/AdvancedSteamSessions/Classes/AdvancedSteamFriendsLibrary.h +++ b/AdvancedSteamSessions/Source/AdvancedSteamSessions/Classes/AdvancedSteamFriendsLibrary.h @@ -42,7 +42,7 @@ MSVC_PRAGMA(warning(pop)) #endif // USING_CODE_ANALYSIS #include -#include +//#include //#include #pragma pop_macro("ARRAY_COUNT") From 6462cd4c6f8ce81a4e982835dca456797e94f181 Mon Sep 17 00:00:00 2001 From: "Joshua (MordenTral) Statzer" Date: Wed, 24 Sep 2025 14:23:51 -0400 Subject: [PATCH 2/4] added note, trying to get epic to fix --- .../Source/AdvancedSessions/Private/AdvancedFriendsLibrary.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AdvancedSessions/Source/AdvancedSessions/Private/AdvancedFriendsLibrary.cpp b/AdvancedSessions/Source/AdvancedSessions/Private/AdvancedFriendsLibrary.cpp index 5df1a94..6bb7eac 100644 --- a/AdvancedSessions/Source/AdvancedSessions/Private/AdvancedFriendsLibrary.cpp +++ b/AdvancedSessions/Source/AdvancedSessions/Private/AdvancedFriendsLibrary.cpp @@ -151,7 +151,9 @@ void UAdvancedFriendsLibrary::GetFriend(APlayerController *PlayerController, con Friend.PresenceInfo.bIsPlaying = pres.bIsPlaying; Friend.PresenceInfo.bIsPlayingThisGame = pres.bIsPlayingThisGame; Friend.PresenceInfo.PresenceState = ((EBPOnlinePresenceState)((int32)pres.Status.State)); + // #TODO: Check back in on this in shipping, epic is missing the UTF8_TO_TCHAR call on converting this and its making an invalid string + // OnlineFriendPresenceInterfaceSteam has the issue //Friend.PresenceInfo.StatusString = pres.Status.StatusStr; } } @@ -266,6 +268,7 @@ void UAdvancedFriendsLibrary::GetStoredFriendsList(APlayerController *PlayerCont BPF.PresenceInfo.bIsPlaying = pres.bIsPlaying; BPF.PresenceInfo.PresenceState = ((EBPOnlinePresenceState)((int32)pres.Status.State)); // #TODO: Check back in on this in shipping, epic is missing the UTF8_TO_TCHAR call on converting this and its making an invalid string + // OnlineFriendPresenceInterfaceSteam has the issue //BPF.PresenceInfo.StatusString = pres.Status.StatusStr; BPF.PresenceInfo.bIsJoinable = pres.bIsJoinable; BPF.PresenceInfo.bIsPlayingThisGame = pres.bIsPlayingThisGame; From 8315e35a8f255de823abe00e05df16273e68b872 Mon Sep 17 00:00:00 2001 From: "Joshua (MordenTral) Statzer" Date: Fri, 26 Sep 2025 08:36:19 -0400 Subject: [PATCH 3/4] Adding function to get the net id of a session owner --- .../Classes/AdvancedSessionsLibrary.h | 4 ++++ .../Private/AdvancedSessionsLibrary.cpp | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/AdvancedSessions/Source/AdvancedSessions/Classes/AdvancedSessionsLibrary.h b/AdvancedSessions/Source/AdvancedSessions/Classes/AdvancedSessionsLibrary.h index 78284e8..d88e659 100644 --- a/AdvancedSessions/Source/AdvancedSessions/Classes/AdvancedSessionsLibrary.h +++ b/AdvancedSessions/Source/AdvancedSessions/Classes/AdvancedSessionsLibrary.h @@ -160,6 +160,10 @@ public: UFUNCTION(BlueprintPure, Category = "Online|AdvancedSessions|PlayerInfo|PlayerID") static void GetUniqueNetID(APlayerController *PlayerController, FBPUniqueNetId &UniqueNetId); + // Get the unique net id of a network player attached to the given controller + UFUNCTION(BlueprintPure, Category = "Online|AdvancedSessions|PlayerInfo|PlayerID") + static void GetUniqueNetIdOfSessionOwner(FBlueprintSessionResult SessionResult, FBPUniqueNetId& UniqueNetId); + // Get the unique net id of a network player who is assigned the the given player state UFUNCTION(BlueprintPure, Category = "Online|AdvancedSessions|PlayerInfo|PlayerID") static void GetUniqueNetIDFromPlayerState(APlayerState *PlayerState, FBPUniqueNetId &UniqueNetId); diff --git a/AdvancedSessions/Source/AdvancedSessions/Private/AdvancedSessionsLibrary.cpp b/AdvancedSessions/Source/AdvancedSessions/Private/AdvancedSessionsLibrary.cpp index 6e007f7..689e28f 100644 --- a/AdvancedSessions/Source/AdvancedSessions/Private/AdvancedSessionsLibrary.cpp +++ b/AdvancedSessions/Source/AdvancedSessions/Private/AdvancedSessionsLibrary.cpp @@ -451,6 +451,17 @@ void UAdvancedSessionsLibrary::GetUniqueNetID(APlayerController *PlayerControlle } } +void UAdvancedSessionsLibrary::GetUniqueNetIdOfSessionOwner(FBlueprintSessionResult SessionResult, FBPUniqueNetId& UniqueNetId) +{ + FBPUniqueNetId ReturnID; + if (SessionResult.OnlineResult.IsValid()) + { + ReturnID.SetUniqueNetId(SessionResult.OnlineResult.Session.OwningUserId); + } + + UniqueNetId = ReturnID; +} + void UAdvancedSessionsLibrary::GetUniqueNetIDFromPlayerState(APlayerState *PlayerState, FBPUniqueNetId &UniqueNetId) { if (!PlayerState) From 6f8760f96ee5eb856aead350ef7be144348312ee Mon Sep 17 00:00:00 2001 From: "Joshua (MordenTral) Statzer" Date: Wed, 12 Nov 2025 14:51:15 -0500 Subject: [PATCH 4/4] Update versions --- AdvancedSessions/AdvancedSessions.uplugin | 4 ++-- AdvancedSteamSessions/AdvancedSteamSessions.uplugin | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/AdvancedSessions/AdvancedSessions.uplugin b/AdvancedSessions/AdvancedSessions.uplugin index a970a4a..6188c09 100644 --- a/AdvancedSessions/AdvancedSessions.uplugin +++ b/AdvancedSessions/AdvancedSessions.uplugin @@ -1,8 +1,8 @@ { "FileVersion": 3, "FriendlyName": "Advanced Sessions", - "Version": 5.5, - "VersionName": "5.5", + "Version": 5.7, + "VersionName": "5.7", "Description": "Adds new blueprint functions to handle more advanced session operations.", "Category": "Advanced Sessions Plugin", "CreatedBy": "Joshua Statzer", diff --git a/AdvancedSteamSessions/AdvancedSteamSessions.uplugin b/AdvancedSteamSessions/AdvancedSteamSessions.uplugin index 56c6733..71adae0 100644 --- a/AdvancedSteamSessions/AdvancedSteamSessions.uplugin +++ b/AdvancedSteamSessions/AdvancedSteamSessions.uplugin @@ -2,8 +2,8 @@ "FileVersion" : 3, "FriendlyName" : "Advanced Steam Sessions", - "Version" : 5.4, - "VersionName": "5.4", + "Version" : 5.7, + "VersionName": "5.7", "Description" : "Adds new blueprint functions to handle more advanced session operations in Steam. REQUIRES ADVANCED SESSIONS", "Category" : "Advanced Sessions Plugin", "CreatedBy" : "Joshua Statzer",