SRCDS Steam group


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
server.cfg resource thread
#1
Please post here your server.cfg snippets and information Smile
#2
Fiew things i stumped in while playing around with the linux server:
1. maxplayers is hardcoded limited to 16
2. add your configuration variables into valve.rc instead of server.cfg, most the setings that are in server.cfg only get activated with first mapchange, same exact setings from valve.rc are activated at server start Smile
#3
HL²dm sample:

Code:
// Server Name
hostname "My HL²DM Server"

// RCON Password
rcon_password "myrconpassword"

// Server Settings
mp_fraglimit 100 // kills before map change
mp_timelimit 20 // timelimit on each map
mp_weaponstay 0 // weapons stay after being picked up
mp_forcerespawn 0 // force player respawn after 4 seconds
mp_falldamage 0 // extra damage when falling
mp_teamplay 1 // set to 1 to enable teamplay
mp_teamlist "hgrunt;scientist" // team models, if mp_teamplay = 1
sv_hl2mp_weapon_respawn_time 20 // time between weapon respawns
sv_hl2mp_item_respawn_time 30 // time between non-weapon respawns
mp_footsteps 1 // enable footstep sounds
mp_flashlight 1 // flashlight in-game availability 1=yes 0=no
mp_autocrosshair 1 // show crosshairs
decalfrequency 10 // amount of decal/sprays visible
mp_allowNPCs 1 // allow computer-controlled characters
sv_alltalk 0
sv_gravity 600 // server gravity level (default=600)
sv_stopspeed 100 // speed at which a player stops while running
sv_noclipaccelerate 5
sv_noclipspeed 5
sv_specaccelerate 3
sv_specnoclip 1
sv_maxspeed 320 // runspeed on the server, default=320
sv_accelerate 10 // speed of movement
sv_airaccelerate 10 // speed of movement in air
sv_wateraccelerate 10 // speed moving in water
sv_footsteps 1 // enable footsteps
sv_rollspeed 200
sv_rollangle 0
sv_friction 4 // when bumping into a wall, slows you down
sv_bounce 0
sv_stepsize 18 // distance covered with each step
r_VehicleViewDampen 1
r_JeepViewDampenFreq 7.0
r_JeepViewZHeight 10.0
r_AirboatViewDampenFreq 7.0
r_AirboatViewDampenDamp 1.0
r_AirboatViewZHeight 0.0
mp_friendlyfire 0 // friendly fire, 0=off, 1=on
coop 0 // cooperative play mode
deathmatch 1 // deathmatch mode enabled = 1
sv_voiceenable 1 // enable speech in-game
sv_pausable 0 // enable server pausing
sv_cheats 0 // disable cheats = 0
ip xxx.xxx.xxx.xxx // to avoid rcon problems put the server ip here
#4
Does anybody have a nice working server.cfg (or valve.rc) for a CS:S server?

I have searched everywhere without any results.

Thanks!
#5
Thanks for posting this.

I'm still not sure how to invoke the thing. Can it be done from the command line with exec or something? Does it need to be somewhere special?
#6
This is my server.cfg

hostname "Free-Lag Server v0.1"
mp_friendlyfire 1
mp_autokick 1
rcon_password "password"
sv_region 3
sv_stats 1
log 1
mp_logfile 1
log_level 0
sv_instancebaselines 1
sv_unlag 1
sv_maxrate 8192
sv_minrate 0
sv_maxupdaterate 10
fps_max 100
sv_allowdownload 1
sv_allowupload 1
sv_voiceenable 1
sv_alltalk 1
sv_voicequality 2
sv_cheats 1
sv_pausable 0
mp_tkpunish 1
mp_autokick 1
mp_spawnprotectiontime 10
sv_timeout 40
mp_forcecamera 0
mp_allowspectators 1
mp_fadetoblack 0
violence_hblood 1
violence_hgibs 1
servercfgfile 1
mp_startmoney 10000
mp_allowspectators 1
sv_bounce 0
sv_rollangle 0
sv_rollspeed 200
decalfrequency 10
mp_autocrosshair 1
r_VehicleViewDampen 1
r_JeepViewDampenFreq 7.0
r_JeepViewZHeight 10.0
r_AirboatViewDampenFreq 7.0
r_AirboatViewDampenFreq 7.0
r_AirboatViewZHeight 0.0
sv_accelerate 10
sv_airaccelerate 10
sv_wateraccelerate 10
sv_noclipaccelerate 5
sv_noclipspeed 5
sv_specaccelerate 3
sv_specnoclip 1


