Left 4 Dead 2 | Dedicated Servers Setup Guide | Windows Tutorial | Steam and Non-Steam Users | Dedicated Server Patch 2.5 | Updated 17th May 2015

















Posted 27 September 2012 - 19:33
+login anonymous +force_install_dir <your server directory here> +app_update 222860 validate +quit
C:\SteamCMD\steamcmd.exe +login anonymous +force_install_dir C:\L4D2_DS +app_update 222860 validate +quit
+login anonymous +force_install_dir <your server directory here> +app_update 222860 validate +quit
///////////////////////// //Server info hostname "Your server name here" // write your server name here. rcon_password "Your rcon password here" // write your rcon password here. z_difficulty Normal // change your difficulty here, difficulties are Easy, Normal, Hard and Impossible. motd_enabled 1 sm_cvar mp_gamemode coop // Default (coop) change this to the mode you want. sv_tags no-steam // the tags people have to type in the server browser to find your server (always keep "no-steam" tag). sm_cvar sb_all_bot_game 1 ///////////////////////// //Internet, region, lobby setup hostport 27015 sv_lan 0 sv_region 255 sv_allow_lobby_connect_only 0 ///////////////////////// //Game Settings mp_disable_autokick 1 //(command)prevents a userid from being auto-kicked (Usage mp_diable_autokick ) sv_allow_wait_command 0 //default 1; Allow or disalow the wait command on clients connected to this server. sv_alternateticks 0 //defulat 0; (singleplayer)If set, server only simulates entities on even numbered ticks. sv_clearhinthistory 0 //(command)Clear memory of server side hint displayed to the player. sv_consistency 0 //default 1; Whether the server enforces file consistency for critical files sv_pausable 0 //default 0; is the server pausable sv_forcepreload 1 //default 0; Force server side preloading sv_pure_kick_clients 0 //default 1; If set to 1, the server will kick clients with mismatchng files. Otherwise, it will issue a warning to the client. sv_pure 0 //If set to 1, server will force all client files execpt whitelisted ones (in pure_server_whitelist.txt) to match server's files. //If set to 2, the server will force all clietn files to come from steam and not load pure_server_whilelist.txt. Set to 0 for disabled. ///////////////////////// //communication sv_voiceenable 1 //default 1; enable/disable voice comm sv_alltalk 0 //default 0; Players can hear all other players' voice communication, no team restrictions ///////////////////////// //LOGGING log on //Creates a logfile (on | off) sv_logecho 0 //default 0; Echo log information to the console. sv_logfile 1 //default 1; Log server information in the log file. sv_log_onefile 0 //default 0; Log server information to only one file. sv_logbans 1 //default 0;Log server bans in the server logs. sv_logflush 0 //default 0; Flush the log files to disk on each write (slow). sv_logsdir logs //Folder in the game directory where server logs will be stored. ///////////////////////// //Bans // execute banned.cfgs at server start. Optimally at launch commandline. // Put writeip/wrtieid commands in the bottom of server.cfg AFTER banned.cfgs have loaded. exec banned_user.cfg //loads banned users' ids exec banned_ip.cfg //loads banned users' ips writeip //Save the ban list to banned_ip.cfg. writeid //Wrties a list of permanently-banned user IDs to banned_user.cfg. ///////////////////////// //Master server - "setmaster" - enable/disable master servers. //Usage: setmaster ///////////////////////// //Network Tweaks - Increase network performance rate 10000 //default 10000; Max bytes/sec the host can recieve data sv_minrate 15000 //default "5000"; Min bandwidth rate allowed on server, 0 = unlimited sv_maxrate 30000 //default "0"; Max bandwidth rate allowed on server, 0 = unlimited sv_mincmdrate 20 //default 0; This sets the minimum value for cl_cmdrate. 0 = unlimited [cevo=67] sv_maxcmdrate 33 //default 40; (If sv_mincmdrate is > 0), this sets the maximum value for cl_cmdrate. [cevo=101]
C:\L4D2_DS\srcds.exe -console -game left4dead2 +exec server.cfg +map c1m1_hotel
Posted 28 September 2012 - 12:12
// // READ THIS CAREFULLY! SEE BOTTOM FOR EXAMPLES // // For each admin, you need three settings: // "identity" "permissions" "password" // // For the Identity, you can use a SteamID or Name. To use an IP address, prepend a ! character. // For the Permissions, you can use a flag string and an optional password. // // PERMISSIONS: // Flag definitions are in "admin_levels.cfg" // You can combine flags into a string like this: // "abcdefgh" // // If you want to specify a group instead of a flag, use an @ symbol. Example: // "@Full Admins" // // You can also specify immunity values. Two examples: // "83:abcdefgh" //Immunity is 83, flags are abcdefgh // "6:@Full Admins" //Immunity is 6, group is "Full Admins" // // Immunity values can be any number. An admin cannot target an admin with // a higher access value (see sm_immunity_mode to tweak the rules). Default // immunity value is 0 (no immunity). // // PASSWORDS: // Passwords are generally not needed unless you have name-based authentication. // In this case, admins must type this in their console: // // setinfo "KEY" "PASSWORD" // // Where KEY is the "PassInfoVar" setting in your core.cfg file, and "PASSWORD" // is their password. With name based authentication, this must be done before // changing names or connecting. Otherwise, SourceMod will automatically detect // the password being set. // //////////////////////////////// // Examples: (do not put // in front of real lines, as // means 'comment') // // "STEAM_0:1:16" "bce" //generic, kick, unban for this steam ID, no immunity // "!127.0.0.1" "99:z" //all permissions for this ip, immunity value is 99 // "BAILOPAN" "abc" "Gab3n" //name BAILOPAN, password "Gab3n": gets reservation, generic, kick // ////////////////////////////////
//////////////////////////////// // Examples: (do not put // in front of real lines, as // means 'comment') // // "STEAM_0:1:16" "bce" //generic, kick, unban for this steam ID, no immunity // "!127.0.0.1" "99:z" //all permissions for this ip, immunity value is 99 // "BAILOPAN" "abc" "Gab3n" //name BAILOPAN, password "Gab3n": gets reservation, generic, kick // //////////////////////////////// "STEAM_1:0:1363060041" "99:z"
/** * This file is used to set various options that are important to SourceMod's core. * If this file is missing or an option in this file is missing, then the default values will be used. */ "Core" { /** * This option determines if SourceMod logging is enabled. * * "on" - Logging is enabled (default) * "off" - Logging is disabled */ "Logging" "on" /** * This option determines how SourceMod logging should be handled. * * "daily" - New log file is created for each day (default) * "map" - New log file is created for each map change * "game" - Use game's log files */ "LogMode" "daily" /** * Language that multilingual enabled plugins and extensions will use to print messages. * Only languages listed in languages.cfg are valid. * * The default value is "en" */ "ServerLang" "en" /** * String to use as the public chat trigger. Set an empty string to disable. */ "PublicChatTrigger" "!" /** * String to use as the silent chat trigger. Set an empty string to disable. */ "SilentChatTrigger" "/" /** * If a say command is a silent chat trigger, and is used by an admin, * but it does not evaluate to an actual command, it will be displayed * publicly. This setting allows you to suppress accidental typings. * * The default value is "no". A value of "yes" will supress. */ "SilentFailSuppress" "no" /** * Password setinfo key that clients must set. You must change this in order for * passwords to work, for security reasons. */ "PassInfoVar" "_password" /** * Specifies the sound that gets played when an item is selected from a menu. */ "MenuItemSound" "buttons/button14.wav" /** * Specifies the sound that gets played when an "Exit" button is selected * from a menu. */ "MenuExitSound" "buttons/combine_button7.wav" /** * Specifies the sound that gets played when an "Exit Back" button is selected * from a menu. This is the special "Back" button that is intended to roll back * to a previous menu. */ "MenuExitBackSound" "buttons/combine_button7.wav" /** * Enables or disables whether SourceMod reads a client's cl_language cvar to set * their language for server-side phrase translation. * * "on" - Translate using the client's language (default) * "off" - Translate using default server's language */ "AllowClLanguageVar" "On" /** * Enables or Disables SourceMod's automatic gamedata updating. * * The default value is "no". A value of "yes" will block the Auto Updater. */ "DisableAutoUpdate" "no" /** * If set to yes, a successful gamedata update will attempt to restart SourceMod. * SourceMod is unloaded and reloaded, and the map is changed to the current map. * Since gamedata updates occur when the server loads, impact should be minimal. * But to be safe, this option is disabled by default. */ "ForceRestartAfterUpdate" "no" /** * URL to use for retrieving update information. * SSL is not yet supported. */ "AutoUpdateURL" "http://update.sourcemod.net/update/" /** * Whether to show debug spew. * Currently this will log details about the gamedata updating process. */ "DebugSpew" "no" /** * If set to yes, SourceMod will validate steamid auth strings with the Steam backend before giving out admin access. * This can prevent malicious users from impersonating admins with stolen Steam apptickets. * If Steam is down, admins will not be authenticated until Steam comes back up. * In general, this option should be set to "yes" to increase the security of your server. */ "SteamAuthstringValidation" "yes" /** * Enables or disables whether SourceMod blocks known or potentially malicious plugins from loading. * It is STRONGLY advised that this is left enabled, there have been cases in the past with plugins that * allow anyone to delete files on the server, gain full rcon control, etc. * * "yes" - Block malware or illegal plugins from loading (default) * "no" - Warn about malware or illegal plugins loading */ "BlockBadPlugins" "yes" }
/** * If set to yes, SourceMod will validate steamid auth strings with the Steam backend before giving out admin access. * This can prevent malicious users from impersonating admins with stolen Steam apptickets. * If Steam is down, admins will not be authenticated until Steam comes back up. * In general, this option should be set to "yes" to increase the security of your server. */ "SteamAuthstringValidation" "yes"
/** * If set to yes, SourceMod will validate steamid auth strings with the Steam backend before giving out admin access. * This can prevent malicious users from impersonating admins with stolen Steam apptickets. * If Steam is down, admins will not be authenticated until Steam comes back up. * In general, this option should be set to "yes" to increase the security of your server. */ "SteamAuthstringValidation" "no"
sv_maxplayers "your max number of survivors and infected here" ---> if you are hosting coop mode, make this number for survivors only, if you are hosting versus, then for both survivors and infected players. sv_visiblemaxplayers "the visible number of your max players here" l4d_survivor_limit "the max number of survivors you want here" l4d_infected_limit "the max number of infected you want here" sv_force_unreserved 1
sm_cvar mp_gamemode coop // Default (coop) change this to the mode you want.
"ForceMissionChangerSettings" { "c1m4_atrium" { "next mission map" "c6m1_riverbank" "next mission name" "The Passing" } "c6m3_port" { "next mission map" "c2m1_highway" "next mission name" "Dark Carnival" } "c2m5_concert" { "next mission map" "c3m1_plankcountry" "next mission name" "Swamp Fever" } "c3m4_plantation" { "next mission map" "c4m1_milltown_a" "next mission name" "Hard Rain" } "c4m5_milltown_escape" { "next mission map" "c5m1_waterfront" "next mission name" "The Parish" } "c5m5_bridge" { "next mission map" "c7m1_docks" "next mission name" "The Sacrifice" } "c7m3_port" { "next mission map" "c8m1_apartment" "next mission name" "No Mercy" } "c8m5_rooftop" { "next mission map" "c9m1_alleys" "next mission name" "Crash Course" } "c9m2_lots" { "next mission map" "c10m1_caves" "next mission name" "Death Toll" } "c10m5_houseboat" { "next mission map" "c11m1_greenhouse" "next mission name" "Dead Air" } "c11m5_runway" { "next mission map" "c12m1_hilltop" "next mission name" "Blood Harvest" } "c12m5_cornfield" { "next mission map" "c13_alpinecreek" "next mission name" "Cold Stream" } "c13m4_cutthroatcreek" { "next mission map" "c1m1_hotel" "next mission name" "Dead Center" } }
"ForceMissionChangerSettings" { "c1m4_atrium" { "next mission map" "c7m1_docks" "next mission name" "The Sacrifice" }
hostname "Your dedicated server name here" // write your server name here.
hostname "GameTrackerClaimServer" // write your server name here.
Posted 29 September 2012 - 12:00
BrockLesnar05, on 28 September 2012 - 12:12, said:
Posted 29 September 2012 - 17:13
SFK, on 28 September 2012 - 11:27, said:
SFK, on 29 September 2012 - 12:00, said:
Posted 01 October 2012 - 02:15
This post has been edited by Lukashenko: 01 October 2012 - 02:36
Posted 01 October 2012 - 02:38
Lukashenko, on 01 October 2012 - 02:15, said:
This post has been edited by Lukashenko: 01 October 2012 - 03:46
Posted 01 October 2012 - 22:35
Posted 02 October 2012 - 03:55
Posted 02 October 2012 - 03:58
Lukashenko, on 01 October 2012 - 02:38, said:
Posted 02 October 2012 - 04:00
Posted 02 October 2012 - 09:40
NaniBot, on 02 October 2012 - 03:58, said:
Posted 02 October 2012 - 14:35
Posted 03 October 2012 - 17:09
NaniBot, on 02 October 2012 - 03:55, said:
Posted 10 October 2012 - 16:14
Posted 10 October 2012 - 21:10
Gamer_ZX, on 10 October 2012 - 16:14, said:
Posted 10 October 2012 - 23:31
Posted 11 October 2012 - 10:40
This post has been edited by Gamer_ZX: 11 October 2012 - 12:40
Posted 11 October 2012 - 12:32
Gamer_ZX, on 11 October 2012 - 10:40, said: