code-disaster / steamworks4j

A thin Java wrapper to access the Steamworks API
https://code-disaster.github.io/steamworks4j/
MIT License
468 stars 64 forks source link

Failed trying to load steamclient.so on server #100

Closed dan335 closed 3 years ago

dan335 commented 3 years ago

I'm getting the following error when deploying my game server.

dlopen failed trying to load: 
steamclient.so 
with error: 
steamclient.so: cannot open shared object file: No such file or directory 
[S_API FAIL] SteamAPI_Init(): Sys_LoadModule failed to load: steamclient.so 
[S_API FAIL] SteamAPI_Init() failed 
Steam initialization error. 

The game server is running inside a Debian docker container. Everything works fine locally.

Where does steamclient.so come from? Do I need to install it somehow?

dan335 commented 3 years ago

I should add that I'm only using the SteamGameServerAPI not SteamAPI. SteamGameServerAPI shouldn't need steamclient.so correct?

dan335 commented 3 years ago

I got it working. I installed steamcmd with these instructions https://developer.valvesoftware.com/wiki/SteamCMD then ran ./steamcmd +quit which downloads steamclient.so. Then copied steamclient.so to /lib.