Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Additional params to srcds #15

Closed
AnkushJadhav opened this issue May 2, 2020 · 9 comments · Fixed by #26
Closed

Additional params to srcds #15

AnkushJadhav opened this issue May 2, 2020 · 9 comments · Fixed by #26
Assignees
Labels
question Further information is requested

Comments

@AnkushJadhav
Copy link

Currently I can see that only a certain number of parameters are passed to srcds, and these can be overridden with environment variables.

Is it possible to configure additional parameters for srcds at container startup?

@CM2Walki CM2Walki self-assigned this May 2, 2020
@CM2Walki CM2Walki added the question Further information is requested label May 2, 2020
@CM2Walki
Copy link
Owner

CM2Walki commented May 2, 2020

Hey @AnkushJadhav,

you can start a container and then adapt the start command in the entry.sh file located here: /home/steam/csgo-dedicated/entry.sh

What exactly are you trying to override? Maybe I can add it to the image if it's important.

@sasanmcp
Copy link

sasanmcp commented May 6, 2020

for starter, I want the +hostname there in entry.sh with a corresponding parameter in container. this way once the container is up, we'd see our own host name rather than whatever is hard-coded in the container image.

@CM2Walki
Copy link
Owner

CM2Walki commented May 6, 2020

Sure, can do. I'll probably look into it this weekend. I have another PR I wanted to finally apply anyways, might expose the new cvars as well then.

@sasanmcp
Copy link

sasanmcp commented May 7, 2020 via email

@CM2Walki
Copy link
Owner

CM2Walki commented May 7, 2020

Did you pass the SRCDS_TOKEN? Other than that my second guess would be firewall related.

And no, I haven't run on CaaS. I try to cut as many virtualization layers as possible from my game servers, they all come with extra latency and less/no control over the kernel. Running servers at high tickrates on virtualized hardware is not going to give you good results.

@sasanmcp
Copy link

sasanmcp commented May 7, 2020 via email

@CM2Walki
Copy link
Owner

CM2Walki commented May 8, 2020

You need to open 27015/tcp as well.

https://developer.valvesoftware.com/wiki/Source_Dedicated_Server

@AnkushJadhav
Copy link
Author

@CM2Walki Thanks for your prompt reply.

I was trying to host a workshop collection but didn't find the required params being passed to srcds in entry.sh.

For starters, the provisioning for "workshop_start_map", "host_workshop_collection", "authkey".

Yep, I ended up modifying the entry.sh file, but it would be good if basic configs like these are already provided.

@CM2Walki
Copy link
Owner

Added cvars:

SRCDS_HOSTNAME
SRCDS_WORKSHOP_START_MAP
SRCDS_HOST_WORKSHOP_COLLECTION
SRCDS_WORKSHOP_AUTHKEY
SRCDS_NET_PUBLIC_ADDRESS
SRCDS_IP

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants