Search Unity

Steamworks.NET leaderboard implementation.

Discussion in 'Multiplayer' started by Wattosan, Jan 4, 2017.

  1. Wattosan

    Wattosan

    Joined:
    Mar 22, 2013
    Posts:
    460
    Hello,

    I'm looking for some help in implementing a steam leaderboard system. Google does not seem to give result on how to integrate leaderboard step by step. I did see a tutorial on implementing stats, getting the username and the profile picture of the user. This means, the basic steps are done, installing Steamworks.NET package, changing app id-s where necessary.

    I've tried loading the leaderboard and updating it but without result. I will continue to test and experiment until I get it working but for the sake of development time, it would be nice if there was tutorial on initializing the leaderboard, loading it through code, getting info from that leaderboard and updating the leaderboard.

    If I ever get this done I might make a video about the process.

    Cheers,
    Frosty!
     
  2. Wattosan

    Wattosan

    Joined:
    Mar 22, 2013
    Posts:
    460
  3. RakshithAnand

    RakshithAnand

    Joined:
    Jun 30, 2013
    Posts:
    56
    @F-R-O-S-T-Y Did you get to implement the leaderboards?
    I am not able to find enough documentation on this. Please guide me if you found anything on this.
    For one I'm not able to find how to get Display name of a player(other than in friends list) to be put up on Leaderboard.

    Thank you!
     
  4. TwoTen

    TwoTen

    Joined:
    May 25, 2016
    Posts:
    1,168
    AndersonMarquess likes this.
  5. RakshithAnand

    RakshithAnand

    Joined:
    Jun 30, 2013
    Posts:
    56
    Hi,

    Yes I have referred to them but it was bit confusing. But anyhow I figured it out.

    For someone who might find this useful:
    After fetching leaderboard entries, we can find the Steam Player name of an entry by using
    Code (CSharp):
    1. string playerName = SteamFriends.GetFriendPersonaName(lbEntry.m_steamIDUser); // lbEntry is of type LeaderboardEntry_t referring test script
    It works even if the user is not in your friends list.
     
    AndersonMarquess likes this.
  6. Wattosan

    Wattosan

    Joined:
    Mar 22, 2013
    Posts:
    460
    Hey, yes I was able to get the to work. But I can see you already figured it out.
     
  7. FreebordMAD

    FreebordMAD

    Joined:
    Mar 15, 2013
    Posts:
    633
    Hi all, just wanted to say that I have released a Leaderboards package for Steam on the Unity Asset Store:
    https://www.assetstore.unity3d.com/en/#!/content/93354