-
-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Achievements not working "sometimes" #650
Comments
We have confirmed with other users that rolling back tot he 1.59 cycle seems to correct/avoid the issue ... as noted else where Workaround?Not tested but if the issue is a bug either in Steamworks.NET or Steamworks SDK 1.60 or there abouts you could avoid it by rolling back to 1.59 Doing that is easy and no it wont break anything with our tools ... Solution
You DO want to use Update to Steamworks SDK 1.59 which you can access via GitHub History Just click the link below But it says v20.2.0Ignore the string as it appears in Unity Package Manager ... that is just reading a string in the package.json which wasn't updated very frequently and so basically means nothing 😁 at least for that state of the code. The real info about what code your using is GitHub History. As you can see from the links, the link I gave is the check in Riley did for Steamworks SDK 1.59 |
I think it might be handy at this point to have 2 branches Master & (Test, Smoketest, Preivew, whatever you want to call it) 1.60 shouldn't be on the master it has a few issues Its not hard to go back and get the history but its a step to far for so many that just assume its all broken and throw the baby out with the bathwater. I think it could save you @rlabrecque a lot of headaches if you did your work on "Test" or whatever you chose to call it let your active community work it over for a bit before you merged it with Master (periodically) this I could even build a simple little Unity Editor script so a user could choose which they wanted to import "Master (more stable)" or "Preview (bleed edge)" or however you wanted to label them I could add in easy links to bring them here to your Issues list for feedback and bug reporting and I could add a link to ro your GitHub Sponsor so they can find that ... I know many are so challenged with finding that link If that's of interest let me know, I could work it up fairly quickly I think |
In the meantime could I tag which ever the last version pre-1.60 is? What should I tag it as? |
1.59.1 maybe (use the patch option to call out there's a "bug fix" even if the fix is just reverting some version) |
Aye we have been putting people onto 1.59 Link to our "Known Issue" article that talks about the same and gives them a link to DL your 1.59 update you did |
I am unfortunately unable to get any of these workarounds to work. I am specifically seeing the inability to consistently access Steam stats. Since I have stats that even track fun silly things like distance traveled, it pretty much halts all development, short of "temporarily" removing Steamworks.NET and/or stats from the game entirely.
My only theory is that it's as if the steam_api DLL is somehow always using 1.60, but I don't see how that's possible if I'm downloading the recommended ZIP which is based on the commit for version 1.59. Any ideas what else could be causing such stat issues? If this is a widespread problem, should version 1.59 become the primary version for a while? |
@ZoopTEK Also I DO NOT recommend you copy the com.rlabrecque.steamworks.net folder into your project you would be MUCH better off using UPM to add from Disk To do that You would download that zip and extract it Or just use Git to get that change set whatever suits you Then using Unity Package Manager click the + button and select "Add from Disk" now browse to the com.rlabrecque.steamworks.net folder and select the package.json that is in it This will cause Unity to import it as a package I think your issue is that you have a very dirty little project now :) So I suggest you fully remove Steamworks.NET from your project Once you have cleaned your project then Download the zip as noted above This will cause UPM to import that asset as a local package This has worked for the devs in our community and there are a ton of them so I know this does work around the issue when its installed clearly hence I think the issue you have is that its not installed cleanly |
Just a quick update We are seeing a similar issue using the 1.59 now public static string[] GetAchievementNames()
{
var count = SteamUserStats.GetNumAchievements();
var results = new string[count];
for (int i = 0; i < count; i++)
{
results[i] = SteamUserStats.GetAchievementName((uint)i);
}
return results;
} This code is returning no strings even on 480 which we know has achievements So is this a fundamental change from Valve? |
This is after you get back the initial UserStatsReceived_t for sure? |
We are seeing features related to achievements work sometimes and not others
For example, getting the number of achievements, reading achievement names, setting achievements, etc.
Sometimes it works, sometimes it doesn't
This is definitely something with Steamworks.NET or at least the latest version of Steamworks SDK as it works in Unreal which uses the SDK directly and doesn't seem to have any issues working with stats and achievements but in Unity which is running under Steamworks.NET its very hit or miss. ... mostly miss
No errors by the way
for example when requesting the number of achievements it just returns 0 ... even for Spacewars which we know has achievements
The text was updated successfully, but these errors were encountered: