-
Notifications
You must be signed in to change notification settings - Fork 40
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
GetAuthSessionTicket() produces invalid tickets #94
Comments
|
They say that the web api api.steampowered.com has such a function too (https://partner.steamgames.com/doc/webapi/ISteamUserAuth) But I think I use the Steamworks SDK 155 (157 is the current one I think, but it didn't compile and I read somewhere that I should use 155 instead). Maybe Steam has changed something with the ticket generation EDIT: Here I've seen it: #88 (comment) |
Today I tried to use the SDK 157 where compiling fails with
So I changed the function GetAuthSessionTicket() (https://github.com/philippj/SteamworksPy/blob/master/library/SteamworksPy.cpp#L982) to // Returns the info needed to obtain a Session Ticket.
SW_PY int GetAuthSessionTicket(char* buffer) {
if (SteamUser() == NULL) {
return 0;
}
uint32 size{};
SteamNetworkingIdentity identity;
SteamUser()->GetAuthSessionTicket(buffer, 1024, &size, &identity);
return size;
} To be honest this change was suggested by ChatGPT, I'm pretty clueless when it comes to C++ but after that change compiling works. Unfortunately the inital error of producing an invalid ticket still remains. |
This is interesting. I was actually taking a look at updating this since I am somewhat familiar with the code at this point RE: #91 I will take a look at implementing the change needed for SteamworksPy to be compatible with SDK 157 and onward. |
Thanks for taking a look into the code. Hopefully my issue resolves then |
I tried to validate a ticket produces by GetAuthSessionTicket(). But Steam says that the ticket is invalid. I used the following code and I'm using Ubuntu 22.04 LTS.
Steam returns
I used the AppID 480 also in the file
steam_appid.txt
. Do I do something wrong?The text was updated successfully, but these errors were encountered: