Our game is developed through UE 4.14.0 github version, and it is a Gear VR project. We are going to get Oculus Identity, but this node in blueprint always crashes our game. We follow the instruction in https://developer3.oculus.com/documentation/game-engines/latest/concepts/unreal-blueprints/ to use Verify Entitlement to verifies the user is authorized to run the application and this works well. But once we want to Get Oculus Identity, the game always crashes. This is the last problem we need to solve before submitting our game, please help!!!
The log is : LogOutputDevice:Warning: Script Stack: MenuPlayer_BP_C.ExecuteUbergraph_MenuPlayer_BP
MenuPlayer_BP_C.InpTchEvt_K2Node_InputTouchEvent_1[link text][1]
So I created a clean project by UE 4.14 Github version, and I drew these nodes in GameInstance Blueprints, and followed the setting up Oculus online platform instruction, and downloaded the app through Oculus Store. The result was, good, the project did not crash, Verify Entitlement works well, and it prints log “Login Oculus Successfully” but I could not still get Oculus Identity, there was no log to show “My oculus ID and name” or “Fail to get Oculus Identity”, here is the screen shot and log file. Also I wonder the correct way to use Get Oculus Identity this function. Do I need write some code in Build.cs file? The instruction in https://developer3.oculus.com/documentation/game-engines/latest/concepts/unreal-blueprints/ just very simple, and can’t help at all.
After doing running more tests I have written up a report for the “Get Oculus Identity” node not working as expected. I have provided a link to the public tracker. Please feel free to use the link provided for future updates. Thank you for your time and information.
Here are some steps that one must complete for oculus identity to work:
In addition to enabling the plugin, you must also:
Set the Oculus online subsystem as
your game’s active online subsystem
Mark the Oculus online subsystem as
“enabled” in the config
Provide a valid Oculus AppID in the
config
Once all of those are enabled, the identity information should be available. You should be able to see if the Oculus OSS has successfully been initialized in the logs of your application when you boot.
That is an oculus api function. It is failing to initialize the oculus service. All I see in oculus documentation is sample code like this:
if (ovr_PlatformInitializeWindows(appID) != ovrPlatformInitialize_Success)
{
// Exit. Initialization failed which means either the oculus service isn’t on the
machine or they’ve hacked their DLL
}
I don’t see a specific enumeration of returns from that function other than ovrPlatformInitialize_Success(aka 0), so perhaps it always returns either 0 or -1 with no other info as to why it failed.
Maybe the phone doesn’t have the oculus api installed?