Download

How can I get lobby id Im hosting using Steam OSS?

I want to log it out on screen for debug.

Are you asking about the Steam AppId ? If so you must get that from steam. Contact steam ask for the appid for your game.



IOnlineSubsystem* OnlineSubsystem = IOnlineSubsystem::Get();
if (OnlineSubsystem)
{
     IOnlineSessionPtr SessionInterface = OnlineSubsystem->GetSessionInterface();
     if (SessionInterface.IsValid())
     {
          FNamedOnlineSession* NamedSession = SessionInterface->GetNamedSession(YOUR_SESSION_NAME);
          if (NamedSession)
          {
               FString SessionId = NamedSession->GetSessionIdStr();
          }
     }
}