PC-Xatrix 24. mar. 2020 kl. 8:30
HOSTNAME being ignored in "custom.cfg" unless defined in "server.cfg"
Hello fellow server admins, I am in need for your help/advise,

hl2dm dedicated server does not apply the hostname I specify in my custom server.cfg (e.g. server_27015.cfg). It does not matter if I define it with a startup parameter (srcds.exe +hostname "XYZ" / srcds.exe -hostname "XYZ") or within a cfg file (hostname "XYZ").
It always falls back to what is specified in "server.cfg". In case server.cfg is empty/deleted the hostname for any server instance automatically is "Half-Life 2 Deathmatch".

I want to run several instances for a tournament and have them automatically named like this:

"Tournament 01" on port 27015
"Tournament 02" on port 27016
"Tournament 03" on port 27017
"Tournament 04" on port 27018
"Tournament 05" on port 27019
...
...

I start the servers with the following parameters:

start srcds.exe -console -usercon -game hl2mp +map dm_abyss +maxplayers 16 +hostip X.Y.Z.12 +sv_setsteamaccount XYZ -port 27015 +exec server_27015.cfg

start srcds.exe -console -usercon -game hl2mp +map dm_abyss +maxplayers 16 +hostip X.Y.Z.12 +sv_setsteamaccount XZY -port 27016 +exec server_27016.cfg

start srcds.exe -console -usercon -game hl2mp +map dm_abyss +maxplayers 16 +hostip X.Y.Z.12 +sv_setsteamaccount ZXY -port 27017 +exec server_27017.cfg

start srcds.exe -console -usercon -game hl2mp +map dm_abyss +maxplayers 16 +hostip X.Y.Z.12 +sv_setsteamaccount ZYX -port 27018 +exec server_27018.cfg

start srcds.exe -console -usercon -game hl2mp +map dm_abyss +maxplayers 16 +hostip X.Y.Z.12 +sv_setsteamaccount XYZ -port 27019 +exec server_27019.cfg
...
...

Every other setting I define works as it should. sv_downloadurl for example works fine and the server console responds with the appropriate string "sv_downloadurl" = "http://downloads.xyz.abc/hl2dm/maps/"

Is there something obvious I am missing or doing wrong? If yes, what is it?
Has anyone else experienced the same problem?

Many thanks in advance for your help.
< >
Viser 1-2 af 2 kommentarer
Blaquicat 24. mar. 2020 kl. 9:54 
Hello..

I dont think its recommended to run multiple servers from the same source.

Did you tried with +hostname ?
Everything starting with '-' like -game or -console are command line parameters, '+' things are just commands that are executed when the server starts, hostname is a command.

Another thing you can do is use "+servercfgfile", it changes the default server config file, so you can have a exclusive config file for each server.
PC-Xatrix 24. mar. 2020 kl. 10:36 
MANY THANKS!

"+servercfgfile" solved the problem I was having :-D
< >
Viser 1-2 af 2 kommentarer
Per side: 1530 50

Dato opslået: 24. mar. 2020 kl. 8:30
Indlæg: 2