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 skywolfgamestudios · Mar 20, 2018 at 08:33 PM · apisLeaderboards and Statisticssdks

Adding a Leaderboard to my UE4 BP Project

Hi Guys,

I found playfab by accident and I must say this is very impressive! I may use it in future projects too.

However, I am having a problem where I have an existing UE4 Project that is purely Blueprints.

I found your bi-weekly ue4 blueprint sdk and which is useful but that requires me to build a new c++ ue4 project with no starter content which is a big problem because that means I will have to start it all over again in development to work with it there.

I found I can add C++ Classes to enable C++ usage in my existing project which I cloned to retain the original as a back up.

What I am wondering though is there is a lot of c++ classes in the list so I am wondering do you guys happen to know which I would need for the following to work:

I just want a simple Leaderboard to be displayed from the Main Menu via a button which causes a ui widget to pop up. But, this also needs to be displayed when the player dies in-game where they then see their var total score and var total distance values which are automatically submitted to the leaderboard along with their profile name that they set before starting the game.

1) Profile Name

2) Total Score

3) Total Distance

I'd appreciate any help or advice to get this working. I'm terrible at programming so that was why I originally stuck mainly to blueprints.

I really wish you guys would add a plugin in their marketplace to add to projects to simplify this whole thing. It would solve a ton of issues and jumping through hoops!

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 · Mar 24, 2018 at 09:22 PM

Any of the leaderboard API calls would get you what you need - for example: https://api.playfab.com/documentation/client/method/GetLeaderboardAroundPlayer. What you would do is use the ProfileConstraints to specify the things you want to get back. In this case, you want the player's title display name, and their other statistics (since you'll be posting score and distance as distinct stats, you'd get the distance using the ProfileConstraints.ShowStatistics as part of the call to get the Score leaderboard). Sorry we don't have a specific, pre-built Blueprints sample that shows this - I'd recommend using the tutorial (https://github.com/PlayFab/UnrealBlueprintSDK/blob/master/README.md) to get a basic understanding of how to use our Blueprints SDK.

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

    1 Person is following this question.

    avatar image

    Related Questions

    How can I create team tournaments like Toon Blast game 3 Answers

    Second post because it's urgent: How can I create team tournaments like Toon Blast game 0 Answers

    Custom data for statistics? 1 Answer

    Leaderboard/Tournament questions 1 Answer

    Add Hours/Minutes in Current Server Timestamp 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