CM2Walki / CSGO

Dockerfile for automated build of a CS:GO gameserver: https://hub.docker.com/r/cm2network/csgo/

Home Page:https://CM2.Network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem with Steam API Key and Workshop Maps

roestzwiee opened this issue · comments

Hello,

First Thank You for this great docker image.

I'm having a bit of trouble with loading the correct and perfect config files when creating a new container, but I will find a way past there. (Currently it is a copy and paste but) I thought of extending this image.

Unfortunately, I cannot load any workshop maps with the given parameters:

-e SRCDS_WORKSHOP_AUTHKEY={XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX}
-e SRCDS_HOST_WORKSHOP_COLLECTION={2281264614}

There is a LOG file of the container startup attached. I think the error is caused in line

2091: [S_API FAIL] SteamAPI_Init() failed; create pipe failed.[S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
ProblemLogInstallAPIKey.txt

Can someone verify this problem or am I doing it wrong?

From your logs:

Usage: sv_setsteamaccount <login_token>
Usage: host_workshop_collection <fileid>
Invalid file id.

I guess this indicates that you are either missing SRCDS_TOKEN or that the collection you passed is invalid.

-e SRCDS_HOST_WORKSHOP_COLLECTION={2281264614}

Is that how you passed it to the docker run? I'm unaware of this "{}" syntax of environment variables, is this valid?

Okay, I was wrong with my "{}" syntax. It works completely fine!

I added all my environmental parameters with the "{}" syntax. Some of them, like rcon password, worked fine. So I expected this is the way to go.

Thank you, for your fast response.