I am using UE 5.2. The new framework Online Services is recommended to use. I followed the documentation, but I am failing in the first step → retrieving Online Services:
First I tried with Steam. It didn’t work. Now I am trying the same with Null
UE::Online::IOnlineServicesPtr OnlineServicesPtr = UE::Online::GetServices(UE::Online::EOnlineServices::Null, NAME_None);
if (!OnlineServicesPtr.IsValid())
{
GEngine->AddOnScreenDebugMessage(
-1,
60.f,
FColor::Yellow,
TEXT("OnlineServices invalid")
);
return;
}
!OnlineServicesPtr.IsValid() is always true.
I’ve added this to DefaultEngine.ini:
[OnlineServices]
DefaultServices=Null
[/Script/Engine.OnlineEngineInterface]
bUseOnlineServicesV2=true
Any ideas about what I’m doing wrong?