Steamworks getAuthTicketForWebApi

Not favoritedFavorited Favorited 0 favourites
  • Maybe you can try SteamUser()->GetSteamID().ConvertToUint64();? My only theory is that nothing comes up when I search GetStaticAccountKey, but when I search ConvertToUint64 I do see documentation--particularly around Authentication and Ownership.

  • Well, I don't know what the correct code is, so you should ask Valve. It's their software so they must know the answer.

    GetStaticAccountKey() also returns a uint64 and its description says "Converts the static parts of a steam ID to a 64-bit representation." So it looks like there are two methods that could be a 64-bit Steam ID. I don't know which is the right one and I don't want to just change the existing implementation without knowing why, especially as that may be a breaking change. So please ask Valve to clear up the confusion!

  • Still waiting for a reply. But I did ask them.. Hopefully this can be resolved next week—as I'm getting very close to the launch date.

  • I guess we can just make the plugin return both values, and then you can use whichever is appropriate. I just released v1.4.4 of the Steamworks plugin that adds the expressions SteamID64Bit and AppOwnerSteamID64Bit, which each return the ID via ConvertToUint64(), so if that's the one that works you can use it. However it would still be good to hear back from Valve to confirm that's the intended value to use (and not some other kind of ID - there's already 3 variants of the user ID and it wouldn't surprise me if there was a 4th!)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Haha yeah for real. Well, I can happily say SteamID64Bit worked! Thanks so much for the support. I will def update you here once I hear back from Steam :)

  • Oki, I got a reply! Here's what he said:

    Hello,

    From our public header file:

    //-----------------------------------------------------------------------------

    // Purpose: Converts steam ID to its 64-bit representation

    // Output : 64-bit representation of a Steam ID

    //-----------------------------------------------------------------------------

    uint64 ConvertToUint64() const

    {

    return m_steamid.m_unAll64Bits;

    }

    //-----------------------------------------------------------------------------

    // Purpose: Converts the static parts of a steam ID to a 64-bit representation.

    // For multiseat accounts, all instances of that account will have the

    // same static account key, so they can be grouped together by the static

    // account key.

    // Output : 64-bit static account key

    //-----------------------------------------------------------------------------

    uint64 GetStaticAccountKey() const

    {

    // note we do NOT include the account instance (which is a dynamic property) in the static account key

    return (uint64) ( ( ( (uint64) m_steamid.m_comp.m_EUniverse ) << 56 ) + ((uint64) m_steamid.m_comp.m_EAccountType << 52 ) + m_steamid.m_comp.m_unAccountID );

    }

  • Is that all they said? They've just responded by pasting part of a Steamworks SDK header file, without actually answering the question.

  • Yeah.. That's all they said after 1 week

  • Sorry for my ignorance but if you successfully receive a authTicket following a getAuthTicketForWebApi does this confirm the user owns/purchased the app? and how is this related to steam's 'CheckAppOwnership' API?

    Also, with family sharing if a different family member owns the app will that family member successfully return a authTicket?

    Finally if a 'Get auth ticket for web API' fails to be obtained, does this definitely imply the owner or family do not own the app or could there be other reasons for such a fail?

    Thanks.

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)