Hey,
I’m digging through the (not-so-informative) documentation for the OnlineSubsystem and I’m really just looking for “simple” LAN-examples (I don’t even need fancy Matchmaking and that kind of stuff), yet it is really hard to try stuff as all the interfaces require a ton of other implemented stuff and it’s just really frustrating at the moment to get networking-related-functionality to work, so if somebody has any advice on how to get that simple stuff going, I’d be really thankful!
I did manage to “host” a session with the following code:
IOnlineSubsystem* OnlineSub = IOnlineSubsystem::Get();
if (OnlineSub)
{
FOnlineSessionSettings settings;
settings.bIsLANMatch = true;
settings.bAllowJoinInProgress = true;
IOnlineSessionPtr Sessions = OnlineSub->GetSessionInterface();
if (Sessions.IsValid())
{
// UMyGameSessionSettings settings;
bool bSuccessful = Sessions->CreateSession(0, FName("NewSession"), settings);
}
}
Joining that session is no working at all though
Thanks in advance
PS: I did look in the ShooterGame-example, but the implemented functionality in there is somehwat overwhelming (as it does way more than what is needed for simple understanding)