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 /
  • General Discussion /
avatar image
Question by Ivo · Jan 20, 2020 at 03:07 PM · Player DatadataunrealCharacter Data

Save and Load player location or other data in UE4 Blueprints?

Hello.
How do you save/ load character data from PlayFab using blueprints in UE4?
I have tried Statistics and "Get User Data" node but I just don't understand how can I get the actual data out of it?
I tried converting it to text but it didn't work.
How do i get the data? Maybe there are other nodes? Or other ways to quickly save Vectors and Floats?

https://i.imgur.com/bxShYVf.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 Citrus Yan · Jan 21, 2020 at 08:16 AM

I don’t know what the “character data” you are referring to, if you are referring to the data stored in a character that belongs to a specific user, you may need to use the “Get Character Data” node to get the data and “Update Character Data” node to store the data.

Let’s take your Blueprint for example, you are using the Admin “Get User Data” node, which retrieves the title-specific custom data (stored as key/value pairs) for the user, similar to character data mentioned above, you’ll need to use the “Update User Data” node to store/update the custom data for the user. The “Keys” should be a list of keys you want to search in the user’s custom data. Let’s suppose that we already stored two key/value pairs for the user, they are test->data and test1->data1, now we want to get the value of “test1”, here is the Blueprint that will do the work:

This is the implementation of “Print Play Fab Error” function used in the aforementioned Blueprint:

Please also note that although Admin/Server APIs are convenient for development/testing purposes, which is the reason why I used the Admin "Get User Data" node in the demonstration, however, it’s not recommended to call them from the client-side when the game is live. In this case, we should use the Client "Get User Data" instead.

Moreover, it’s helpful to refer to the API references to better understand the structure of each API’s request/response in order to make good use of them. You may find these API references helpful for your question:

Client/GetUserData

Client/UpdateUserData

Client/GetCharacterData

Client/UpdateCharacterData

Client/GetPlayerStatistics


getuserdatablueprint.png (307.4 kB)
print-playfab-error-function.png (112.2 kB)
Comment
Ivo
Saad Anees

People who like this

2 Show 1 · 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 Ivo · Jan 22, 2020 at 11:45 AM 0
Share

Hi, tyvm for helping me.
Yes i am trying to implement player location saving and loading system

OMG, It worked! I got the value I added on website.
Now trying to add keys and update value data from blueprints...

Maybe statistics would be better for saving player location?Do you know how can I get data from the array? When using "get player statistics node".

Edit:
Can't delete statistics :O Mhmm

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

    3 People are following this question.

    avatar image avatar image avatar image

    Related Questions

    Soccer Manager - Handling of soccer players / data 1 Answer

    For the player data, is it possible add additional tables so different types of data can be group separately? 1 Answer

    After trying to delete userdata (for testing) with DeleteAll() function, it doesnt work anymore? 1 Answer

    Admin panel in unity, to modify the statistics of the player you want / choose,Modify player data in a unit panel 1 Answer

    About Set data OnApplicationQuit 2 Answers

    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