x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

https://docs.unrealengine.com/latest/INT/Programming/Online/Steam/index.html

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.

alt text

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.

alt text

I also added steam stat variables like the following, but still no luck at all.

alt text

Is there a bug somewhere in the code

Product Version: UE 4.13
Tags:
more ▼

asked Nov 02 '16 at 08:08 PM in Everything Else

avatar image

Motanum
595 52 58 293

avatar image Motanum Nov 02 '16 at 08:30 PM

After doing some testing, I found that the changes I made to the cpp file are not actually compiled out. I think I need a separate answer thread for that, because I click build on the engine solution of my game, and it says build successfully (Super quickly), the compile on the UE4 button also works and compiles.

alt text

But I need the statName_statName like that and it only increments, when I did those fixes to the cpp file.

So, how can I compile the engine with the changes I made out. Sorry, I am quite noob at cpp with ue4. I right click the engine, press build, and it finishes very quickly. But going by the behavior from the stat and leaderboard, it ain't working.

alt text

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

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!

alt text

For other links of places I struggled but managed to overcome, which may happen for other people:

https://answers.unrealengine.com/questions/518358/how-to-compile-engine-from-project-solution.html

https://answers.unrealengine.com/questions/518822/new-plugin-folder-doesnt-appear-in-solution-explor.html

more ▼

answered Nov 03 '16 at 10:09 PM

avatar image

Motanum
595 52 58 293

avatar image SlimeQ Apr 21 '18 at 07:10 PM

just as an aside, I have the online subsystem pulled out into my project "Plugins" folder so that I can have custom code in there without compiling the whole engine. You can just copy the whole OnlineSubsystemSteam folder. Might have to modify the build.cs file though.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
more ▼

answered Nov 02 '16 at 08:21 PM

avatar image

VictorBurgos
2.3k 55 22 106

avatar image Motanum Nov 02 '16 at 08:31 PM

I looked at those before I posted this question. It's the second link..

avatar image SlimeQ Apr 21 '18 at 07:11 PM

the lordihean link is broken but here's an archived version: https://web.archive.org/web/20160422120905/https://lordihean.net/2016/04/21/ue4-tutorial-resolving-steam-leaderboards/

this is STILL an issue in 4.18

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question