RegisterRegister    Log inLog in    SearchSearch   

Post new topic   Reply to topic
 
View previous topic :: View next topic  
Author Message
mimic



PostPosted: Thu Dec 17, 2009 12:54 pm    Post subject: Better TF2 Config File Reply with quote

The default config provided by GameCreate is good enough to get a server up and running, but it doesn't have a lot of options available for tweaking, and I noticed there aren't any config file templates for people to use so I thought I'd post the one I use for TF2. It's one I've been using for just over a year, and slowly tweaking it over time.

Feel free to use this as a base for your server. Some settings may need to be adjusted to get better performance, this is just what works best with my server. Will work for both Windows and Linux servers. The config is organized into sections, and each setting has a brief description.

Code:
//////#################\\\\\\
// General Server Settings \\
//////#################\\\\\\

// Name of the server for others to see in the server browser.
hostname ""

// Password needed by clients to connect to the server.
sv_password

// Maximum number of clients allowed to connect to server.
maxplayers 24

// Mapcycle file
mapcyclefile ""

// Message of the day file.
motdfile ""

// Enable / Disable critical hits.
tf_weapon_criticals "1"

// Disable / Enable damage spread.
tf_damage_disablespread "0"

// Set to lock per-frame time elapse
host_framerate 0

// Set the pause state of the server
setpause 0

// Control where the client gets content from
// 0 = anywhere, 1 = anywhere listed in white list, 2 = steam official content only
sv_pure 1

// Is the server pausable
sv_pausable 0

// Type of server 0=internet 1=lan
sv_lan 0

// Whether the server enforces file consistency for critical files
sv_consistency 1

// Collect CPU usage stats
sv_stats 1


//////################\\\\\\
/// Execute Banned Users \\\
//////################\\\\\\

exec banned_user.cfg
exec banned_ip.cfg
writeid
writeip


//////#################\\\\\\
/// Contact & Region Info \\\
//////#################\\\\\\

// Contact email for server sysop
sv_contact ""

// The region of the world to report this server in.
// -1 is the world, 0 is USA east coast, 1 is USA west coast
// 2 south america, 3 europe, 4 asia, 5 australia, 6 middle east, 7 africa
sv_region 1


//////#########\\\\\\
/// Rcon Settings \\\
//////#########\\\\\\

// Password for rcon authentication
rcon_password ""

// Number of minutes to ban users who fail rcon authentication
sv_rcon_banpenalty 1440

// Max number of times a user can fail rcon authentication before being banned
sv_rcon_maxfailures 3


//////########\\\\\\
/// Log Settings \\\
//////########\\\\\\

// Directory to store log files.
sv_logsdir ""

// Enables logging to file, console, and udp < on | off >.
log on

// Log server information to only one file.
sv_log_onefile 0

// Log server information in the log file.
sv_logfile 1

// Log server bans in the server logs.
sv_logbans 1

// Echo log information to the console.
sv_logecho 1


//////#########\\\\\\
/// Rate Settings \\\
//////#########\\\\\\

// Maximum allowed server FPS.
// Default: 250
fps_max 600

// Maximum allowed brandwidth on your server.
// Default: 0 (unlimited)
sv_maxrate 30000

// Minimum allowed brandwidth on your server.
// Default: 0 (unlimited)
sv_minrate 15000

// Maximum updates per second as the server will allow.
// Default: 60
// Note: If you're using less than 100Tick, change this CVAR to a lower value.
// For 100TICK: sv_maxupdaterate 100
// For 66TICK: sv_maxupdaterate 66
// For 33TICK: sv_maxupdaterate 33
sv_maxupdaterate 66

// Minimum updates per second as the server will allow.
// Default: 10
// Note: If you're using less than 100Tick, change this CVAR to a lower value than "sv_maxupdaterate xx"
// For 100TICK: sv_minupdaterate 75
// For 66TICK: sv_minupdaterate 45
// For 33TICK: sv_minupdaterate 15
sv_minupdaterate 45

// This controls your cleints maximum cmdrate.
// Do the same with this one like: sv_maxupdaterate
// Default: 40
sv_maxcmdrate 100

// This controls your cleints minimum cmdrate.
// Do the same with this one like: sv_minupdaterate
// Default: 0
sv_mincmdrate 75


//////#############\\\\\\
/// Download Settings \\\
//////#############\\\\\\

// Allow clients to upload customizations files
sv_allowupload 1

// Allow clients to download files
sv_allowdownload 1

// Download URL for custom maps
// sv_downloadurl ""

// Maximum allowed file size for uploading in MB
net_maxfilesize 75


//////##########\\\\\\
/// Team Balancing \\\
//////##########\\\\\\

// Eanble team balancing
mp_autoteambalance "0"

// Teams are unbalanced when one team has this many more players than the other team. (0 disables check)
mp_teams_unbalance_limit "0"


//////##############\\\\\\
/// Round & Game Times \\\
//////##############\\\\\\

// Enable timers to wait between rounds. WARNING: Setting this to 0 has been known to cause a bug with setup times lasting 5:20 (5 minutes 20 seconds) on some servers!
mp_enableroundwaittime 1

// Time after round win until round restarts
mp_bonusroundtime 8

// If non-zero, the current round will restart in the specified number of seconds
mp_restartround 0

//Enable sudden death
mp_stalemate_enable 1

// Timelimit (in seconds) of the stalemate round.
mp_stalemate_timelimit 300

// Game time per map in minutes
mp_timelimit "20"

// Flag captures required to end round.
tf_flag_caps_per_round "0"

// Frags required to end round.
mp_fraglimit "0"

// Allow stalemates.
mp_stalemate_enable "0"

// End the match after the map's time limit expires.
mp_match_end_at_timelimit "0"

// Maximum number of rounds to play before server changes maps
mp_maxrounds 0


//////########\\\\\\
/// Client CVARS \\\
//////########\\\\\\

// Restricts spectator modes for dead players
mp_forcecamera 1

// toggles whether the server allows spectator mode or not
mp_allowspectators 1

// toggles footstep sounds
mp_footsteps 1

// toggles game cheats
sv_cheats 0

// After this many seconds without a message from a client, the client is dropped
sv_timeout 180

// Maximum time a player is allowed to be idle (in minutes), made this and sv_timeout equal same time?
mp_idlemaxtime 60

// Deals with idle players 1=send to spectator 2=kick
mp_idledealmethod 2

// time (seconds) between decal sprays
decalfrequency 900


//////#########\\\\\\
/// Respawn CVARS \\\
//////#########\\\\\\

// Time between wave respawns
// mp_respawnwavetime 12

// Disable / Enable respawn wait times
mp_disable_respawn_times "0"

// Disable / Enable forced respawn
// mp_forcerespawn 0

//////##########\\\\\\
/// Communications \\\
//////##########\\\\\\

// enable voice communications
sv_voiceenable 1

// Players can hear all other players, no team restrictions 0=off 1=on
sv_alltalk 1

// amount of time players can chat after the game is over
mp_chattime 10

// enable party mode
tf_birthday 0
Back to top
View user's profile Send private message
adbot



PostPosted: Thu Mar 31, 2011 3:57 am 

Display posts from previous:   
Post new topic   Reply to topic All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum powered by phpBB © 2001, 2005 phpBB Group
GameCreate Service Terms | Privacy Policy | © Copyright Mammoth Media 2001-2007
GameCreate™ is a trademark of Mammoth Media Pty Ltd. GameCreate® is a registered trademark in Australia.