question

e.timofeev@flexilestudio.com avatar image
e.timofeev@flexilestudio.com asked

UnlockContainerItem result bug

Good day.

Some times PlayFabClientAPI.UnlockContainerItem() return not all granted items.

For example:
Title ID: 6B9C
User ID: 74A9D652594E342C
Container: Chest_basic

On playfab added all 3 items:
https://i.gyazo.com/8d9aa1e1f16acb10d6f8d5411e09462b.png


In unity only one item in result.GrantedItems. result.VirtualCurrency is null.
https://i.gyazo.com/1b76a115a030fbcb889c901be4bcad4b.png

this usually occurs with Bundles. But not always.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

I believe I see the issue. We updated our recommendations on the Bundle expiration times to be 5 seconds, as there's a potential race condition which could cause items added via a bundle with a very short expiration time (1 second) to not get added before the Bundle itself is removed. I've updated your catalogs to change any UsagePeriod set to 1, to make it 5.

Edit: Oh, and if you could let us know if you see anywhere a value of 1 second is still mentioned, we'd defintiely like to get that updated. Thanks!

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.