Facepunch / Facepunch.Steamworks

Another fucking c# Steamworks implementation
MIT License
2.92k stars 349 forks source link

EntryPointNotFoundException on SteamAPI_Init (using latest Steamworks SDK) #783

Closed PedroMarangon closed 1 month ago

PedroMarangon commented 1 month ago

Hi guys, I'm getting this error when I try to test my Unity game with Steam open (just implemented achievements and I want to test them). Does anyone know what I can do to fix this?

System.EntryPointNotFoundException: SteamAPI_Init assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) Steamworks.SteamAPI+Native.SteamAPI_Init()
  at Steamworks.SteamAPI.Init () [0x00001] in D:\STEAMWORKS_FACEPUNCH\Facepunch.Steamworks\Classes\SteamApi.cs:31 
  at Steamworks.SteamClient.Init (System.UInt32 appid, System.Boolean asyncCallbacks) [0x00039] in D:\STEAMWORKS_FACEPUNCH\Facepunch.Steamworks\SteamClient.cs:26 

I'm using the latest version of Facepunch (compiled from source), and the Steamworks SDK version 1.60.

The error happens when I call SteamClient.Init(appId) at the very start of the game (code snapshot below - in this case, neither forceDemoAppID or forceMainAppID are active, but it still happens when either is active) image

Boy132 commented 1 month ago

You need the changes from https://github.com/Facepunch/Facepunch.Steamworks/pull/773 to use 1.6.0

PedroMarangon commented 1 month ago

Thenk you @Boy132 !!