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"

[BUG] Steam achievement progress instant unlock

Hello, we have problems with the achievement system between UE4 and Steam.

We have followed this link images to create stats and achievements: link text

We have also added achievements to "DefaultEngine.ini" and Steam overlay is visible when we run the build game or in "Standalone Game".

We added achievements and stats to Steamworks as the following pictures: alt text

alt text

Any error in them?

From our PlayerController we increased the initial value (0)+1, and try to write the result. However, even the achievement of the image needs 100 attempts, is unlocked in the first try.

alt text

Thx ;).

Product Version: UE 4.9
Tags:
stats.png (15.7 kB)
achievements.png (18.4 kB)
captura.png (127.3 kB)
more ▼

asked Oct 27 '15 at 08:53 AM in Bug Reports

avatar image

Helghast
102 11 15 69

avatar image Lazy Games Oct 28 '15 at 12:32 PM

It's the same for me, the progress just gets set to 100+whatever I'm incrementing

avatar image Ben Halliday STAFF Oct 28 '15 at 06:53 PM

Hi all,

I'm trying to get our support team a Steamworks account we can use to test this with the Steamworks tool. I will let you know once we're able to investigate further.

avatar image Tomble38 Jan 13 '16 at 02:39 PM

Hey Ben, Any updates on this topic?

avatar image Ben Halliday STAFF Jan 13 '16 at 06:45 PM

Hi ooParanoia,

The information provided below is all we have to go on right now.

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

3 answers: sort voted first

Hi,

It looks like Incremental Achievements work differently than regular Achievements. The WriteAchievements node will unlock the achievement when it is run. The Progress input is a bit misleading; that actually refers to a function in the engine that is not currently implemented in the Steam OSS, SteamUserStats()->IndicateAchievementProgress() for things like showing a progress bar.

Instead, you want to update the Stat itself. In Blueprints, you can access this using the ReadLeaderboardInteger and WriteLeaderboardInteger nodes. Once the value you feed it reaches the max limit you've set on the Achievement, it will automatically unlock (as long as the Stat and Achievement are appropriately linked; it looks like yours are).

Hope that helps!

more ▼

answered Oct 28 '15 at 09:46 PM

avatar image Helghast Oct 29 '15 at 12:09 PM

Today we trying to read and write "stats" using ReadLeaderboardInteger and WriteLeaderboardInteger, but the "ReadLeaderboardInteger" node always fails and WriteLeaderboardInteger returns TRUE, but nothing has changed.

Stat "1_0" for Achievement "1/0" and stat "1_1" for Achievement "1/1", Write and Read Leaderboard Blueprints, GameOuput, DefaultEngine.ini and Steam Achievement status:

alt text

Any advice? Thx.

fullcontent.png (275.9 kB)
avatar image Ben Halliday STAFF Oct 29 '15 at 05:29 PM

Can you provide the logs from your game after you run WriteLeaderboardInteger and ReadLeaderboardIngeger?

avatar image Helghast Oct 29 '15 at 05:39 PM

Of course, Where I can find them? "C:\Users[MyUser]\AppData\Roaming\Unreal Engine\AutomationTool\Logs\"?

avatar image Ben Halliday STAFF Oct 30 '15 at 04:33 PM

I apologize, in a Shipping build it won't generate the logs I need. I'll keep digging and let you know. Right now I'm seeing a few reports from people who are seeing a potential problem in the Leaderboard code, and I'm looking into that now. Here's a reference that may be helpful:

https://answers.unrealengine.com/questions/257107/how-to-use-steam-leaderboards-from-bp.html

I'll post back here when I get more info.

avatar image Helghast Oct 30 '15 at 08:41 PM

I can try in Standalone Game with my SteamAppId as SteamDepAppId.

¿Logs are also generated in this way?

PD: mmmm, same name for Stat and Achievement with '_' for key-value pair? I'll try and tell you something.

avatar image Lazy Games Apr 19 '16 at 11:33 AM

The Progress input is a bit misleading; that actually refers to a function in the engine that is not currently implemented in the Steam OSS, SteamUserStats()->IndicateAchievementProgress() for things like showing a progress bar.

does this mean the write achievement progress node cannot just show the achievement progress? After some testing when progress=0 nothing happens, when progress anything>0 it just unlocks the achievement (which is tied to stats/leaderboard correctly).

Using blueprints only here.

avatar image Sean L ♦♦ STAFF Apr 25 '16 at 07:02 PM

Hello Lazy Games,

I'd recommend looking at our Unreal Match 3 Project. It is done in blueprints, and has a working achievement system, including the Get Cached Achievement Progress node functioning as expected. Looking into that project should give you an idea of how to get your setup in working order.

Have a great day

avatar image Spoondog Oct 27 '16 at 03:57 AM

Using "Write Leaderboard Integer" as a workaround (for the "Progress" input on "Write Achievement Progress" being broken), does work, provided you also use the workaround required for the "Write Leaderboard Integer" node (i.e. the doubled up stat name), BUT DO NOTE: it only works up to a value of 10, oddly. e.g. if you write the stat each time "Item X" is used, with a goal of 20 times, it successfully writes the stat for the first 10 times, but after that fails. I explained it better here.

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

SUCCESS! Stats Behaviour is very strange.

As I read the link, I followed these steps:

-Steam Stat name = mystatname_mystatname

alt text

Yes, twice Stat name separated by underscore. Careful not to use more than one underscore.

-Then in Steam Achievement:

Steam Achievement name = myachievementname

alt text

Here it does not matter if it is different from the Stat name.

-Stat Blueprint name = mystatname:

Without underscore , because UE4 adds subsequently and forms mystatname_mystatname string.

alt text

First of all, get the CacheAchievements to read and write Stats.

alt text

It seems to work. Anything else?

We have noticed that if we make several "WriteLeaderboardInteger" (max 5) takes a long time to update the status of Stats.

more ▼

answered Nov 02 '15 at 10:54 AM

avatar image

Helghast
102 11 15 69

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

Not too familiar with steam, but you have your minimum value for the acheivment as Zero, so, when you add +1 its already above 0 and they get it. Or thats what it seems like to me.

more ▼

answered Oct 27 '15 at 08:59 AM

avatar image

MrGrr
986 34 3 41

(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