Forum Discussion
m_milazzo
8 years agoProtege
Cannot join an Oculus session: "Cannot map local player to unique net ID"
I'm trying to create and join an Oculus session. I already succeeded in creating a session by using the Null and the Steam subsystems, but the Oculus' one seems to be more complex. Rather than usin...
JPonczek
8 years agoExplorer
ginopeloso said:
aussieburgerVR said:
ginopeloso said:
I was able to join the matchmaking session by assigning the oculus id as UniqueNetId to the PlayerController (the title's warning message has disappeared when calling the Unreal's JoinSession function).
How was this done exactly? Would love to see your blueprint for that :)
Would be a great help if blueprints also supported voice out of the box! hint for @brian_jew for a commonly required feature ;)
You should write it in C++, assign the net id by code and expose as Blueprint function (a UClass or, better, a BlueprintFunctionLibrary):void UMyClass::SetPlayerNetId(APlayerController* PlayerController, FString NetId) {
FUniqueNetId* UniqueNetId = new FUniqueNetIdString(NetId);
PlayerController->PlayerState->SetUniqueId(MakeShareable(UniqueNetId));
}
I can't seem to find FUniqueNetIdString for some reason. The other classes are available, such as UniqueNetIdWrapper and UniqueNetIdRepl, but those don't seem to solve the problem of creating a UniqueNetId from a simple FString. Without it, I am unable to make a UniqueNetId that I can plug into the MakeShareable.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device