Open niemasd opened 3 years ago
Hey,
the precompiles currently available under "Releases" are quite out of date. So I can not tell whether they are still functional at all. Please try if the issue persists with the newer release from https://github.com/philippj/SteamworksPy/tree/master/redist/windows.
Ah, thanks for the quick response! I ideally want it to be 32-bit, so I'll try recompiling from scratch. I'll add a comment with the results
I just tried compiling from SteamworksPy.dll
from scratch from the command line using the Visual Studio tools (using Steamworks SDK 1.5.1), and I encounter the same behavior
I think you need to call
steamworks.run_callbacks()
after RequestCurrentStats() and before GetStatInt - this works for me
try (b'FINISHED_CHAP_01')
I built a game in Python that I'm trying to publish on Steam, and I have things working fine with regard to just running as well as using Steam cloud saves, but I'm trying to use SteamworksPy to get Achievements working. However, I'm running into the following issue:
GetStatInt
to get any stat (even ones that don't exist), it always returns 0SetStat
, it returnsTrue
, but when I subsequently useGetStatInt
, the value is unchanged (still 0)GetAchievement
to get any achievement (even ones that don't exist), it always returnsTrue
SetAchievement
, it always returnsTrue
Here's a minimum working example of the relevant SteamworksPy code:
This prints the following (I've replaced the AppID and SteamID with
<my correct AppID>
and<my correct SteamID>
for privacy):I'm using Python 3.8.7 and the Steamworks SDK 1.5.1. I'm also using the precompiled 32-bit
SteamworksPy.dll
("Master Pre-Compiles - Version 1.6.2"). Help would be greatly appreciated 😄