Skip to content
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

[HLDS] hostname not working #2078

Closed
ghost opened this issue Dec 18, 2018 · 1 comment
Closed

[HLDS] hostname not working #2078

ghost opened this issue Dec 18, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Dec 18, 2018

Hello,

if I use this start option for HLDS (Linux):

-game cstrike -ip 0.0.0.0 -port 27015 +hostname "testname" +map de_inferno +maxplayers 32

then the server will always be "Counter-Strike 1.6 Server" named. I know it is available to change over config but I am curious if this console variable is just for me broken.

EDIT:
Server version:

48/1.1.2.7/Stdio 7882 secure  (10)
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 17:23:32 May 24 2018 (7882)
@baso88
Copy link

baso88 commented Dec 31, 2018

The CVAR is not broken. If you want to set its value from the command line, you have to remove or comment out the "hostname" line in your server config file ("cstrike/server.cfg" by default).

It has always been like this. Commands/CVARs passed from the command line are executed first, before the actual server configuration file. So CVAR values defined in the config file will override anything passed from the command line.

@ghost ghost closed this as completed Oct 23, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants