Servercfgfile: Difference between revisions
Jump to navigation
Jump to search
m (added cvar template) |
Thunder4ik (talk | contribs) m (→See also: Unicodifying, replaced: See Also → See also) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{ | {{this is a|console variable|name=servercfgfile}} | ||
'''servercfgfile''' is [[ConVar|console variable]], tells to server which configure file it execute on map start and map change. Default value is '''[[Server.cfg|"server.cfg"]]''' | '''servercfgfile''' is [[ConVar|console variable]], tells to server which configure file it execute on map start and map change. Default value is '''[[Server.cfg|"server.cfg"]]''' | ||
"servercfgfile" = "server.cfg" | "servercfgfile" = "server.cfg" | ||
Line 14: | Line 14: | ||
== See | == See also == | ||
* [[Source Dedicated Server]] | * [[Source Dedicated Server]] | ||
* [[Server]] | * [[Server]] | ||
[[Category:Dedicated Server]] | [[Category:Dedicated Server]] |
Latest revision as of 12:49, 8 January 2024
servercfgfile
is a console variable available in all Source games.
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