03-03-2010, 04:45 AM
I'll tell ya, the server config is tricky for L4D2. It's the only game I have really had to be careful what I put in the server config. I finally got mine working and being stable over the weekend.
Try this config:
Try this config:
Code:
hostname Your L4D2 Server // this is your server name as shown in the server list (no quotes)
// start rcon settings
rcon_password P@ssw0rd! // your rcon password to log into the dev rcon console or HLSW rcon console (no quotes)
// end rcon settings
// L4D cvars
sv_password “” // your server password. a pair of double quotes means it is not set and anyone can join
motd_enabled 1 //This enables or disables the message of the day.
sv_allow_lobby_connect_only 0 //People will only be able to connect from lobby, change to 0 to allow people to join a game in progress
sv_search_key Wicked Awesome L4D2 server //This will allow you to connect to your server from the lobby. (no quotes)
//By setting a sv_search_key in the demo it will keep random players from filling up the server.
// end L4D cvars
// start client specific cvars
sv_cheats 0 // allow cheats to be used by the client. 0 is off 1 is on
sv_consistency 1 // Force clients to pass a consistency check for critical files before joining server. 0 is off 1 is on
// end client specific cvars
// start cvars for communication
sv_voiceenable 1 // allow players to use a microphone. 0 is off 1 is on
sv_alltalk 0 // toggles whether both teams can hear each others voice comms or not. 0 is off 1 is on. recommend it being off
// end cvars for communication
// bandwidth rates/settings
sv_maxcmdrate 100
cl_cmdrate 30
cl_updaterate 20
rate 20000
sv_minrate 5000
sv_maxrate 8000
// end bandwidth rates/settings
// start server logging
log on // enable or disable server logging. on is on off is off
sv_logbans 1 // Log server bans in the server logs
sv_logecho 0 // Echo log information to the console. 0 is off 1 is on
sv_logfile 1 // Log server information in the log file. 0 is off 1 is on
sv_log_onefile 0 // log everything in one file
// end server logging
// start cvars for general operation
//hostport 27015 (mine is defined in the start up cmd)
sv_lan 0 // is this an internet or LAN server. 0 is internet 1 is LAN
sv_contact ryan.horman@gmail.com // contact email for sysop
sv_pausable 0 // enables or disables whether the server can be paused. 0 is off 1 is on
sv_region 0 // Region Codes: 0 - US East coast, 1 - US West coast, 2 - South America, 3 - Europe, 4 - Asia, 5 - Australia, 6 - Middle East, 7 - Africa, 255 - world
// end cvars for general operation
// execute
exec banned_user.cfg
exec banned_ip.cfg
writeid
writeip
// end of execute
// other
mp_disable_autokick 1