cancel
Showing results for 
Search instead for 
Did you mean: 

Can't find DLCs from application

Welby
Adventurer
Hi,

I'm implementing DLCs on my project. I've uploaded a build with an extention file that I can see on the Oculus Dashboard and it's there on the Alpha channel. Everything went smooth.

From the application though if I call "AssetFile.GetAssetDetailsList()" it doesn't return any DLCs. I've attached my full code.

 void OculusDLC()
    {

        try
        {
            Core.AsyncInitialize().OnComplete(OnOculusComplete);
        

        }
        catch
        {
            Debug.Log("ERRORE");
        }
    }

    void OnOculusComplete(Message message)
    {
        AssetFile.GetList().OnComplete(OnGetAssetComplete);
        
   
    }

    void OnGetAssetComplete(Message msg)
    {
        if (msg.IsError)
        {
            Debug.LogError("Error fetching DLC List: " + msg.GetError().Message);
        }
        else
        {
            var assetList = msg.GetAssetDetailsList();

            foreach (var item in assetList)
            {
                Debug.Log("AssetID: " + item.AssetId);
                Debug.Log("AssetType: " + item.AssetType);
                Debug.Log("DownloadStatus: " + item.DownloadStatus);
                Debug.Log("Filepath: " + item.Filepath);

                if (item.DownloadStatus == "installed")
                    ReadDLC(item.Filepath);
                //Download it
                else if (string.Equals(item.DownloadStatus, "available"))
                {
                    AssetFile.DownloadById(item.AssetId).OnComplete((msg1) =>
                    {
                        if (msg1.IsError)
                        {
                            Debug.Log("Error downloading assetID: " + item.AssetId + " " + msg1.GetError().Message);
                        }
                        else
                        {
                            Debug.Log("Downloaded intiated at: " + msg1.GetAssetFileDownloadResult().Filepath);
                            ReadDLC(msg1.GetAssetFileDownloadResult().Filepath);
                            var r = msg1.GetAssetFileDownloadUpdate();
                        }
                    });
                }
                else
                {
                    Debug.Log("--------------------------------Asset ID: " + item.AssetId + " Status: " + item.DownloadStatus);
                }

            }
        }
    }
ReadDLC is our own internal function.




3 REPLIES 3

Anonymous
Not applicable
Why luck with this?

Luis.Zan
Protege

Having a similar issue.

 

First, my entitlement was failing because I had my target platform set to Android which caused it to fail in the editor.

 

I'm wondering if you have to have the app built and on the store in order to have it appear. That would be tough though because it seems important to be able to test it in Editor in my opinion.

Now I pass the entitlement but can't get any of my DLCs to appear.

Anonymous
Not applicable

I' have the exact same problem.

 

I upload several app compilations at the store just and I use "ovr-platform-util.exe upload-add-on..." to upload the content (the Add-on in the dashboard has "published" status).

I'm testing it using a compiled oculus apk (the editor doesn't allow that kind of testing on a "only Quest" app) but the Getlist() function alway returns zero assets in the returned asset list.

 

Things I tryed:

- Change in the Dasboard de requeriment for "internet required when downloading content"

- Change the resquestID to the debug one (provided by the dashboard's API --> user ID for debugging and testing)

- Call that GetList() function using a coroutine every time it returns zero asset list (witch is always)

 

The entitlement goes fine and I get nick and ID correctly (I tested using ADB to see the output).

 

any ideas ?