Monogame Cross-Platform project and Steam

Hey, so i’ve been trying to port my game using the cross-platform project template. I can get it running on Windows but when i try it on Linux with monokickstart i only get an error saying “System.DLLNotFoundException: steam_api64”
It’s weird that i get this error because steam_api64.dll exists in the same folder as the .exe. Has anyone ran into a similar problem and got a fix for it?

Here’s the full error btw
Unhandled Exception: System.DllNotFoundException: steam_api64 at (wrapper managed-to-native) Steamworks.NativeMethods:SteamAPI_RegisterCallback (intptr,int) at Steamworks.Callback1[T].Register (Steamworks.Callback1+DispatchDelegate[T] func) [0x00053] in <e2c16db8661b4ac2b840d9f3e82aff69>:0 at Steamworks.Callback1[T]…ctor (Steamworks.Callback1+DispatchDelegate[T] func, System.Boolean bGameServer) [0x00033] in <e2c16db8661b4ac2b840d9f3e82aff69>:0 at Steamworks.Callback1[T].Create (Steamworks.Callback1+DispatchDelegate[T] func) [0x00000] in <e2c16db8661b4ac2b840d9f3e82aff69>:0 at VelvetGuard.Game1..ctor (System.String[] args) [0x0012a] in <e36ec2cf99f34748979e6c100bdbdbfe>:0 at Velvet_Guard.Program.Main (System.String[] args) [0x00001] in <76143df95a4f4a76962cd91be21bce69>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.DllNotFoundException: steam_api64 at (wrapper managed-to-native) Steamworks.NativeMethods:SteamAPI_RegisterCallback (intptr,int) at Steamworks.Callback1[T].Register (Steamworks.Callback1+DispatchDelegate[T] func) [0x00053] in <e2c16db8661b4ac2b840d9f3e82aff69>:0 at Steamworks.Callback1[T]…ctor (Steamworks.Callback1+DispatchDelegate[T] func, System.Boolean bGameServer) [0x00033] in <e2c16db8661b4ac2b840d9f3e82aff69>:0 at Steamworks.Callback1[T].Create (Steamworks.Callback1+DispatchDelegate[T] func) [0x00000] in <e2c16db8661b4ac2b840d9f3e82aff69>:0 at VelvetGuard.Game1..ctor (System.String[] args) [0x0012a] in <e36ec2cf99f34748979e6c100bdbdbfe>:0 at Velvet_Guard.Program.Main (System.String[] args) [0x00001] in <76143df95a4f4a76962cd91be21bce69>:0 AL lib: (EE) alc_cleanup: 1 device not closed

Okey, i think i’ve found the issue. All i had to do was change the lib files name to steam_api64.

At least someone can use this as a future reference i guess :grin:

1 Like