Steam Stats Support

Is there any support for stats in UE4.8 (or are there plans for future versions)? I found some stat related things with the leaderboard implementation but that doesn’t do what I’m looking for. The leaderboard implementation seems to create a new leaderboard for each stat I give it but I really only want to use stats to keep track of progress towards unlocking achievements. Thanks.

Hi, during my investigation i found that many steam functions wasn’t exposed to blueprints yet, but you still can do it on your own from C++ custom class

Quote:

Check OnlineSessionInterface.h out, it has all the functions you need, the function to invite a friend is

virtual bool SendSessionInviteToFriends(…);*
For answering to an invite, you’ll need to check the OnSessionInviteAccepted Delegate. I have successfully set up and worked with those but it’s not exactly well explained. Some info can be found on how to use them in ShooterGame example code.

You can access to the interface with the line

IOnlineSubsystem* OnlineSubsystem = IOnlineSubsystem::Get();
From there, you should be able to access a wide variety of options. If you have an IDE correctly set up and if you are a decent programmer this should get you started.

From myself:

so in your custom C++ class you can make function and inside it use

IOnlineSubsystem* OnlineSubsystem = IOnlineSubsystem::Get();

after that OnlineSubsystem would have reference to class containing many things (described in OnlineSubsystem.h from engine) related to steam and use it, because steam already linked into engine on C++

If you want ask epic expose functions to blueprint, then ask it on forum https://forums.unrealengine.com/forumdisplay.php?24-Feedback-for-Epic

If you enough expirienced in C++ or know someone (i know only Rama) then it possible to make plugin and share it.

I’m actually working on this in C++ already, there just aren’t any ways of accessing Steam’s stats API at all as far as I can tell.

try check IOnlineSubsystem.h or look in steam API related functions, then search in UE4 disabled project when in VS Steamworks SDK (Steamworks Documentation)

In 4.13 the above still remains true. Did you expose a stat interface? Or did you simply accept the weight of a leaderboard in exchange for easy stat updating?

I just exposed the stats interface myself.