rlabrecque / Steamworks.NET

Steamworks wrapper for Unity / C#
http://steamworks.github.io
MIT License
2.82k stars 368 forks source link

20.2.0 SDK 1.57 GetAuthTicketForWebApi EntryPointNotFoundException #558

Closed RugbugRedfern closed 4 months ago

RugbugRedfern commented 1 year ago

Hi, after upgrading to the newest version of the SDK via the .unitypackage with Unity 2019.4.17f1 in order to use the GetAuthTicketForWebApi method, I recieve the following error when I call GetAuthTicketForWebApi:

EntryPointNotFoundException: SteamAPI_ISteamUser_GetAuthTicketForWebApi
Steamworks.SteamUser.GetAuthTicketForWebApi (System.String pchIdentity) (at Assets/com.rlabrecque.steamworks.net/Runtime/autogen/isteamuser.cs:207)
SteamAuthenticationManager.Start () (at Assets/_Scripts/SteamAuthenticationManager.cs:35)

This is the code I'm running to produce the error:

static Callback<GetTicketForWebApiResponse_t> getTicketForWebApiResponse;
static HAuthTicket authTicket;

void Start()
{
    getTicketForWebApiResponse = Callback<GetTicketForWebApiResponse_t>.Create(OnGetTicketForWebApiResponse);
    authTicket = SteamUser.GetAuthTicketForWebApi("");

    Debug.Log("getting auth ticket");
}
ZayNepz commented 1 year ago

same issue

watchdogac commented 1 year ago

Hi, after upgrading to the newest version of the SDK via the .unitypackage with Unity 2019.4.17f1 in order to use the GetAuthTicketForWebApi method, I recieve the following error when I call GetAuthTicketForWebApi:

EntryPointNotFoundException: SteamAPI_ISteamUser_GetAuthTicketForWebApi
Steamworks.SteamUser.GetAuthTicketForWebApi (System.String pchIdentity) (at Assets/com.rlabrecque.steamworks.net/Runtime/autogen/isteamuser.cs:207)
SteamAuthenticationManager.Start () (at Assets/_Scripts/SteamAuthenticationManager.cs:35)

This is the code I'm running to produce the error:

static Callback<GetTicketForWebApiResponse_t> getTicketForWebApiResponse;
static HAuthTicket authTicket;

void Start()
{
  getTicketForWebApiResponse = Callback<GetTicketForWebApiResponse_t>.Create(OnGetTicketForWebApiResponse);
  authTicket = SteamUser.GetAuthTicketForWebApi("");

  Debug.Log("getting auth ticket");
}

Hello, I believe this is caused due to your steam_api64.dll version, The "EntryPointNotFoundException" is thrown when C# fails to find an exported function, old versions of the steam_api64.dll do not have "SteamAPI_ISteamUser_GetAuthTicketForWebApi" exported, Hence you're receiving this error.

Try updating the DLL to the latest version. It should be located at "sdk\redistributable_bin\win64".

cephalo3 commented 1 year ago

Before you install the latest version of Steamworks.NET over a pre 20.0 version, make sure to clean up all the old stuff first. It's a bit easier said than done because the old versions were spread throughout your project. I'm sure you're just finding the old dll.

ZayNepz commented 1 year ago

Ok, it was interfering with an older version of Heathen Steamworks. Got it fixed.