Difference between revisions of "Servercfgfile"

From Valve Developer Community
Jump to: navigation, search
(Created page with "'''servercfgfile''' is console variable, tells to server which configure file it execute on map start and map change. Default value is '''[[Server.cfg|"server.cfg"]...")
 
m
 
Line 11: Line 11:
 
Or, if you have forked servers, multiple servers launched from same program, use launch parameter. Add config file to each server, if you like.
 
Or, if you have forked servers, multiple servers launched from same program, use launch parameter. Add config file to each server, if you like.
 
  -console -game tf +map cp_dustbowl <span style="color:red">+servercfg server_1.cfg</span>
 
  -console -game tf +map cp_dustbowl <span style="color:red">+servercfg server_1.cfg</span>
 +
 +
 +
== See Also ==
 +
* [[Source Dedicated Server]]
 +
* [[Server]]
 +
[[Category:Dedicated Server]]

Latest revision as of 20:09, 5 April 2020

servercfgfile is console variable, tells to server which configure file it execute on map start and map change. Default value is "server.cfg"

"servercfgfile" = "server.cfg"


You can tell server to use another file than default server.cfg, from:

...cfg/autoexec.cfg

servercfgfile "my_server.cfg"


Or, if you have forked servers, multiple servers launched from same program, use launch parameter. Add config file to each server, if you like.

-console -game tf +map cp_dustbowl +servercfg server_1.cfg


See Also