#Hosting Works, Joining Does not

51 messages ยท Page 1 of 1 (latest)

brittle dagger
#

Howdy,
I have read the Hosting / Joining Sessions FAQ. I am able to host and travel to the map, though when it comes to joining that it fails.

In short pressing 1 works, pressing 2 displays all the valueble data, though never moves the player. I looked at the git commit and I believe I have the right information present. I have also ensured that the maps are properly added and that everyone is running the same .exe.

#

I would sincerely welcome any additional eyes on this. Thanks in advance.

#

I get this but it never travels.

#

Lecture 14 if that helps.

brittle dagger
#

I do get this from time to time Fatal error: [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\UnrealEngine.cpp] [Line: 15999]
Couldn't spawn player:

0x00007ff7199cda54 MenuSystem.exe!UEngine::LoadMap() []
0x00007ff71996be94 MenuSystem.exe!UEngine::Browse() []
0x00007ff719a01846 MenuSystem.exe!UEngine::TickWorldTravel() []
0x00007ff718c2ea3d MenuSystem.exe!UGameEngine::Tick() []
0x00007ff719e4c0c5 MenuSystem.exe!FEngineLoop::Tick() []
0x00007ff719e5c9ac MenuSystem.exe!GuardedMain() []
0x00007ff719e5ca7a MenuSystem.exe!GuardedMainWrapper() []
0x00007ff719e5f772 MenuSystem.exe!LaunchWindowsStartup() []
0x00007ff719e6c684 MenuSystem.exe!WinMain() []
0x00007ff71e79a1aa MenuSystem.exe!__scrt_common_main_seh() [D:\a_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
0x00007ffb69f9259d KERNEL32.DLL!UnknownFunction []

#

I added an additional player start did not work, and I disabled windows firewall on both machines which also did not work. I am going to continue with the course. hopefuly this resolves. I also changed regions on both machines to a new one, did not resolve.

#

I did notice that sometimes, I would obtain a failure on connect string

void AMenuSystemCharacter::OnJoinSessionComplete(FName SessionName, EOnJoinSessionCompleteResult::Type Result)
{
    if (!OnlineSessionInterface.IsValid()) { return; }

    FString(Address);
    if(OnlineSessionInterface->GetResolvedConnectString(NAME_GameSession, Address))
    {
        if (GEngine)
        {
            GEngine->AddOnScreenDebugMessage(-1,15.f,FColor::Yellow,FString::Printf(TEXT("Connect String: %s"), *Address));
        }
    }
    else
    {
        if (GEngine)
        {
            GEngine->AddOnScreenDebugMessage(-1,15.f,FColor::Red,FString::Printf(TEXT("FAILED TO OBTAIN CONNECT STRING")));
        }
    }

    APlayerController* PlayerController = GetGameInstance()->GetFirstLocalPlayerController();
    if (PlayerController)
    {
        if (GEngine)
        {
            GEngine->AddOnScreenDebugMessage(-1,15.f,FColor::Yellow,FString::Printf(TEXT("PLAYER CONTROLLER FOUND ATTEMPTING TRAVEL")));
        }
        PlayerController->ClientTravel(Address, TRAVEL_Absolute);
    }
}
vital coral
#

#๐Ÿ”ซ๏ฝœmultiplayer-shooter message

#

If you are using 5.5 this is likely the fix.

#

[Unimportand rant] It appears epic's test no longer includes steam... as they removed SEARCH_PRESENCE but didn't give instructions on what to replace it with and just noted the EOS no longer supports it.

#

but their latest update appears to flip bUseLobbiesIfAvailable somewhere..

brittle dagger
brittle dagger
vital coral
#

You need to do it in void UMultiplayerSessionsSubsystem::JoinSession(const FOnlineSessionSearchResult& SessionResult)
Result.Session.SessionSettings.bUseLobbiesIfAvailable = true;

#

#๐Ÿ”ซ๏ฝœmultiplayer-shooter message

brittle dagger
vital coral
#

Yeah it should be the plugin code

brittle dagger
#

right, I was having issues with the character. I have moved onto the plugin, hopefully I will stumble to needing that in a bit ๐Ÿ˜„

vital coral
#

Oh, I just read that you were having problems joining your hosted lobby

#

Looking through the images it appears to be the same as the plugin code anyhow

vital coral
brittle dagger
urban linden
#

I also had a problem joining sessions at around lesson 11 - 14. I only had the problem joining Steam sessions though. Joining LAN sessions worked for me. I'm using UE 5.5. What version are you using?

brittle dagger
urban linden
brittle dagger
#

Cant wait till I get there ๐Ÿ˜„

#

Maybe tonight / tomorrow if I am lucky

urban linden
vital coral
#

Result.Session.SessionSettings.bUseLobbiesIfAvailable = true;

brittle dagger
#

I think I got here now ๐Ÿ˜„

#

added this badboy

#

f yeah!

vital coral
vital coral
#

Result.Session.SessionSettings.bUseLobbiesIfAvailable = true;
Since it's probably a bug that they will fix

brittle dagger
#
void UMenu::OnFindSessions(const TArray<FOnlineSessionSearchResult>& SessionResults, bool bWasSuccessful)
{
    if (MultiplayerSessionsSubsystem == nullptr) { return; }
    
    for (auto Result : SessionResults)
    {
        FString SettingsValue;
        Result.Session.SessionSettings.Get(FName("MatchType"),SettingsValue);
        if (SettingsValue == MatchType)
        {
            Result.Session.SessionSettings.bUseLobbiesIfAvailable = true; // This line is a bug fix
            MultiplayerSessionsSubsystem->JoinSession(Result);
            return;
        }
    }

    if (!bWasSuccessful || SessionResults.Num() == 0)
    {
        JoinButton->SetIsEnabled(true);
    }
}
#

Thats how i have it

vital coral
#

I mean, something simple like:
// TODO: test & remove after update

#

Ahh

#

Yeah, you have it ๐Ÿ˜„

brittle dagger
#

Ill add a TODO: as well, since Rider catches those

#

man I love Obsidian ๐Ÿ˜„

stark cobalt
#

@hushed elm

hushed elm
gaunt hearth
#

Hello!!! Same problem here. The host is travelling to the lobby level, but when the other player try to join session, he is respawned in the same level.