Steamworks.NET icon indicating copy to clipboard operation
Steamworks.NET copied to clipboard

20.2.0 SDK 1.57 GetAuthTicketForWebApi EntryPointNotFoundException

Open RugbugRedfern opened this issue 2 years ago • 4 comments

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");
}

RugbugRedfern avatar Jun 09 '23 22:06 RugbugRedfern

same issue

ZayNepz avatar Jun 10 '23 09:06 ZayNepz

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".

watchdogac avatar Jun 12 '23 10:06 watchdogac

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.

cephalo3 avatar Jun 18 '23 18:06 cephalo3

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

ZayNepz avatar Jun 18 '23 19:06 ZayNepz