Go Back   Steam Users' Forums > Dedicated Server Discussions > Source DS (Windows)

Thread Tools Display Modes
Old 10-28-2007, 07:10 PM   #1
Travis Bickle
Join Date: Mar 2004
Reputation: 129
Posts: 3,015
Team Fortress 2 - Generic Server Config

Hi everyone, I haven't seen a generic config file posted for Team Fortress 2 servers yet, so I'm posting one for everyone to use at will. I used the cvarlist command in rcon to gain access to all commands, went through to find all the generic variables TF2 uses upon server startup. Although it uses some of the same server variables as a standard source server engine, TF2 is entirely different and uses some different variables and discards a lot of others. Just copy and paste into your server.cfg then edit to your own customization.

// Team Fortress 2 Server Configuration File, To be used with TF2 only!

// Server Name
hostname "Team Fortress 2"

// Rcon Cvars
rcon_password "" //Set's remote control password
sv_rcon_banpenalty 15 //Number of minutes to ban users who fail rcon authentication
sv_rcon_log 1 //Enable/disable rcon logging.
sv_rcon_maxfailures 3 //Max number of times a user can fail rcon authentication before being banned
sv_rcon_minfailures 5 //Number of times a user can fail rcon authentication in sv_rcon_minfailuretime before being banned
sv_rcon_minfailuretime 10 //Number of seconds to track failed rcon authentications

// Server Password
sv_password "" // Password protects server

// Server Cvars
mp_allowspectators 1 //Toggles whether the server allows spectator mode or not
mp_autocrosshair 0
mp_autoteambalance 1 //Toggles server autoteambalance
mp_bonusroundtime 5 //Time in seconds after round win until round restarts
mp_chattime 5 //amount of time in seconds players can chat after the game is over
mp_clan_ready_signal "go" //Text that team leader from each team must speak for the match to begin
mp_clan_readyrestart 1 //If non-zero, game will restart once someone from each team gives the ready signal
mp_decals 1
mp_defaultteam 1
mp_disable_autokick 1 //Prevents a userid from being auto-kicked
mp_enableroundwaittime 1 //Enable timers to wait between rounds.
mp_fadetoblack 0 //fade a player's screen to black when he dies
mp_falldamage 5 //Amount of damage players sustains from a fall
mp_flashlight 0 //Toggles flashlight on or off
mp_footsteps 1 //Toggles footsteps on or off
mp_forcecamera 0 //Restricts spectator modes for dead players
mp_forcerespawn 0
mp_forcerespawnplayers 1 //Force all players to respawn.
mp_forcewin 1 //Forces team to win
mp_fraglimit 0
mp_idledealmethod 2 //Deals with Idle Players. 1 = Sends them into Spectator mode then kicks them if they're still idle, 2 = Kicks them out of the game
mp_idlemaxtime 1 //Maximum time a player is allowed to be idle (in minutes)
mp_maxrounds 10 //max number of rounds to play before server changes maps
mp_teams_unbalance_limit 2 //Teams are unbalanced when one team has this many more players than the other team. (0 disables check)
mp_teststalemate 0 //Test the stalemate mode. Parameter: <0/1>. If 1, the map will reset at the end.
mp_time_between_capscoring 5 //Delay between scoring of owned capture points.
mp_timelimit 20 //game time per map in minutes
mp_winlimit 10 //Max number of rounds one team can win before server changes maps
sv_allow_color_correction 1 //Allow or disallow clients to use color correction on this server.
sv_allow_wait_command 0 //Allow or disallow the wait command on clients connected to this server.
sv_allowdownload 1 //Allow clients to download files
sv_allowupload 1 //Allow clients to upload customizations files
sv_alltalk 0 //Players can hear all other players, no team restrictions
sv_alternateticks 0 //If set, server only simulates entities on even numbered ticks.
sv_autosave 0 //Set to 1 to autosave game on level transition. Does not affect autosave triggers.
sv_bonus_challenge 0 //Set to values other than 0 to select a bonus map challenge type.
sv_cacheencodedents 1 //If set to 1, does an optimization to prevent extra SendTable_Encode calls.
sv_cheats 0 //Allow cheats on server
sv_clearhinthistory 0 //Clear memory of server side hints displayed to the player.
sv_consistency 1 //Whether the server enforces file consistency for critical files
sv_contact "" //Contact email for server sysop
sv_downloadurl "" //Location from which clients can download missing files
sv_enableoldqueries 1 //Enable support for old style (HL1) server queries
sv_pausable 0 //Is the server pausable.

// Lan or internet play, Server region cvars
sv_lan 0 //Server is a lan server ( no heartbeat, no authentication, no non-class C addresses )
sv_region 255 // Region Codes: 0 - US East coast, 1 - US West coast, 2 - South America, 2 - South America, 3 - Europe, 4 - Asia, 5 - Australia, 6 - Middle East, 7 - Africa, 255 - world

//server Logging
sv_log_onefile 0 //Log server information to only one file.
sv_logbans 1 //Log server bans in the server logs.
sv_logblocks 0 //If true when log when a query is blocked (can cause very large log files)
sv_logecho 0 //Echo log information to the console.
sv_logfile 1 //Log server information in the log file.
sv_logflush 0 //Flush the log file to disk on each write (slow).
sv_logsdir "logs" //Folder in the game directory where server logs will be stored.

//Server Rates
sv_maxcmdrate 0 //(If sv_mincmdrate is > 0), this sets the maximum value for cl_cmdrate.
sv_maxrate 20000 //Max bandwidth rate allowed on server, 0 == unlimited
sv_maxreplay 2 //Maximum replay time in seconds
sv_maxupdaterate 100 //Maximum updates per second that the server will allow
sv_mincmdrate 0 //This sets the minimum value for cl_cmdrate. 0 == unlimited.
sv_minrate 0 //Min bandwidth rate allowed on server, 0 == unlimited
sv_minupdaterate 30 //Minimum updates per second that the server will allow

// Exec configs
exec banned.cfg
exec listip.cfg

Last edited by Travis Bickle: 10-28-2007 at 07:34 PM.
Travis Bickle is offline  
Reply With Quote
Old 10-29-2007, 01:55 PM   #2
Darth Sailor
Posts: n/a

I've been searching on the internet for a list of server commands. This will do the trick! Nice job Travis!
  Reply With Quote
Old 10-31-2007, 07:20 PM   #3
Travis Bickle
Join Date: Mar 2004
Reputation: 129
Posts: 3,015
Thanks! Glad this came of some use in here.
Travis Bickle is offline   Reply With Quote
Old 11-24-2007, 02:28 PM   #4
Join Date: Jan 2007
Reputation: 0
Posts: 10
Thank You for the server.cfg
SanMan is offline   Reply With Quote
Old 01-28-2011, 09:12 AM   #5
Angel of fire
Join Date: Jan 2011
Reputation: 0
Posts: 38
So, is this server.cfg good to use right now, or do I have to edit it a little bit? Sorry for the bump, I am just getting used to these sort of things.
Angel of fire is offline   Reply With Quote
Old 01-28-2011, 10:41 AM   #6
Join Date: Dec 2009
Reputation: 6604
Posts: 4,672
Have some rep OP. Good post.
Jinoruizraged is offline   Reply With Quote
Old 01-29-2011, 04:54 AM   #7
Travis Bickle
Join Date: Mar 2004
Reputation: 129
Posts: 3,015
This config file is a bit outdated. I posted this when TF2 first came out & I know there have been many added cvar's since then. If anyone has anything to add to this generic config, feel free to post and I'll update it. I have been very busy at work & haven't played any games in a while, so long in fact I've been out of the loop. Thanks for the rep!
Travis Bickle is offline   Reply With Quote
Old 09-28-2011, 05:38 PM   #8
Join Date: Apr 2011
Reputation: 0
Posts: 2
hey guys dunno how old this is but

i have 50MB broadband with 5MB upload speed how do i set up the config to use up most of the upload speed for faster map DL and UL times for custom maps

Ulquiorra4 is offline   Reply With Quote
Old 08-18-2012, 10:30 AM   #9
Join Date: Sep 2007
Reputation: 128
Posts: 1,501
The no spectators switch doesn't seem to work with MvM, has anyone found a way to not allow spectators in MvM?
And how do reserved slots work, does the command go in this server.cfg as well? I can't find a good tutorial on how to use them
Austin007 is offline   Reply With Quote

Go Back   Steam Users' Forums > Dedicated Server Discussions > Source DS (Windows)

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

All times are GMT -7. The time now is 08:50 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2015, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2014, All Rights Reserved.