Write Leaderboard Integer doesn't submit entry to Steamworks
I've been trying to get Steamworks to work all day today with no luck. Followed the following set up for my game first.
Then, I set up a couple of leaderboards for some songs in my game. I also edited the CPP file using this tutorial. https://lordihean.net/2016/04/21/ue4-tutorial-resolving-steam-leaderboards/ Edit* Correct linked I used
Next, I use blueprints to fire out the write of leaderboards but it never updates out. I created the following blueprint, and when the write is true, I trigger a sound just for debugging purposes. I hear the sound, but no new data is being entered into the database of my game on Steamworks.
Heck, the game even creates a new database for songs I did not create one myseklf, for example, I played through Team Fortres 2 theme song, and after refreshing the Steamworks page for leaderboards, it appears! But the list is just empty, with no entries at all. This was a packaged game, that I uploaded a build to Steam and then played by launching the game from Steam.
I also added steam stat variables like the following, but still no luck at all.
Is there a bug somewhere in the code
I finally figured this out.
What happened is that I used the Marketplace engine, which doesn't let you edit the code. So the modification from the other links didn't actually happened.
I had to download the engine from github, compile that out. Then add the plugins to the code and compile those. Then make a copy of my project with the new self compiled engine. Then I packaged the game, and uploaded to Steam. Where it finally worked out!
For other links of places I struggled but managed to overcome, which may happen for other people:
answered Nov 03 '16 at 10:09 PM
There sure are bugs :)
Here's the recap:
And to fix it:
If you can't do that then please UPVOTE this: https://issues.unrealengine.com/issue/UE-24791
answered Nov 02 '16 at 08:21 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here