Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Steam Session - PreSence - No Current Players

Hello, Im using for my dedicated server an c++ setup to create a non-presence session. This session can be found in the client but also on the master server. When I join on the server .... The current players doesn't get updated.

So here is the c++ where the server gets created:

 void AMyGameSession::RegisterServer()
     IOnlineSubsystem* const OnlineSub = IOnlineSubsystem::Get();
     if (OnlineSub)
         IOnlineSessionPtr Sessions = OnlineSub->GetSessionInterface();
         if (Sessions.IsValid())
             ASetupGamemode* MyGM = Cast<ASetupGamemode>(GetWorld()->GetAuthGameMode());
             if (MyGM)
                 UE_LOG(LogTemp, Warning, TEXT("Creating Session."));
                 Sessions->GameServerName = FString("The Lost Island - Dedicated Server");
                 HostSettings = MakeShareable(new FOnlineSessionSettings());
                 HostSettings->Set(SETTING_GAMEMODE, FString("Survival"), EOnlineDataAdvertisementType::ViaOnlineService);
                 HostSettings->Set(SETTING_MAPNAME, FString("MP_Game"), EOnlineDataAdvertisementType::ViaOnlineService);
                 HostSettings->bAntiCheatProtected = true;
                 HostSettings->bUsesPresence = false;
                 HostSettings->bIsLANMatch = false;
                 HostSettings->bIsDedicated = true;
                 HostSettings->bShouldAdvertise = true;
                 HostSettings->bAllowJoinInProgress = true;
                 HostSettings->NumPublicConnections = 12;
                 HostSettings->bUsesStats = true;
                 HostSettings->bAllowInvites = true;
                 Sessions->CreateSession(0, GameSessionName, *HostSettings);

Cheers, Bander

Product Version: UE 4.11
more ▼

asked Apr 16 '16 at 11:43 AM in C++ Programming

avatar image

71 4 9 12

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

CLBander, its long time has gone since you asked this question. I'm wondering if you proceed with it since i have same problem. Add me in Epic Games Launcher so we can conversate about this.

more ▼

answered Mar 22 '17 at 06:27 AM

avatar image

100 7 11 19

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question