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
            Celestial Creator - 3D luxurious builder and shooter game in Steam for Win32&64
            Construct and build very quickly and intuitively with highest appearance brilliant, elegant, impressive, fabulous, outstanding, magnificent, gorgeous, tremendous, majestic, imperial and superior objects, shapes, buildings, crafting, levels, worlds. Then protect them

            Comment


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

              Comment

              Working...
              X