ValidateAuthTicektResponce_t doesn't callback on servers
See original GitHub issueWhen we initialize as SteamGameServer and call BeginAuthSession The ValidateAuthTicektResponce_t never responds
We have been doing a lot of troublshooting on this and I finally took the mind to check the definitions … I noted that there is no SteamGameServer version of this callback there is only the one ValidateAuthTicektResponce_t
defined in SteamCallbacks.cs and that definition sets the callback ID as
public const int k_iCallback = Constants.k_iSteamUserCallbacks + 43;
should there be a GameServerValidateAuthTicketResponce_t where in
public const int k_iCallback = Constants.k_iSteamGameServerCallbacks + 43;
If that is the case it would explain why we dont get the callback as expected and would sugest there is also an issue with GetAuthSessionTicketResponse_t
similar thing … should have a GameServer variant
Then again I could be insain and something else is preventing the callback from returning but this works perfrectly on the Client API should be the same code for Server the only difference being
SteamGameServer.BeginAuthSession
as oppsed to
SteamUser.BeginAuthSession
Issue Analytics
- State:
- Created a year ago
- Comments:48 (36 by maintainers)
Top GitHub Comments
So I got to look into this again, I had to make one change in the test repo, and then it seemed to work fine:
m_ValidateAuthSessionTicketResponce = Callback<ValidateAuthTicketResponse_t>.Create(TestCB);
Tom_ValidateAuthSessionTicketResponce = Callback<ValidateAuthTicketResponse_t>.CreateGameServer(TestCB);
To match the usage in C++ that Spacewar has where they create it with
STEAM_GAMESERVER_CALLBACK
These seem to be the only usages of the GameServer callback though for what ever reason:
I have updated the test repo and our asset this issue should now be resolved
Thank you everyone