http://forums.steampowered.com/forums/showthread.php?t=752866
Install Tool
Left 4 Dead servers are more or less the same as any other source basedgame server, Firstly you will need to download the HLDSUpdateTool from here.
How to download the server files
HldsUpdateTool.exe -command update -game left4dead -dir c:\serverpath
or
HldsUpdateTool.exe -command update -game left4dead -dir .
to install to the present directory
General info
openserverbrowser - in the console of the L4D client - all games are listed under the custom tab
Banner
File to edit - host.txt
Maximum Dimensions - 500 x 100
Make one line in the txt file :
http link to banner image
example - http://my.example.com/banner.png
MOTD
File to edit - motd.txt
standard motd, same as any other server
or you can have an image as with the host.txt file, using the same method.
The server executable
You will find an exe file in the L4D directory labelled srcds.exe,this is the server executable and the program you need to run to startthe server but you need to specify some options after the exe.
i.e. :
srcds.exe -console -game left4dead-maxplayers 8 -autoupdate +ip 99.99.99.99:99999 -port 27500 +sv_lan 0+map l4d_vs_farm01_hilltop
Here are explanations of the different commandline options :
-console : This will display a console that you can type commands into
-game left4dead : This specifies the type of server to run, you can use it for CSS, DODS, etc
-maxplayers 8: This will specify the max number of players the server will allow, setting it to 8 should allow you to use versus mode
-autoupdate : This will make the server check and update to the latest version when you launch it
+ip 99.99.99.99 : This will specify the IP address for the server to run on, this proves useful for running multiple servers on one computer
-port 27500 : This will specify the port for the server to run on
+sv_lan 0 : This will force the server to run on the internet instead of just on a lan
+map l4d_vs_farm01_hilltop : This will specify the map to start the server with, you must add this to the commandline for the server to start
Different types of servers you can run
Public Server
Public Server With Steamgroup Enabled - player is a specifid steam group will be able to connect to the server
Private Server With Steamgroup and Search Key Option
Public Server
Quote:
commandline options
-console -game left4dead -maxplayers 4 -autoupdate +map l4d_hospital01_apartment +ip xx.xx.xx.xx -port 27015 -nohltv +sv_lan 0
server.cfg contents
// server name
hostname myserver
// password for rcon
rcon_password "rcon_pass"
// Difficulty of the current game (easy, normal, hard, impossible)
z_difficulty normal |
Public Server With Steamgroup Enabled
Quote:
commandline options
-console -game left4dead -maxplayers 4 -autoupdate +map l4d_hospital01_apartment +ip xx.xx.xx.xx -port 27015 -nohltv +sv_lan 0
server.cfg contents
// server name
hostname myserver
// password for rcon
rcon_password "rcon_pass"
// Difficulty of the current game (easy, normal, hard, impossible)
z_difficulty normal
// this will allow your server to be listed in the server browser
setmaster add 68.142.72.250:27011
setmaster add 72.165.61.189:27011
// steam group that has access to the server
sv_steamgroup 12345 |
Private Server With Steamgroup and Search Key Option
Quote:
commandline options
-console -game left4dead -maxplayers 4 -autoupdate +mapl4d_hospital01_apartment +ip xx.xx.xx.xx -port 27015 -nohltv +sv_lan 0-nomaster
server.cfg contents
// server name
hostname myserver
// password for rcon
rcon_password "rcon_pass"
// password for server
sv_password private_pass
// Difficulty of the current game (easy, normal, hard, impossible)
z_difficulty normal
// this will allows you to find a server through matchmaking with a specific search string
sv_search_key unique_key_for_server
// steam group that has access to the server
sv_steamgroup 12345
// only for members of certain steam group
sv_steamgroup_exclusive 1 |
VS - CO-OP
L4D offers two gameplay modes.
VS - 4 on 4 survivor versus zombies.. human players on both sides.
CO-OP - 4 survivors fight together through the single player maps. 4 human players vs AI
The style of play is determined by the type of map loaded. themaxplayers startup option does not appear to have any affect on the maxnumber of players.
l4d_hospital01_apartment - coop map 4 players max
l4d_vs_farm01_hilltop - versus map 8 players max
Also this CVAR controls the game server mode
"director_no_human_zombies" = "1"
- Prevents humans from joining the zombie team
Notes
sv_search_key - lets you set up a server that can be found viamatchmaking, but only by people with a matching sv_search_key. Thisallows you to set up a server you or your friends can play on and stilluse the existing matchmaking lobby to set up avatars, difficulty, map,etc.
To use the sv_search_key here is what you do.
1.) Set sv_search_key on your server.
ex. sv_search_key myserver
2.) Have the host client (the one who will be creating the lobby) set the
same sv_search_key in their console.
3.) Host client should now create the lobby.
4.) Other clients connect. Once the game is ready to be started, have the
host hit start game. Now you should join your server as long as there is a
server available with that search key.
sv_steamgroup - takes the Steam group number (which is nowvisible on the group's administrative page). The server will still bepart of matchmaking, but users that are in that group will be able tobrowse directly to it from the main menu. Also, if this value is set,there will be a button near the message of the day that allows users togo directly to that group's page. This allows them to join that groupif they like, and then be able to browse back to it in the future.
Please let me know if you spot any errors, this is by no means adefinitive guide. I am just trying to compile all the info I have foundinto one spot. If you have anything to add or change please feel freeto suggest accordingly. |