How to test DRM?

SOLVED
Highlighted
Venister
Contributor

How to test DRM?

Hello. I just started to implement the integration with Viveport and our game.

 

I tested some codes about statistics, achievements and others. But I couldn't figure how to test DRM for my game.

 

In Unity editor, Api.GetLicense always returns '900001', "License verification failed'.

 

Before I release our game for Viveport, cannot I test my code with Viveport DRM?

 

Vive Staff

Re: How to test DRM?

Hi @Venister

We recently updated our DRM system and I have not been briefed on specifics about the new system so I'm currently a bit out of the loop. We have a developer focused call in a few hours and I'll be sure to mention your issue and get the proper details to lend a hand. Can you verify which engine version and SDK version you're trying to implement? Thanks! 


David R

Technical Specialist - San Francisco, CA; Monday-Friday

Click here to send me a PM

Venister
Contributor

Re: How to test DRM?

Hello, Thanks for your reply, VibrantNebula.

 

I'm currently using Unity 2017.2 f3(64bit) and Viveport SDK 1.7.0.x.(C# version: 1.7.0.2, Native version: 1.7.0.1)

 

My code follows the instructions from your sample code.

 

  • void Awake() -> calls Api.Init(InitStatusHandler, APPID)
  • InitStatusHandler() -> calls UserStats.IsReady(IsReadyHandler)
  • IsReadyHandler() -> calls Api.GetLicense(new LicenseChecker(), APPID, APPKEY)
    • Needless to say, the LicenseChecker class was overrided from 'Api.LicenseChecker', and I implemented OnFailure and OnSuccess.

 

I didn't build my game, just tested on Unity editor. - Because there was no problem on other VR stores like Oculus store and Steam.

 

So I wondered the followings,

 

Cannot I test your DRM system while I'm using Unity editor? If then do I have to release my game to test DRM system?

Vive Staff

Re: How to test DRM?

Thanks for the detailed report, it really helps! I'll let you know as soon as I hear back from our SDK team. 


David R

Technical Specialist - San Francisco, CA; Monday-Friday

Click here to send me a PM

Vive Staff
Solution

Re: How to test DRM?

Hi , the error code means ERROR_INVALID_PUBLIC_KEY. 

Did you input the correct app ID? You could see the screen shot below to know where is your viveport id. 

And please let me know it solves your problem. Thanks a lot.

IncorrectAppId.png

Vive Staff

Re: How to test DRM?

Please input your Viveport ID of your game on the developer console, and try it again. (Don't use the "Copy test id" button on the right side.) Thanks.
Venister
Contributor

Re: How to test DRM?

Hi, yakingkuo. Thanks for your kind help.

 

There was no error in Viveport Id.

But I just found that I put wrong Viveport key into my source code. Smiley Sad After I changed the key, it works pretty well.

 

Thanks again!