View Single Post
  #3 (permalink)  
Old July 2, 2009, 12:53 PM
The Guy The Guy is offline
Join Date: May 2009
Location: Vancouver, BC
Posts: 33

4. Seting up your server.cfg.

Picture of my cfg (I used his as a base)

The next big thing is making your server yours. I will be going into this in another tutorial but for now just fill in the spots that tell you to. (You may comment out the download url because I will be going into that with another tutorial.

Note! Make sure to place this in C:\HLServer\cstrike\cfg\

//Base Config files: The Guy

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

// Server ip (to avoid RCon problems)

// 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 0

// Servername
hostname "PUT NAME HERE" 

// Rcon password
rcon_password "PUT PASS HERE"

// 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 betamax

//Max net file size
net_maxfilesize 128

// Download URL for custom files
sv_downloadurl "PUT URL"

//////////////// *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 8000

// 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 500

// 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 voice_speex
sv_voicequality 2

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

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

// 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 0

// 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

sv_contact "EMAIL HERE"

// execute ban files
exec banned_user.cfg
exec banned_ip.cfg
5. Starting your server and adding tickrate.

Picture of server running

You may see servers saying 100tick and 500fps, that means that the server has good pyshics and should be lag free. So how do I do this? By ping boosting and adding a command to the shortcut we will be making.

A) First make a basic launcher, create a shortcut to srcds.exe and add this after the shortcuts properties: -console -game cstrike +map (Map without bsp) -maxplayers (Amount of players you want) -autoupdate

Note! Add '-insecure' for insecure (Non-Vacced) servers.

Picture of shortcut

B) Adding tickrate and ping boosting; it makes the ingame pyshics and overall gameplay way better.

Note! Tick rate can only be changed at the start of the server.
Note! To enable high tickrate and keep fps you need to pingboost. (Run: srcdsfpsboost.exe)
Note! Do not put tickrate higher then 100; bad things will happen.

To add, simply put this before autoupdate and after maxplayers.
-tickrate (X amount, ie: 33,66,100).

6. FAQ.

How can i add extra maps such as Fy_iceworld?
Copy it to C:\HLServer\cstrike\maps
Then add the name without .bsp to maplist.txt
Then add the name without .bsp to mapcycle.tx
Then start up. If you want it as the start map change +map to map name without .bsp

Originally Posted by jcmaz View Post
how can i put bots in my server?

I don't know off the bat. bot_add or use mani/source mods bot add function. To remove just kick them.

My server 'chokes' or lags a lot; My tick is 100 or my latency is really high.
Originally Posted by probationer View Post
Oh that's the other thing, dot expect just because you have enough upload that you can run a server (yes you know who you are Mr ADSL2+) , ping is king you need a very low latency connection aka fiber to run anything bigger than 10 (the magic number again) without encountering numerous complaints about lag and choke.
Originally Posted by probationer View Post
Side note, the increase in cpu power required for 100 tick vs 66 is quite substantial and pretty much not worth doing when you have anything more than 10-12 players (especially over internet the ping time makes the increase almost meaningless). IMO 100tick should be reserved for clan match servers and 66 for pubs.

  • Always minimize your client when it is running for some reason the memory will sit a lot higher when it is displayed to try this out run a server for a couple hours, then minimize it watch the memory shrink, yes it will come back up but no where near as high
  • Remember to assign srcds to a specific affinity, it is yet to properly utilise more than one core, yes the orange box srcds is meant to however the performance vs 1 core assignment is shite.
Got a bargain? Count me in!
The Guy @

Last edited by The Guy; July 6, 2009 at 01:12 PM.
Reply With Quote