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 /
  • Bugs /
avatar image
Question by Dmitrii Osipov · Jul 20, 2016 at 04:11 PM · Player DatasdksPlayer Inventory

Empty Custom data for item instances

GetInventoryItems for client api and GetUserInventory for server api returns "null" instead of Custom item data. Item in game manager => http://puu.sh/q83Xh/d06e8e7847.png Incoming item in client api => http://puu.sh/q843E/50f0275e9f.png and from cloud script log => http://puu.sh/q847b/0dd1f45d9c.png

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 · Jul 20, 2016 at 04:13 PM

CustomData in the catalog is global - you read it from that source, so that it applies equally to all instances. When you instance an item, you have the ability to set unique CustomData on it - that would be distinct from the catalog CustomData. Please have a look at this post for more info: https://community.playfab.com/questions/3752/read-custom-data-from-iteminstance.html.

Comment
Joshua Strunk
bretcuran

People who like this

2 Show 2 · 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 Dmitrii Osipov · Jul 21, 2016 at 07:44 PM 0
Share

Oh, sorry for my inattention. Thanx alot. Now it's clear how all this stuff works. One more question. Does server requests, such as GetCatalogItems caches in cloud script? Or how i can cache this stuff. I need to hadle a catalog items, user items, user currencies and some of game title data in one call and getting all theese stuff wastes alot of time. So i think about some caching for data which is not changes. Thanx alot again.

avatar image Brendan ♦♦ Dmitrii Osipov · Jul 21, 2016 at 09:07 PM 0
Share

In general, yes, we would recommend caching all of that on the client. You can read global items like catalog and title data into a static in Cloud Script, but there's no guarantee it'll be there from call to call, since your scripts could be running on a different V8 engine. Individual user data can't be cached in Cloud Script, since many different users will use the same engine.

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.

    Related Questions

    can get cloud script to work with update user data 0 Answers

    Item provides not happening even after using Playfab payment API 0 Answers

    Steam microtransactions bug. 0 Answers

    Why playfab leaderboard act up sometime and doesn't gran items to all valid players according to prize table 1 Answer

    Redeem Coupon 'GrantedItems' list empty, even though items were granted 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