See U Toungue
#7
jaybill Wrote:Thanks for posting this.

I'm still not sure how to invoke the thing. Can it be done from the command line with exec or something? Does it need to be somewhere special?

You can invoke the server.cfg file by placing it in ...srcds/cstrike/cfg/
#8
I have placed the server.cfg file in the above mentioned folder but it will not load, keeps saying
couldn't exec server.cfg
What am I doing wrong?
#9
Someone else brought this up on this board in a different thread.

Make sure you didn't actually save the file as "server.cfg.txt". Make sure in Windows Explorer\Tools\Folder Options\View tab that Hide extionsons for known file types is turned off.

Edit: Here is the link to the thread regarding my post:
http://www.srcds.com/forums/showthread.php?tid=116
PING: The scapegoat for your inadequacies since 1974
[Image: unics.gif]
#10
Thanks, that fixed it.
#11
hostname "TheRedBarn"
rcon_password ";;;;;;;;;;;"
//sv_password //password to join server
//exec autoexec.cfg
exec mani_server.cfg //loads admin mod
exec bot.cfg
decalfrequency 10 //amount of decal/sprays visible

//mp_fraglimit 100 //frags to map change
mp_timelimit 30 //minutes to mapchange
mp_weaponstay 0 //weapons stay after being picked up
mp_forcerespawn 0 //force player to respoawn after 4 secs
mp_falldamage 0 //extra dmg for falling
mp_teamplay 1 //1 enables
//mp_teamlist
mp_footsteps 1 //1 enables
mp_flashlight 1 //1 enables
//mp_allowNPCs
mp_friendlyfire 0 //1 enables
mp_tkpunish 1 //dmg to give
mp_autokick 1 //1 enables idle kicks / team-kill banning
mp_autoteambalance 1 //1 enables
mp_spawnprotectiontime 10 //seconds of protection
mp_forcecamera 0 //1 enables

mp_allowspectators 1 //1 enables
//mp_fadetoblack 0
mp_startmoney 3500
mp_chattime 15 //seconds to talk smack at round end
mp_autocrosshair 1 //1 enables shows
mp_roundtime 5 //in minutes
mp_limitteams 2 //number a team can have more of than other
mp_freezetime 0 //seconds to buy crap
mp_c4timer 35 //in seconds

//sv_contact email
sv_region 0 //0 - US EastCoast
sv_stats 1
sv_lan 0 //1 enables lan only
//sv_instancebaselines 1
//sv_unlag 1
sv_maxrate 8192 //data sent to clients
sv_minrate 4000 //data sent to clients
sv_maxspeed 360 //client speed
sv_cheats 0 //1 enables
sv_voiceenable 1 //1 enables
sv_alltalk 0 //1 enables talk to everyone
sv_allowupload 0 //1 enables clients cannot upload
#12
cfgmaker
[Image: www.artspace.tk]
#13
heres mine.. highly configurable CS:S cfg

Code:
// Main Config File by Drocona



/////////// *Server password and info*\\\\\\\\\\\

// Server ip (to avoid RCon problems)
ip 127.0.0.1

// Internet= 0     LAN= 1
sv_lan 0

// 0=US East coast, 1=US West coast, 2= South America, 3=Europe,
// 4=Asia, 5=Australia, 6=Middle East, 7=Africa and 255=world.
sv_region 3

// Servername
hostname ********

// Rcon password
rcon_password ********

// Number of minutes to ban users who fail Rcon authentication
sv_rcon_banpenalty 0

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

// Number of times a user can fail rcon authentication before being banned
sv_rcon_minfailures 0

// Number of seconds to track failed rcon authentications.
sv_rcon_minfailuretime 20

// Game password
// sv_password Putyourprivatepasswordhere

// Download URL for custom files
sv_downloadurl **********



