I’ve created an OnlineGameSession class, and I can successfully access IOnlineSubsystem and IOnlineSession to create, search for, and join Steam sessions. However, I cannot access any of the IOnlineFriends functions.
IOnlineSubsystem* OnlineSub = IOnlineSubsystem::Get();
if (OnlineSub)
{
IOnlineFriendsPtr Friends = OnlineSub->GetFriendsInterface();
if (Friends.IsValid())
{
Friends->AnyIOnlineFriendsFunction(); //<-- This line throws an error
}
}
I can create an IOnlineFriendsPtr pointer, and call IsValid(), but I cannot call any actual functions on it (throws ‘undefined type’ error). IOnlineFriends seems to be set up the same way as IOnlineSession (which I have no issues using), so I really don’t know what the issue is.