Difference between revisions of "User:Nosoop/Guide/Game Server Configuration"
m (Move game-specific configs into their own subsection) |
(→Game Specific: Add info on disabling lobbies in L4D2) |
||
Line 24: | Line 24: | ||
The [https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Dedicated_Servers#Advanced_Configuration Advanced Configuration] section on the Valve Developer Wiki describes server configuration unique to CS:GO. It's different from most other mods. | The [https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Dedicated_Servers#Advanced_Configuration Advanced Configuration] section on the Valve Developer Wiki describes server configuration unique to CS:GO. It's different from most other mods. | ||
+ | |||
+ | == Left 4 Dead 2 == | ||
+ | |||
+ | === Disabling lobby system === | ||
+ | |||
+ | While developing plugins, you generally don't want players being connected through Steam's lobby system. Add the following to <code>server.cfg</code>: | ||
+ | |||
+ | <pre>sv_allow_lobby_connect_only "0"; | ||
+ | sv_password "password_to_connect_with"; | ||
+ | </pre> | ||
= Virtual Server Configuration = | = Virtual Server Configuration = |
Revision as of 21:38, 2 November 2020
Source Engine games often differ in configuration; here are some basic suggestions on how to set them up for either testing or production use.
Contents
General
The following section(s) apply to most, if not all games.
Fast Downloads
The Source Engine normally provides downloads over the same channel as gameplay, which is rather slow.
"Fast" downloads are downloads served out-of-band over HTTP, and as such you will need to have an HTTP server up and running to take advantage of this functionality.
This is highly recommended if you are running a server with any amount of custom content that a player needs to download (models, sounds, maps).
sv_downloadurl "http://{your_server_location}/{mod}";
Game Specific
Team Fortress 2
The Dedicated server configuration provides general configuration instructions.
Counter-Strike: Global Offensive
The Advanced Configuration section on the Valve Developer Wiki describes server configuration unique to CS:GO. It's different from most other mods.
Left 4 Dead 2
Disabling lobby system
While developing plugins, you generally don't want players being connected through Steam's lobby system. Add the following to server.cfg
:
sv_allow_lobby_connect_only "0"; sv_password "password_to_connect_with";
Virtual Server Configuration
As a developer, you may need to test on multiple platforms. To avoid having another physical machine to work on, you can use virtualization to run an operating system on your desktop.
Virtualbox
Networking
Enable the Host-Only Adapter on your VM and statically assign the address to be in the same network as your host operating system's adapter. This allows you to connect to the server without any additional networking complexities.