Announcement

Collapse
No announcement yet.

[Tutorial] Steam Achievements

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #31
    A couple of other things worth mentioning here:
    1. The IDs in the INI file MUST start at 0, else none of them will work (I had a test achievement at ID 0 first for testing - it worked fine along with all the other achievements - then I deleted the test achievement at ID 0 (from Steam and from the INI file), and none of them worked until I reassigned them all starting from zero.)
    2. The "Progress" input on the "Write Achievement Progress" doesn't work... (i.e. if you have a stat/achievement set up as 0-100, even if you write the achievement with progress=1.0 it will mark the achievement as unlocked straight away).


    For the second one, there is a limited workaround - you can use the "Write Leaderboard Integer" node to increment the stat for the achievement, and it will unlock once it reaches the max. However, the "Write Leaderboard Integer" node has significant problems which remain unfixed - you have to double up the stat name in steamworks (i.e. StatName01_StatName01), and also it FORCES it to ADD your value to the existing stat. That is OK in this case, but there is another problem - it stops working once the stat gets above 10 for some reason (I had an achievement "use the thing 50 times" and incremented it every time they "use the thing", and it successfully writes up til 10 and then fails from then on. So this workaround only works for achievements where you are doing something less than 10 times.

    In the end I gave up on the progress achievements and just unlock the achievement when they reach the value (i.e. they can't tell how close they are to reaching the achievement).
    Last edited by Spoondog; 10-26-2016, 10:50 PM.
    Dev Blog
    Twitter: @TheRealSpoonDog
    150 FREE Blueprint functions for your project

    Comment


      #32
      What happens if players modify the ini file?

      Comment


        #33
        Originally posted by Spoondog View Post
        A couple of other things worth mentioning here:
        1. The IDs in the INI file MUST start at 0, else none of them will work (I had a test achievement at ID 0 first for testing - it worked fine along with all the other achievements - then I deleted the test achievement at ID 0 (from Steam and from the INI file), and none of them worked until I reassigned them all starting from zero.)
        Thanks, you help me figure out what was broken with my achievements.
        Not only the IDs in the INI file must start at ID 0, but you must keep the others achievements with their ID increments of 1.

        I removed an achievement and had something like this in my INI file : 0-1-2-4-5-6.
        0-1-2 was working, but 4-5-6 stopped working.
        Renaming the id 0-1-2-3-4-5 fix my broken achievements.

        Comment


          #34
          Achievement_0_Id="ACH_WIN_ONE_GAME"
          Achievement_1_Id="ACH_WIN_100_GAMES"
          Achievement_2_Id="ACH_TRAVEL_FAR_ACCUM"

          after 31 achievements the list begin new from 1

          2/0 NEW_ACHIEVEMENT_2_0
          2/1 NEW_ACHIEVEMENT_2_1

          what is the code for this?

          Achievement_2_1_Id="ACH_WIN_100_GAMES" ?

          Comment


            #35
            Excellent tutorial! If the next one will be how to make items ready for Steam Workshop it will be awesome
            Luxocraft - [FREE] 3D Ray Tracing Block Construction Builder Game on Steam

            Comment


              #36
              Hi, does anyone knows how to delete/reset steam the achievements and stats ?

              Comment


                #37
                Originally posted by tongucci View Post
                This works perfect inside editor by playing in Standalone Game. However when uploading to Steam my achievements don't get unlocked when playing through Steam. Can it be because the game is not publicly released yet? Or maybe while the game is packaged, the content becomes a .pak file, something changes? Can anyone help please?
                I am having the exact same problem! Have you found the solution by any chance?

                Comment


                  #38
                  Originally posted by cyberdei View Post

                  I am having the exact same problem! Have you found the solution by any chance?
                  This tutorial here has helped me: https://youtu.be/ATdkoeSJ2WA

                  Comment


                    #39
                    Originally posted by tongucci View Post

                    This tutorial here has helped me: https://youtu.be/ATdkoeSJ2WA
                    I saw it! Many times actually! Maybe I mIm missing something. I also double checked the version, for 4.20 the sdk is 1.39, but still it doesn't work.

                    Comment


                      #40
                      Originally posted by cyberdei View Post

                      I saw it! Many times actually! Maybe I mIm missing something. I also double checked the version, for 4.20 the sdk is 1.39, but still it doesn't work.
                      It will be weird (achievements sporadically working or not) until you actually publish the game. I wrote Steam about it during my last project.

                      Comment


                        #41
                        Originally posted by jeremycouillard View Post

                        It will be weird (achievements sporadically working or not) until you actually publish the game. I wrote Steam about it during my last project.
                        I have the same problem, everything works offline, but when uploading to Steam stops working, could you solve it?

                        Comment

                        Working...
                        X