//////////////// *Game Settings* \\\\\\\\\\\\\\\\\

// Buytime at the begin of a round (in minutes)
mp_buytime 1

// Sets the amount of starting money, max=16000
mp_startmoney 8000

// C4 Countdown timer (in seconds)
mp_c4timer 30

// Enable flashlight= 1      Disable flashlight= 0
mp_flashlight 1

// Enable Footsteps= 1      Disable Footsteps= 0
mp_footsteps 1

// Enable Fallingdamage= 1      Disable Fallingdamage= 0
mp_falldamage 1

// Maximum hostage kills to boot a player (Disable= 0)
mp_hostagepenalty 0

// Timelimit (in minutes)
mp_timelimit 45

// Maximum frags a player can get until mapchange
mp_fraglimit 0

// Amount of wins per team to end game (Disable= 0)
mp_winlimit 0

// Amount of wins in total to end game (Disable= 0)
mp_maxrounds 0

// Time per round (in minutes) ((Min= 1  Max= 9))
mp_roundtime 3

// Sets the time before players can move in the beginning of a round (in seconds)
mp_freezetime 4

// Toggles the forcing of clients to join teams to make it balanced. 1=on and 0=off
mp_autoteambalance 1

// Sets the maximum number of player differences (Disable= 0)
mp_limitteams 2

// Friendly Fire (Enable= 1     Disable= 0)
mp_friendlyfire 1

// Kill a player next round if he Teamkilled someone (Enable= 1     Disable= 0)
mp_tkpunish 0

// Kick idle/team-killing players (Enable= 1     Disable=0)
mp_autokick 0

// Kick players who team-kill within this many seconds of a round restart.
mp_spawnprotectiontime 5

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

// Restrict spectatorcamera view for dead players (Enable= 1     Disable= 0)
mp_forcecamera 0

// Controls what information player can see in status bar (All= 0,  Team Names= 1,  No Names= 2)
mp_playerid 0

// Allow Spectators or not (Enable= 1     Disbale= 0)
mp_allowspectators 0

// World gravity settings (Default= 800)
sv_gravity 800

// Maximum velocity an object can have ingame (Default= 3500)
sv_maxvelocity 3500

// Maximum speed a player can move (Default= 350)
sv_maxspeed 350




////////////// *Connection Options* \\\\\\\\\\\\\\

// Max bandwidth rate allowed on server (0= unlimited     max= 20000)
sv_maxrate 4096

// Min bandwidth rate allowed on server (0= unlimited     4000= good for blocking 56k)
sv_minrate 0

// Minimum updates per second (Maximum= 100    increasing this will take more cpu power)
sv minupdaterate 10

// Maximum updates per second (Maximum= 100    increasing this will take more cpu power)
sv_maxupdaterate 60

// Frame rate limiter
fps_max 75

// Allow clients to download files (Enable= 1     Disable= 0)
sv_allowdownload 1

// Allow clients to upload files like spraylogo's (Enable= 1     Disable= 0)
sv_allowupload 1

// Enable player lag compensation (Enable= 1     Disable= 0)
sv_unlag 1

// Amount of time in seconds a player can spray their decal
decalfrequency 20



//////////// *Logging and Misc* \\\\\\\\\\\\

// Creates a logfile (Enable= on      Disable= off)
log on

// Log server bans in the server logs (Enable=1     Disable= 0)
sv_logbans 1

// Log echo information in the console (Enable= 1     Disbale= 0)
sv_logecho 1

// Log server information in the logfile (Enable= 1     Disable= 0)
sv_logfile 1

// Log server information to only one file (Enable=1     Disable= 0)
sv_log_onefile 1

// Folder where logs will be saved
sv_logsdir E:\CSSDS\cstrike\logs\

// Voice Codec to use (specify DLL without the DLL extension)((Default= vaudio_miles))
sv_voicecodec vaudio_miles

// Enable microphone (Enable= 1      Disable= 0)
sv_voiceenable 0

// Allow players to hear all other players (Enable= 1     Disable= 0)
sv_alltalk 0

// Enable HLTV on the Server (Enable= 1     Disable= 0)
sv_hltv 0

// Cheats (Enable= 1     Disable= 0)
sv_cheats 0

// Client ability to pause the server (Enable= 1      Disable=0)
sv_pausable 0

// Force clients to pass consistencycheck for critical files (Enable= 1     Disable= 0)
sv_consistency 1

// Amount of time players can chat after the game is over (in seconds)
mp_chattime 15

// If not 0 then game will restart in the specified number of time (in seconds)
mp_restartgame 0

// Execute files on startup (these are placed in the "srcds\cstrike\cfg\" folder)
// Input syntaxis: "exec nameofyourscript.cfg"

thats it (added explanation to all for new people to understand)
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
#14
// Use this file to configure your SOURCE DEDICATED server.
// This config file is executed everytime the server changes levels.
// This file is made by -=ViViD=- Racquel, you can visit us @ http://www.vividclan.com


// *********** SERVER & PASSWORD INFO ***************
// Change it to 1 if you want a LAN only Server
sv_lan 0
// contact & geo 0=US East coast, 1=US West coast, 2= South America, 3=Europe, 4=Asia, 5=Australia, 6=Middle East, 7=Africa and 255=world.
// Change the number to the region you live in!!!
sv_region 3
// Give your server a name here
hostname "ur host name"
// Rcon password is used to give your server orders by using console, so think of a good password
rcon_password "server password"
// If you want your server to be private, fill in a password and delete the // in front of sv_password
// sv_password "Putyourprivatepasswordhere"


// *********** GAME SETTINGS, YOU CAN CHANGE THESE THE WAY YOU LIKE IT ***************
// Sets the amount of minutes players are able to buy
mp_buytime 1
// Sets the amount of starting money, max=16000
mp_startmoney 16000
// Sets the amount of secs before C4 explodes
mp_c4timer 45
// 1 enables flashlight, 0 disables it
mp_flashlight 1
// 1 enables hearing footsteps, 0 disables it
mp_footsteps 1
// 1 enables falling damage, 0 disables it
mp_falldamage 1
// Sets the number of hostages a player can kill before they are booted from the server. 0 is disabled
mp_hostagepenalty 0

// TIME, WIN & ROUND SETTINGS
// Timelimit is how many minutes for a map.
mp_timelimit 40
// When a team reaches this amount of wins (before the timelimit or the roundlimit is
// reached), it has won the map. 0=disabled
mp_winlimit 0
// When two teams finish playing this amount of rounds (before the timelimit or the
// winlimit is reached) the map ends. 0=disabled
mp_maxrounds 0
// Round time, in minutes. After this amount of minutes has passed,
// a scenario win is awarded. Min 1, Max 9
mp_roundtime 5
// Sets the seconds before players can move in the beginning of a round
mp_freezetime 5

// TEAMBALANCING
// Toggles the forcing of clients to join teams to make it balanced. 1=on and 0=off
mp_autoteambalance 1
// Sets the maximum number of players that one team can have more than the
// other team. Use a setting of '0' to completely disable the team limiting.
mp_limitteams 1

// FF & TEAMKILL & IDLE
// Toggles friendly fire 1=on and 0=off
mp_friendlyfire 1
// Toggles the forcing of a player to sit out the next round if he
// has just killed a teammate. 1=on and 0=off
mp_tkpunish 1
// Kick idle/team-killing players. 1=on and 0=off
mp_autokick 1
// Kick players who team-kill within this many seconds of a round restart.
mp_spawnprotectiontime 0
// After this many seconds without a message from a client, the client is dropped
sv_timeout 300

// SPECTATORS
// Restricts spectator modes for dead players. 1=on and 0=off
mp_forcecamera 0
// toggles whether the server allows spectator mode or not. 1=on and 0=off
mp_allowspectators 1
// fade a player's screen to black when he dies. 1=on and 0=off
mp_fadetoblack 0


// ************ IF YOU HAVE LAG ISSUES YOU CAN CHANGE THESE SETTINGS, IF YOU KNOW WHAT YOU ARE DOING *****************
// SET RATES
// Max bandwidth rate allowed on server, 0=unlimited, max=20000
sv_maxrate 1800
// sv_maxrate 1500
// Min bandwidth rate allowed on server, default 1000 0=unlimited, 4000=good to keep dialup gamers off the server
// sv_minrate 1500
sv_minrate 0
// Maximum updates per second that the server will allow, default 30 increasing this will take more cpu power, 100 is max
sv_maxupdaterate 5
// sv_maxupdatrate 8
// Frame rate limiter, higher then 100 not needed, unless shots are not registered well
fps_max 300
// DOWNLOAD
// Allow clients to download files
sv_allowdownload 1
// Allow clients to upload customizations files
sv_allowupload 1

// *********** IF YOU KNOW WHAT YOU ARE DOING YOU CAN CHANGE THESE SETTINGS AS WELL *************
// SERVER LOGGING
// log 1
// mp_logfile 1
// mp_logecho 0
// Specifies a logging level 0 to 15. Using 15 is max logging
// log_level 0

// VOICE disabled, if you want VOICE enabled then change 0 into 1
sv_voiceenable 1

// CHEATS & autoaim off
sv_cheats 0
// disable clients' ability to pause the server
sv_pausable 0

// OTHER SETTINGS
// amount of seconds players can chat after the game is over
rcon mp_chattime 10
// if not 0 then game will restart in the specified number of seconds

sv_downloadurl ""
cl_cmdrate 30
cl_updaterate 30
sv_gravity 800

exec mani_server.cfg
// exec sounds_source.cfg
exec banned_user.cfg
exec banned_ip.cfg
mp_restartgame 0
mani_vote_percentage 60
mani_stats_calculate 2
mani_stats_kills_required 1
sv_alltalk 1
phys_pushscale 200

#15
Code:
// server name
hostname "***HOSTNAME***"    // Hostname - displayed in server lists

// Execute Mani Admin Plugin
exec mani_server.cfg        // Execute mani_server.cfg

// rcon passsword
rcon_password "***PASSWORD***"        // Set rcon passsword. Leave blank to disable rcon

// Server password
sv_password "***PASSWORD***"        // Set server password. Leave blank to disable.

// server cvars
mp_friendlyfire 0        // Turn on/off friendlyfire. Default: Off
mp_footsteps 1            // Turn on/off footsteps. Default: On
mp_autoteambalance 1        // Force clients to auto-join the opposite team if they are not balanced. Default: On
mp_autokick 0            // Kick idle/team-killing players. Default Off
mp_flashlight 1            // Turn on/off the ability for clients to use flashlight. Default: Off
mp_tkpunish 1            // Punish TK'ers on next round? Default: On
mp_forcecamera 0        // Force dead players to first person mode, effectively disabling freelook. Default: Off
sv_alltalk 0            // Players can hear all other players, no team restrictions. Default: Off
sv_pausable 0            // Can the server be paused? Default: Off
sv_consistency 1        // Force cleints to pass consistency check for critical files before joining server? Default: On
sv_cheats 0            // Allow cheats on server. Default: Off
sv_allowupload 1        // Allow clients to upload their custom decals to the server. Default: Yes
sv_allowdownload 0        // Allow clients to downnload files. Default: Yes
sv_maxspeed 320            // Maximum speed a player can move. Default: 320
mp_limitteams 2            // Max # of players 1 team can have over another. Default: 2
mp_hostagepenalty 5        // How many hostages a Terrorist can kill before being kicked, 0 to disable. Default: 5
sv_voiceenable 1        // Allow clients to use mic. Default: Yes
mp_allowspectators 1        // Allow spectators on the server. Default: Yes
mp_chattime 10            // Amount of time in seconds players can chat after the game is over. Lower value = faster map load change. Default: 10
sv_timeout 120            // After this many seconds without a message from a client, the client is dropped. Default: 65

// round specific cvars
mp_freezetime 4            // Time in seconds to keep players frozen when the round starts. Default: 6
mp_roundtime 5            // How much time in minutes does a round last. Default: 5
mp_startmoney 800        // Amount of money each player gets when they reset (16000 max) Default: 800
mp_c4timer 45            // The amount of time in seconds before bomb explodes after planted. Default: 45
mp_fraglimit 0            // Amount of frags a player can exceed before changing maps. Default: 0
mp_maxrounds 0            // Amount of round to play before server changes maps. Default: 0
mp_winlimit 0            // Max number of rounds one team can win before server changes maps. Default: 0
mp_playerid 0            // Controls what information player see in the status bar. Default: All - all (0), team names (1), no names (2)
mp_spawnprotectiontime 5    // Time in seconds to Kick players who team-kill after round restart. Default: 5
mp_timelimit 20            // Round time limit (minutes)

// bandwidth rates/settings
sv_minrate 100            // Min bandwidth rate allowed on server. Default: 0 (unlimited)
sv_maxrate 6000            // Max bandwidth rate allowed on server. Default: 0 (unlimited)
decalfrequency 20        // Amount of time in seconds a player can spray their decal. Default: 10
sv_maxupdaterate 30        // Maximum updates per second that the server will allow. Default: 60
sv_minupdaterate 10        // Minimum updates per second that the server will allow. Default: 10

// server logging
log off                // Enable server logging? Default Off
sv_logbans 0            // Log server bans in the server logs. Default Off
sv_logecho 1            // Echo log information to the console. Default On
sv_logfile 1            // Log server information in the log file. Default On
sv_log_onefile 0        // Log server information to only one file. Default No

// bots
// bot_add            // Select Yes if you would like to have bots on the server - yes, no
bot_quota_mode fill        // If 'Fill', the server will adjust bots to keep # players in the game, where # is bot_quota (from below) Default: Normal - normal, fill
bot_difficulty 1        // Skill of bots. Default: Easy (0)
bot_chatter radio        // Control how bots talk. Default: Normal - normal, minimal, radio, off
bot_auto_follow 1        // Allow bots to automatically follow a human player. Default: Yes
bot_auto_vacate 1        // Kick bots to automatically make room for human players. Default: Yes
bot_join_after_player 1        // Bots must wait for a people to join before joining? If No, bots will play without people. Default: Yes
bot_defer_to_human 1        // Can bots complete objectives if there are humans on a team? Default: No
bot_prefix ":BOT: "        // Prefix for bot names. A prefix is a tag that bots will have in front of their name. you can enter your clan tag or leave blank.
bot_allow_rogues 0        // bots may occasionally go 'rogue'. Rogue bots do not obey radio commands, nor pursue scenario goals.. Default: No
bot_walk 0            // The speed at which bots can move. Default: Run & Walk - run & walk (0), walk only (1)
bot_join_team any        // What teams are bots allowed to join? Default: Any - any, T, CT
bot_eco_limit 2000        // Bots will not buy if their money falls below this amount. Default: 2000
// Bot Mode. If you change this, the below weapon restrictions are ignored. Default: All Weapons
bot_all_weapons            // Bots can use all weapons.
// bot_knives_only        // Bots can use knives only.
// bot_pistols_only        // Bots can use pistols only.
// bot_snipers_only        // Bots can use snipers only.
bot_allow_grenades 1        // Allow bots to use grenades?
bot_allow_pistols 1        // Allow bots to use pistols?
bot_allow_sub_machine_guns 1    // Allow bots to use sub machine guns?
bot_allow_shotguns 1        // Allow bots to use shotguns?
bot_allow_rifles 1        // Allow bots to use rifles?
bot_allow_snipers 1        // Allow bots to use sniper rifles?
bot_allow_machine_guns 1    // Allow bots to use machine guns?
bot_quota 6            // Amount of bots to add. Adding many bots will use more cpu. Start with a few bots, then add more if needed.

// operation
sv_lan 0            // Will the server be public or Private LAN? Default: LAN & Internet - LAN & internet (0), LAN only (1)
sv_region 3            // Geographic location of the server. Default: World - Europe (3)
sv_contact ***EMAIL***    // Administrator email

// Specify HTTP download URL
sv_downloadurl "***URL***"

// execute ban files
exec banned_user.cfg        // Execute banned_user.cfg
exec banned_ip.cfg        // Execute banned_ip.cfg

It's a mess, I know :-x. There are tabs between the commands/comments, but they don't show here.
May the Source be with you...

Want to know which ports to forward on your router for a Source DS? Click here!


Forum Jump:


Users browsing this thread: 4 Guest(s)