This doesn’t work for me, as I get negative player count numbers (such as -17). The code I used is the same, except that being already in GameMode I do not go through world:
void AMST_GameMode::PostLogin(APlayerController* NewPlayer)
{
Super::PostLogin(NewPlayer);
if (GameSession)
{
FJoinabilitySettings OutSettings;
GameSession->GetSessionJoinability(GameSessionName, OutSettings);
GameSession->UpdateSessionJoinability(GameSessionName,
OutSettings.bPublicSearchable, OutSettings.bAllowInvites,
OutSettings.bJoinViaPresence, OutSettings.bJoinViaPresenceFriendsOnly);
}
}
Any ideas?