-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to change "Hostname" Insurgency Sandstorm ? #80
Comments
That should be easy enough. Currently things are pretty hardcoded, my general rule of thumb is to look at the official config for a game: I look for a config name then manually add it in this file with I also likely need to update the base LGSM src for Insurgency since I think that was just added. I might try to do this tonight, or more likely, I've been meaning to try to make the config building more dynamic, so that in this case you could have just set the env var "LGSM_SERVERNAME" and it would have automatically put into the common.cfg |
I will wait thanks ;) |
ok, so I don't own the game and can't actually test it myself, but using https://github.com/joshhsoj1902/linuxgsm-docker/blob/master/examples/docker-compose.inss.yml seemed to start the server and it looked happy enough. Right now you'll be able to set any setting in using env vars, So if you want to set the If the setting you want to change is part of a config file, I could also add support for that, just tell me where the config file lives. |
env var "LGSM_SERVERNAME" does not work for me. |
After update "LGSM_PORT" not work for left 4 dead 2 Edit work after change :
Sorry for bad english, i'm french |
Your English is fine :) Strange, admittedly I didn't test changing the ports after my change, I just used the default. I'll try it out tonight and see what I can find. Same goes for L4D2, I've had a lot of trouble getting it to run inside this docker container, it always seems to fail for one reason or another... I'll keep you posted! |
I believe I found the issue with L4D2: #87 I released |
I just tried starting up sandstorm with My compose file looks like this:
I started it like this:
And it looks like the hostname is being set:
Are you seeing something different? |
I will give up, the servers are still in beta for the moment .. |
it works now ! thanks Now it would be necessary to be able to change "defaultscenario" >__<
So my server remains blocked to 8 players in coop .. :( |
So you should be able to the default scenario the same way https://github.com/GameServerManagers/LinuxGSM/blob/master/lgsm/config-default/config-lgsm/inssserver/_default.cfg LGSM_DEFAULTSCENARIO foo Max players can be set the same way. LGSM_MAXPLAYERS I'll need to look at the code, something might be defaulting to 8 players instead of the 28 in the file above. |
Oh Nice ! Thanks ! Close issue :) |
The env walking is a pretty new feature. but the old way of me manually adding each config that each game could support was getting a little out of hand =D. If you run into any issues let me know. I'm going to be slowly changing this project to potentially become the official image for LinuxGSM (#85). so if there are any areas that you feel need improvement let me know! |
Hi
Is it possible to have an env to change the name of the server ?
Thanks
The text was updated successfully, but these errors were encountered: