SRCDS Steam group


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Team Fortress 2 - guide server.cfg
#1
Quote:hostname "blah blah"

sv_rcon_banpenalty "0"
sv_rcon_log "1"
sv_rcon_maxfailures "5"
sv_rcon_minfailures "2"
sv_rcon_minfailuretime "30"
rcon_password "xxxxxx"
writeid
writeip
exec banned_user.cfg
exec banned_ip.cfg
sv_password ""
tf_flag_caps_per_round "3"
tf_playergib "1"
tf_stats_track "1"
tf_stats_verbose "0"
sv_alltalk "1"
sv_pausable "0"
sv_cheats "0"
sv_consistency "1"
sv_allowupload "1"
sv_allowdownload "1"
sv_timeout "300"
sv_pure "1"
sv_pure_kick_clients "1"
mp_allowNPCs "1"
mp_allowspectators "1"
mp_autocrosshair "1"
mp_autoteambalance "1"
mp_autoteambalance_delay "15"
mp_autoteambalance_warning_delay "5"
mp_bonusroundtime "15"
mp_chattime "5"
mp_clan_ready_signal "0"
mp_clan_readyrestart "0"
mp_decals "200"
mp_defaultteam "0"
mp_enableroundwaittime "1"
mp_fadetoblack "0"
mp_falldamage "0"
mp_flashlight "0"
mp_footsteps "1"
mp_forcecamera "1"
mp_forcerespawn "1"
mp_forcerespawnplayers "cmd"
mp_forcewin "cmd"
mp_fraglimit "0"
mp_friendlyfire "0"
mp_idledealmethod "1"
mp_idlemaxtime "3"
mp_maxrounds "2"
mp_restartgame "0"
mp_restartround "0"
mp_scrambleteams "cmd"
mp_showrespawntimes "1"
mp_stalemate_timelimit "240"
mp_switchteams "cmd"
mp_teamlist "0"
mp_teamoverride "1"
mp_teamplay "0"
mp_teams_unbalance_limit "1"
mp_time_between_capscoring "30"
mp_timelimit "20"
mp_waitingforplayers_cancel "0"
mp_waitingforplayers_restart "0"
mp_weaponstay "0"
mp_winlimit "0"
phys_pushscale 15

sv_accelerate "10"
sv_airaccelerate "10"
sv_allow_color_correction "1"
sv_allow_wait_command "1"
sv_allowdownload "1"
sv_allowupload "1"
sv_alltalk "1"
sv_alternateticks "0"
sv_backspeed "0"
sv_bonus_challenge "0"
sv_bounce "0"
sv_cacheencodedents "1"
sv_cheats "0"
sv_clearhinthistory "cmd"
sv_client_cmdrate_difference "20"
sv_client_interpolate "-1"
sv_client_max_interp_ratio "2"
sv_client_min_interp_ratio "1"
sv_client_predict "-1"
sv_consistency "1"
sv_enableoldqueries "1"
sv_filterban "1"
sv_footsteps "1"
sv_force_transmit_ents "0"
sv_forcepreload "0"
sv_friction "4"
sv_gravity "800"
sv_ignore_hitboxes "0"
sv_instancebaselines "1"
sv_lagflushbonecache "1"
sv_lan "0"
sv_log_onefile "0"
sv_logbans "0"
sv_logblocks "0"
sv_logdownloadlist "1"
sv_logecho "1"
sv_logfile "1"
sv_logflush "0"
sv_logsdir "0"
sv_massreport "0"
sv_master_legacy_mode "1"
sv_master_share_game_socket "1"
sv_max_queries_sec "3"
sv_max_queries_sec_global "60"
sv_max_queries_window "30"
sv_noclipaccelerate "5"
//sv_noclipduringpause "0"
sv_noclipspeed "5"
sv_npc_talker_maxdist "1024"
sv_optimizedmovement "1"
sv_parallel_packentities "1"
sv_parallel_sendsnapshot "1"
sv_pausable "0"
sv_specaccelerate "5"
sv_specnoclip "1"
sv_specspeed "3"
sv_stats "1"
sv_stepsize "18"
sv_stopspeed "100"
sv_timeout "60"
sv_turbophysics "0"
sv_unlag "1"
sv_unlag_fixstuck "0"
//sv_visiblemaxplayers "25"
//sv_voicecodec "0"
sv_voiceenable "1"
sv_wateraccelerate "10"
sv_waterdist "12"
sv_maxrate "25000"
sv_minrate "10000"
sv_maxupdaterate "101"
sv_minupdaterate "70"
sv_maxcmdrate "101"
sv_mincmdrate "70"
sv_client_cmdrate_difference "30"
sv_client_interpolate "0.1"
sv_lan "0"
sv_downloadurl ""
sv_region "3"

I don't know what all of these commands do (you will notice yourself the new ones that you don't recognise), but the best way to figure them out is to run TF2 and open the developers console, then type the commands you are unsure about into the console. It will then paste back a setence or 2 for an explanation and a default value.
#2
Thanks mate, have had a lot of questions about this already Smile
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
#3
Yes, thank you VERY much Smile
#4
Muppet, when I use this config my server stops responding to server queries from my server watcher. Do you know what could cause it?
#5
Flak Wrote:Muppet, when I use this config my server stops responding to server queries from my server watcher. Do you know what could cause it?

I suspect one/some of these:

Code:
sv_massreport "0"
sv_master_legacy_mode "1"
sv_master_share_game_socket "1"
sv_max_queries_sec "3"
sv_max_queries_sec_global "60"
sv_max_queries_window "30"

Personally, i would just remove them completely and let the default settings override.

Also, make sure the server didnt temp ban you for having a wrong rcon and retrying with it.
#6
yeah I wasn't connected to the server at all, the server query doesn't use a pass. Thanks Muppet Smile
#7
No, removing those lines didn't help Sad
#8
Flak Wrote:No, removing those lines didn't help Sad

okay, new server.cfg Toungue

Code:
// this is your server name as shown in the server list
hostname "BLA BLA BLA BLA"

sv_password ""
// your server password. a pair of double quotes means it is not set and anyone can join

// start rcon settings

rcon_password "BLA BLA BLA BLA"
// your rcon password to log into the dev rcon console or HLSW rcon console
sv_rcon_banpenalty 5
// Number of minutes to ban users who fail rcon authentication
sv_rcon_maxfailures 10
// Max number of times a user can fail rcon authentication before being banned

// end rcon settings

// start cvars for balancing un-even teams

mp_autoteambalance 1
// 0 is off and 1 is on. if 1 then should be used in conjunction with the following 3 commands
mp_autoteambalance_delay 60
// Time (in seconds) after the teams become unbalanced to attempt to switch players
mp_autoteambalance_warning_delay 30
// Time (in seconds) after the teams become unbalanced to print a balance warning
mp_teams_unbalance_limit 2
// Teams are unbalanced when one team has this many more players than the other (0 disables)

// end cvars for balancing un-even teams

// start cvars for round and game times

mp_enableroundwaittime 1
// Enable or disable timers to wait between rounds. 0 is off 1 is on
mp_bonusroundtime 20
// Time after round win until round restarts (in seconds)
mp_restartround 20
// Time the current round will restart (in seconds)
mp_stalemate_timelimit 120
// Timelimit (in seconds) of the stalemate round
mp_timelimit 30
// game time per map in minutes

// end cvars for round and game times

// start cvars for win conditions

mp_maxrounds 4
// Max number of rounds to play before server changes maps
mp_winlimit 3
// Max number of rounds one team can win before a server changes maps

// end cvars for win conditions

// start client specific cvars

mp_forcecamera 0
// force dead clients to first person mode disabling freelook. 0 is off 1 is on
mp_allowspectators 1
// enable or disable spectators on the server. 0 is off 1 is on
mp_friendlyfire 0
// 0 is off and clients can do harm to team mates. 1 is on and players can kill or injure team mates
mp_footsteps 1
// footsteps on or off. 0 is off and 1 is on
sv_cheats 0
// allow cheats to be used by the client. 0 is off 1 is on
sv_timeout 300
// the amount of time in seconds that a client is booted for no input
sv_maxspeed 320
// the maximun speed a client can move at
sv_consistency 1
// Force clients to pass a consistency check for critical files before joining server. 0 is off 1 is on
decalfrequency 10
// the pause in seconds between a decal being sprayed

// 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
mp_chattime 10
// players can chat for this amount of time (in seconds) after a game is over

// end cvars for communication

// start download cvars

sv_allowupload 1
// allow custom decals to be uploaded. 0 is off 1 is on
sv_allowdownload 1
// allow files to be downloaded from the server. 0 is off 1 is on
net_maxfilesize 15
// Max download file size. Default is 15
sv_downloadurl ""
//redirect download location

// end download cvars

// start bandwidth rates/settings

sv_minrate 20000
sv_maxrate 30000
decalfrequency 10
sv_maxupdaterate 100
sv_minupdaterate 66
sv_mincmdrate 66
sv_maxcmdrate 100

// end bandwidth rates/settings

// start server logging

log off
// enable or disable server logging. on is on off is off
sv_logbans 0
// Log server bans in the server logs
sv_logecho 1
// Echo log information to the console. 0 is off 1 is on
sv_logfile 0
// 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

sv_lan 0
// is this an internet or LAN server. 0 is internet 1 is LAN
sv_region 3
// server location. -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_contact blah@blah.com
// contact email for sysop
sv_pausable 0
// enables or disables whether the server can be paused. 0 is off 1 is on
sv_pure 1
// forces all clients on the server to use content that matches what is on the server. 0 is off 1 is on
sv_pure_kick_clients 1
// kicks clients that do not have content that matches what is on the server

// end cvars for general operation

// start execute ban files

exec banned_user.cfg
exec banned_ip.cfg

// end execute ban files
#9
Oh that's purty!! Thank you so much for taking the time to do it Big Grin
#10
Works AWESOME! Thank you again Smile
#11
Does it not need this?

writeid
writeip
#12
Flak Wrote:Does it not need this?

writeid
writeip

Yeah actually, would probably be best. But make sure you add it AFTER the exec banned cfg stuff. It writes the latest bans to file from memory.
#13
thanks for the config muppet, just got a question

can't get the delay at the start of the round right, it has a 30 second delay but as soon as 2 players joins the game starts, any ideas what command i need to set?
#14
Lupis Wrote:thanks for the config muppet, just got a question

can't get the delay at the start of the round right, it has a 30 second delay but as soon as 2 players joins the game starts, any ideas what command i need to set?

Also, with the 20 second restart time, I've found people with fast-loading computers are loading first, then capping some points before everyone is finished loading and in-game. 60 seconds (the default) should be left for this. The other guy that has admin on the server I run used your config and it was screwing people up. Thanks for the effort though. I also prefer a longer stalemate time, since 120 is a pretty small window, someone can hide pretty well for that long.
#15
Where does the server.cfg file get created when you install and dedicated server for TF2?


Forum Jump:


Users browsing this thread: 12 Guest(s)