5 Commits

Author SHA1 Message Date
Joshua (MordenTral) Statzer
68ba1f51ae Adding function to get the net id of a session owner 2025-09-26 08:36:34 -04:00
Joshua
ca9797b112 Added a control bool for the auto travel setup
Added a control bool for the auto travel setup, and exposed two new variables to the Update Session node
2025-08-07 15:03:09 -04:00
Joshua
a6f91c874c fix missing return 2025-07-29 08:29:35 -04:00
mordentral
81d17ad107 fix a bug in the overlays 2025-07-21 15:16:32 -04:00
mordentral
24b39f20e7 Revert "restore presence info, it no longer crashes"
This reverts commit 0decc37599.
2025-07-19 23:58:04 -04:00
4 changed files with 1 additions and 18 deletions

View File

@@ -5,9 +5,6 @@ public class AdvancedSessions : ModuleRules
{
public AdvancedSessions(ReadOnlyTargetRules Target) : base(Target)
{
DefaultBuildSettings = BuildSettingsVersion.Latest;
IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
//bEnforceIWYU = true;

View File

@@ -44,15 +44,10 @@ public:
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = AdvancedVoiceInterface)
bool bEnableTalkingStatusDelegate;
// If true we will auto join a session we have accepted in the overlay.
// This can get in the way of Beacon Sessions, you may want to disable it.
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = AdvancedFriendsInterface)
bool bAutoJoinSessionOnAcceptedUserInviteReceived = false;
// If true we will auto travel to a game session when an invite is received.
// This can get in the way of Beacon Sessions, you may want to disable it.
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = AdvancedFriendsInterface)
bool bAutoTravelOnAcceptedUserInviteReceived = false;
bool bAutoTravelOnAcceptedUserInviteReceived = true;
//virtual void PostLoad() override;
virtual void Shutdown() override;

View File

@@ -22,15 +22,9 @@ UAdvancedFriendsGameInstance::UAdvancedFriendsGameInstance(const FObjectInitiali
void UAdvancedFriendsGameInstance::OnSessionUserInviteAccepted(const bool bWasSuccessful, const int32 ControllerId, FUniqueNetIdPtr UserId, const FOnlineSessionSearchResult& InviteResult)
{
if (!bAutoJoinSessionOnAcceptedUserInviteReceived)
return;
IOnlineSessionPtr SessionInterface = Online::GetSessionInterface(GetWorld());
if (SessionInterface.IsValid())
{
// Eventually call this?, would need another call back to run through
//SessionInterface->DestroySession(NAME_GameSession);
SessionInterface->ClearOnJoinSessionCompleteDelegate_Handle(OnJoinSessionCompleteDelegateHandle);
OnJoinSessionCompleteDelegateHandle = SessionInterface->AddOnJoinSessionCompleteDelegate_Handle(
FOnJoinSessionCompleteDelegate::CreateUObject(this, &UAdvancedFriendsGameInstance::OnJoinSessionComplete));

View File

@@ -5,9 +5,6 @@ public class AdvancedSteamSessions : ModuleRules
{
public AdvancedSteamSessions(ReadOnlyTargetRules Target) : base(Target)
{
DefaultBuildSettings = BuildSettingsVersion.Latest;
IncludeOrderVersion = EngineIncludeOrderVersion.Latest;
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
//bEnforceIWYU = true;