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 Brendan · Oct 05, 2015 at 12:27 AM ·

Awarding random virtual currencies

facelessj
started a topic on Fri, 10 October 2014 at 1:35 AM

I've got a set of items that when purchased, give out virtual currencies. We'll call the items curr1, curr2, and curr3. They reward virtual currencies C1, C2 and C3 respectively.

I've got each of these set up using (With the currency changed for each item):

"Bundle": {

                "BundledVirtualCurrencies": {

                    "C1": 1

                }

            }

Then, I have another called randomCurr, which contains:

"Bundle": {

                "BundledResultsTables": [

                    "RandomCurrencyTable"

                ]

            }

RandomCurrencyTable is defined as:

{

 "Tables": [

  {

   "TableId": "RandomCurrencyTable",

   "Nodes": [

    {

     "ResultItemType": "ItemId",

     "ResultItem": "curr1",

     "Weight" : 1

    },

    {

     "ResultItemType": "ItemId",

     "ResultItem": "curr2",

     "Weight" : 1

    },

    {

     "ResultItemType": "ItemId",

     "ResultItem": "curr3",

     "Weight" : 1

    }

   ]

  }

}

So essentially what should happen is the user buys a randomCurr. This then uses the RandomCurrencyTable to give the player one of curr1, curr2 or curr3, which should then give the player one virtual currency (C1, C2 or C3).

However, this is not happening. The user's VC counts don't change. When I look at their purchase history and inventory, it only has randomCurr, no curr1/2/3.

Additionally, the return value for the PurchaseItem request does not list any BundleContents as the help files say (But buying curr1 directly does not return this either, and yet correctly gives 1 C1).

Any help fixing this would be appreciated.

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

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Brendan · Oct 05, 2015 at 12:27 AM

Best Answer
Brendan Vanous said on Tue, 31 March 2015 at 2:57 PM

Apologies for the lack of update to this issue - the currencies are being added to player profiles from bundles, even if they are sub-bundles. At the moment, they are not showing up in the returned data from the GrantItemsToUsers call, but we'll be fixing that in an upcoming update.


2 Comments
Brendan Vanous said on Sat, 11 October 2014 at 11:08 AM

Sub-bundles not granting virtual currencies defined to players is a known issue that we're working on fixing within the next sprint. We'll update this post as soon as the fix is live.


Brendan Vanous said on Tue, 31 March 2015 at 2:57 PM

Apologies for the lack of update to this issue - the currencies are being added to player profiles from bundles, even if they are sub-bundles. At the moment, they are not showing up in the returned data from the GrantItemsToUsers call, but we'll be fixing that in an upcoming update.

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

    No one has followed this question yet.

    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