Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by Cricket_FeVR · Jan 08, 2019 at 10:02 AM · Player DatadataIn-Game Economy

Items can be consumed by count and/or time. Usage period must be more than 2 seconds. What does this mean?

I have a in game currency called coins. I assume this is a consumable item. If I click on consumable radio button(the other option is durable) on item menu, it shows Items can be consumed by count and/or time.

Usage period must be more than 2 seconds. Can someone explain this?

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by SethDu · Jan 09, 2019 at 02:29 AM

Virtual Currency and Catalog Items are 2 different concepts, and ‘coins’ you mentioned should be defined as Virtual Currency instead of an item. Virtual Currency do not have properties like durable or consumable.

In terms of ‘Usage period must be more than 2 seconds’, it means if a consumable item is configured as consumed by time, it should be set at least 2 seconds. Otherwise, this item will be expired too soon after being granted.

The best way to test those features is to create a free title and navigate to the [Game Manager] -> [Economy], then define your own catalog and Virtual Currency.

Comment

People who like this

0 Show 3 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Cricket_FeVR · Jan 09, 2019 at 06:12 AM 0
Share

oops.. i meant that pack of 100 coins .. should i mention it as bundle ? .. And why should it disappear... he can buy the bundle again right?

avatar image SethDu ♦ Cricket_FeVR · Jan 09, 2019 at 07:05 AM 0
Share

Usually bundle is consumed by 1 count, you can left 'By time' field blank so that it won’t expire.

snipaste-2019-01-09-14-59-11.png (51.6 kB)
avatar image Brendan ♦♦ SethDu ♦ · Jan 09, 2019 at 08:26 PM 0
Share

Please be aware that if you use "By Count" for bundles, they are not automatically consumed. In that case, you would either want to consume them via the ConsumeItem API call, or else make sure the bundle item is stackable, so that it doesn't fill up your inventory.

And the reason the "By Time" needs to be a few seconds is due to the fact that if you have it set to 1 or 2 seconds, there are rare conditions (in particular, with large inventories) where the bundle could be consumed before it has added all the other items included with it to the player inventory.

avatar image

Answer by Justin · Jan 09, 2019 at 07:45 PM

Similar question with answer here for items and bundles. https://community.playfab.com/questions/6588/item-consumable-times-must-be-greater-than-2-secon.html

This question has relevant info talking about items and bundles. Specifically, recommended expiration and why the timing matters. https://community.playfab.com/questions/921/210707367-GooglePlay-In-App-Purchase-to-PlayFab-Items.html

Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    4 People are following this question.

    avatar image avatar image avatar image avatar image

    Related Questions

    Choose a logo from set of logos for the user from the client side - How to use pics in playfab? 1 Answer

    Since Azure Function Only change, Examples are invalid 1 Answer

    I have an existing Java backend with user data stored in MYSQL, want to move that data to PlayFab. 1 Answer

    Uploading A File To Playfab 1 Answer

    How to get other players public [player data] with client API? 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges