Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
2
Question by Reign_of_Light · Jan 24, 2017 at 08:32 AM · unity 5

Using Steamworks.NET, Steam callbacks always fail. What am I doing wrong?

Hi,

I'm desperately trying to bring Steam-achievements into my (our) Unity-based game, using Steamworks.NET . After at first confidently trying my own approach, I now just copied the whole of 'SteamStatsAndAchievements.cs' from the example project, only replacing the example-achievements with the ones from our game.

Still, I don't get very far, since I always receive 'k_EResultFail' from Steam. SteamManager IS initialized and the call to SteamUserStats.RequestCurrentStats(); does return true. It's just that the callback 'OnUserStatsReceived()' always receives a FAIL. (If I try to send achievements anyway, 'SteamUserStats.SetAchievement(...)' immediatly returns false, and a callback is never received)

When trying out the example project, everything works just fine!

What I did do:

  • I have the steam-Client running, and I am logged in with an account related to the unreleased Steam-game in question (The Steam-Client correctly displays me as "in game")

  • I did define achievements on the partners.steam-site of our game (the same as in the enum)

  • I did apply SteamManager.cs and SteamStatsAndAchievements.cs to a GameObject in the game

  • The steam_appid.txt is there and contains the correct id

What might be reasons:

  • In SteamStatsAndAchievements.cs I deleted everything stats-related (except the methods and relevant calls), since we won't use stats in our game. Are stats required?

  • The partner.steam-site of our game is far from completed. It's almost only the achievements that are there, yet. Is there anything which absolutely has to be set up in there, in order to have the SteamAPI be able to run and handle achievements?

Else I'm clueless as to what's going wrong :( . And I'm on a tough deadline. Please help if you can!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
12
Best Answer

Answer by Reign_of_Light · Jan 26, 2017 at 06:25 AM

Solved it! For anyone who gets this problem, too: It's not enough to just set up stats and achievements on the Steam backend. You need to "publish" them (which is not publishing the game). "Saving" isn't enough, without "publishing" Steam just doesn't know what you're talking about.

Also, make sure the Steam account you are testing with has sufficient rights to the game, as long as it is not public, yet.

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Trstek · Mar 31, 2018 at 11:24 AM 1
Share

thanx for this :) i've read through butt-load of documentations and here is the first time i've read that you actually have to publish the changes you've made in s$$anonymous$$mworks

avatar image xmanreturn · Sep 17, 2018 at 09:53 AM 1
Share

Saved my hours of time, thanks!

avatar image Rockaso · Apr 19, 2020 at 02:51 PM 1
Share

O$$anonymous$$G Dead end, if it wasn't because of your comment I think I would be stuck forever

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

135 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Question about NavMesh and Rigidbody 0 Answers

How do GameObjects detect void Update and how to make my custom one. 0 Answers

Unity 2D game trigger event by game start 1 Answer

Assigning Asset Bundle in Script 2 Answers

Can't activate unity: License Error 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges