Welcome to the Oculus Developer Forums!

Your participation on the forum is subject to the Oculus Code of Conduct.

In general, please be respectful and kind. If you violate the Oculus Code of Conduct, your access to the developer forums may be revoked at the discretion of Oculus staff.

Entitlement Failed

HiddendawnHiddendawn Posts: 7
NerveGear
edited February 11 in Unreal Development
Hi all,

Working on an oculus go game,
i'm stuck for about 2 days with the "verify entitlement" node.
I tried to find answers in forum, but none seemed to work for me /

I started a brand new project in Unreal with C++ activated.


Here is the log message from Unreal when i try to package it to astc format

I created an organisation and an app in my oculus dashboard. (but didn't load the compiled app to the dashboard)

My Unreal config :
Modify of DefaultEngine.ini :
(My AppID is the one given by oculus.)
Modify of AndroidEngine :

I tried to put NativePlatformService:Oculus on AndroidEngineBase without any success.

I changed my build.cs file to :

And added Lvl blueprints to my map :

I tried a lot of different configurations, but all of them failed the entitlement test.

I'm not sure how to write correctly the Android Package Name :
on the oculus dashboard i created an organisation : "galomstudios" and an app : "Oculus_Try"
is the android package name : "com.oculus.galomstudios.Oculus_Try" correct?

Thank you for your reply, if you need more information, i will be happy to provide them.

Answers

  • IanSharar22IanSharar22 Posts: 22 Oculus Start Member
    edited February 11
    I had a similar experience and fixed it, it ended up being my default engine INI file. I don't remember which, but I either had to switch out "OculusAppId" with "RiftAppId", or vice versa. then it finally worked. I think if you're making it for the oculus go, there's even another name. EDIT: i think its this: GearVRAppId=<mobile app id here>
  • HiddendawnHiddendawn Posts: 7
    NerveGear
    Thank you for your quick answer,
    The first warning disappear when i replace OculusAppId with RiftAppId, but it doesnt fix the other lines, i still got the : "Failure code -5" //

  • JacksonGordonJacksonGordon Posts: 138
    Art3mis
    I'm in Unity, but I had an issue with entitlement check.  It doesn't handle the error for you by default, so you have to go into the entitlement check script to handle the error yourself.  Not sure if that is the same in Unreal as it was in Unity, but I just added an application.Quit() on the switch case where it failed, and that worked.  For testing not ideal but if it was for the store review you have to handle that error yourself.
  • HiddendawnHiddendawn Posts: 7
    NerveGear
    Thank you for your reply,
    I spend a couple of hours looking into the code without finding any viable solution.
    Is there someone who knows what "failure code -5" means??
  • IanSharar22IanSharar22 Posts: 22 Oculus Start Member
    edited February 12
    Thank you for your quick answer,
    The first warning disappear when i replace OculusAppId with RiftAppId, but it doesnt fix the other lines, i still got the : "Failure code -5" //

    Have you tried replacing OculusAppId with GearVRAppId instead?  I think thats the correct one for Go apps.
    I only ask because of this line "The first step in integrating the SDK is using your App Id to initialize the SDK "
    It seems the app ID is really important to make it initialize, gonna wanna get that right!


  • NeontopNeontop Posts: 218 Oculus Start Member
    edited February 12
    Hi , I'm not working on Android but for me to resolve a problem in a past with the Platform SDK , I found that putting both OculuAppsId and RiftAppId was a solution.

  • HiddendawnHiddendawn Posts: 7
    NerveGear
    edited February 12


  • HiddendawnHiddendawn Posts: 7
    NerveGear
    Hi,

    Yes i tried GearVRAppID too, but with no better result.

    JacksonGordon  :  i found the code to change in this topic :
    But with no improvement//

    Neontop : i don't have the first warning, (but same when i tried with only RiftAppId) ,
    LogOnline: Display: Oculus: FOnlineSubsystemOculus::InitWithWindowsPlatform()
    LogOnline: Warning: Oculus: Failed to initialize the Oculus Platform SDK! Failure code: -5
    LogOnline: Warning: Oculus: Oculus API failed to initialize!
    LogOnlineEntitlement: Warning: Oculus: Oculus platform service not available. Skipping entitlement check.

    The problem is this Failure code -5, not the Id thing.

    I tried the OculusPlatformSample with the same error..




  • NinjaGGNinjaGG Posts: 229 Oculus Staff
    @Hiddendawn Let me reach out to some folks regarding this. In the meantime, do you have the latest version of the Oculus runtime installed?
    If you need immediate help or want additional support/context on an issue you are having with our platform or integrations:

    1. Gather any and all logs, screenshots, and version numbers of relevant software (Oculus SDK, engine, etc.)
    2. Please submit a ticket here (include what you've gathered in step 1).
    3. Tag me @NinjaGaijin once you have done so!
  • HiddendawnHiddendawn Posts: 7
    NerveGear
    Hi NijaGaijin!

    Thanks for having a look on this.

    I tried UE4.20.3 and UE4.21.2 with the same issue, i also reinstalled all the android tools.


  • SkulltullazSkulltullaz Posts: 14
    NerveGear
    Bump. I am also experiencing "Failure Code: -5"
  • HiddendawnHiddendawn Posts: 7
    NerveGear
    The issue is not resolved yet for me.
    Could you post your "output log" ?

  • SkulltullazSkulltullaz Posts: 14
    NerveGear
    I downloaded the Oculus Rift Software and the failure code went away, but now I am getting the warning:
    LogOnlineIdentity: Warning: Oculus: Failed Oculus login. Not currently logged into Oculus.  Make sure Oculus is running and you are entitled to the app.
    This warning was reported here
    https://forums.oculusvr.com/developer/discussion/59099/oculus-entitlement-on-ue4-is-broken-by-recent-oculus-app-update
  • bmoodyP3bmoodyP3 Posts: 28
    Brain Burst
    I am experiencing this with Unity.
Sign In or Register to comment.