cancel
Showing results for 
Search instead for 
Did you mean: 

Cloud storage examples?

MikeF
Trustee
Wondering if anyone has any examples of using the cloud storage save/load functions in unity?

I keep getting error code OVR34461111 as a response when trying to load. Each attribute of the received message comes up as null after that.

Any examples or help would be appreciated. Thanks
10 REPLIES 10

MikeF
Trustee
Also, any way to get a useful error code that could help diagnose the problem would be a huge help

pjenness
Rising Star
Yes please.  Even some as simple as storing a key and string value. Just to see the steps in Unity.

-P

Drift VFX Visual, Virtual , Vertical Want 970GTX on Macbook for good FPS? https://forums.oculus.com/viewtopic.php?f=26&t=17349

chooch709
Explorer
There are native examples in the platform sdk download, should be pretty similar in Unity, no?  We have our own engine so I did a native integration, but the logic looks like:

* Check for the cloud storage metadata by key.
* If it exists, load.
* If it doesn't exist, perform an initial save.

Currently, I'm gating our load on having an InSync || NeedsUpload || LocalUploading state, if it's out of sync in our app I'm refusing to load it, since I don't want to run into any cases where a user can overwrite their save data from another machine.  We tested a few contrived cases and so far, so good.

MikeF
Trustee
Ah, thanks for the tips chooch709. Unfortunately the calls are a bit different from what seems to be available with the unity API, but i'll keep digging. 

Any oculus reps with some example code, i'd love to hear from you guys  🙂

pjenness
Rising Star
Yeah I dont quite understand what they mean.

Oculus.Platform.CloudStorage.Save(bucket_name, key, data_pointer, data_size, counter, extra_data)


Help and examples would be appreciated.
Ther is API instructions but not example of it in use that i can find

bucket name and key I understand, but not how to use the other parameters

For exaple if the data Im saving is strings or floats.









Oculus.Platform.CloudStorage.Save ("PlayerInfo", "avatarName" , ??  , ??, ??);

Oculus.Platform.CloudStorage.Save ("PlayerInfo", "level" , ??  , ??, ??);

Oculus.Platform.CloudStorage.Save ("PlayerInfo", "items" , ??  , ??, ??);

Oculus.Platform.CloudStorage.Save ("PlayerInfo", "timeSpentPLaying" , ??  , ??, ??);





Drift VFX Visual, Virtual , Vertical Want 970GTX on Macbook for good FPS? https://forums.oculus.com/viewtopic.php?f=26&t=17349

MikeF
Trustee
so now that everyone is back from vacation, any help?

MikeF
Trustee
is there another sub forum where it would be better to ask development questions? 
Over a month now and i'm still no further along here. Please any examples at all showing this functionality working in unity!

Toukokuu
Protege

MikeF
Trustee
the question has already been asked there by others with no response