Skip to content

Commit

Permalink
Merge pull request #17 from 4Players/ue-networking-5.4
Browse files Browse the repository at this point in the history
Ue networking 5.4
  • Loading branch information
SFuhrmann authored Nov 7, 2024
2 parents 8da32a2 + 4921906 commit 06bbd83
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 deletions.
Binary file modified Content/Blueprints/Game/GameInstance_TD.uasset
Binary file not shown.
Binary file modified Content/Blueprints/Widgets/IngameHud.uasset
Binary file not shown.
Binary file modified Content/Blueprints/Widgets/LobbyMenu.uasset
Binary file not shown.
6 changes: 3 additions & 3 deletions Source/OdinUnrealSample/Private/EosPlayerController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ void AEosPlayerController::Login()
{
UE_LOG(LogTemp, Log, TEXT("Already logged in. Finding sessions."));
FindSessions();
return;
}

/* This binds a delegate so we can run our function when the callback completes. 0 represents the player number.
Expand Down Expand Up @@ -106,7 +107,7 @@ void AEosPlayerController::Logout()
Session->DestroySession(LobbyName);
}

void AEosPlayerController::HandleLogoutCompleted(FName SessionNameD, bool bWasSuccessful)
void AEosPlayerController::HandleLogoutCompleted(FName SessionName, bool bWasSuccessful)
{
}

Expand Down Expand Up @@ -293,7 +294,6 @@ void AEosPlayerController::HandleFindSessionsCompleted(bool bWasSuccessful, TSha
if (Session->GetResolvedConnectString(SessionInSearchResult, NAME_GamePort, ConnectString))
{
SessionToJoin = &SessionInSearchResult;
SessionNameT = FName(SessionInSearchResult.GetSessionIdStr());
}

// For the tutorial we will join the first session found automatically. Usually you would loop through all the sessions and determine which one is best to join.
Expand Down Expand Up @@ -328,7 +328,7 @@ void AEosPlayerController::JoinSession()
&ThisClass::HandleJoinSessionCompleted));

UE_LOG(LogTemp, Log, TEXT("Joining session."));
if (!Session->JoinSession(0, "SessionName", *SessionToJoin))
if (!Session->JoinSession(0, LobbyName, *SessionToJoin))
{
UE_LOG(LogTemp, Warning, TEXT("Join session failed"));
}
Expand Down
2 changes: 0 additions & 2 deletions Source/OdinUnrealSample/Private/EosPlayerController.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,4 @@ class AEosPlayerController : public APlayerController
FDelegateHandle JoinSessionDelegateHandle;

FDelegateHandle DestroySessionDelegateHandle;

FName SessionNameT;
};

0 comments on commit 06bbd83

Please sign in to comment.