This is still a very good tutorial, albeit incomplete. One thing though. In PingBeaconHost.cpp these function stubs are wrong. Don’t copy them or you will be in for a world of pain!
void APingBeaconHostObject::DisconnectClient(AOnlineBeaconClient* ClientActor) {}
void APingBeaconHostObject::NotifyClientDisconnected(AOnlineBeaconClient* LeavingClientActor) {}
void APingBeaconHostObject::Unregister() {}
Should be changed to call the supers:
void APingBeaconHostObject::DisconnectClient(AOnlineBeaconClient* ClientActor)
{
Super::DisconnectClient(ClientActor);
}
void APingBeaconHostObject::NotifyClientDisconnected(AOnlineBeaconClient* LeavingClientActor)
{
Super::NotifyClientDisconnected(LeavingClientActor);
}
void APingBeaconHostObject::Unregister()
{
Super::Unregister();
}
Otherwise you’ll be getting fatal errors when a client connects to the beacon hosts twice!