Jump to content

How to test DRM?


Venister

Recommended Posts

Posted

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?

 

Posted

Hi , 

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! 

Posted

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?

Posted

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.

Posted

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.

Posted

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. :( After I changed the key, it works pretty well.

 

Thanks again!

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...