For those wanting to set up their own servers or anyone that would like to learn how to set up a server, use this guide!
TOPICS COVERED!
INSTALLING SRCDS (Source Dedicated Server)
UPDATING YOUR SERVER
FPS BOOSTER (Not needed, but recommended!)
READING SERVER LOGS
INSTALLING SOURCEMOD & SOURCEMOD PLUGINS
PORT FORWARDING (OFF SITE TUTORIAL)
SOME ISP'S DO NOT ALLOW YOU TO HOST SERVERS! I CANNOT BE HELD RESPONSIBLE IF YOU SET UP A SERVER AND LOSE YOUR INTERNET ACCESS! IF YOU ARE IN DOUBT, ASK YOUR ISP IF YOU CAN HOST A SERVER!
1) Follow this link to download the update tool.
http://www.steampowe...supdatetool.exe
2) Once you have downloaded it, make a folder anywhere on your computer and call it srcds. Im using the root of my harddrive in this example. (C:\srcds)
Now that you have that done, Double-click the hldsupdatetool and install it into that directory.

Now that you have that set up, you can now start installing. This may take a while to download (it downloads a few gigs of data)
3) Go to your command prompt. If you don't know where that is, click the start menu and find the "run" icon near the bottom right. Click it and type 'cmd' into the window and click run. Now your at your command prompt.
4) Once you're there type "cd C:\SRCDS".
It should now say something similar to C:/SRCDS.
Now, if we wanted to install a TF2 server, we would now type the following:
hldsupdatetool.exe -command update -game tf -dir c:\SRCDS\tf2

The updater will now download the TF2 server files. Use the above step to update your server after a tf2 update has been released!
NOW, THE SERVER.CFG file. This is where your server gets all it's settings from.
Once the updater is finished downloading, you will want to create and add your server.cfg file to C:\SRCDS\tf2\orangebox\tf\cfg. So open up notepad, copy and paste this and then save it as "server.cfg". Then add it to the location mentioned above!

// General Settings // // Hostname for server. hostname 'iKill's TF2 Server" // Maximum number of rounds to play before server changes maps mp_maxrounds 5 // Control where the client gets content from // 0 = anywhere, 1 = anywhere listed in white list, 2 = steam official content only sv_pure 0 // 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 // // Contact email for server sysop sv_contact "xxxxx@xxx.xxx" // 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 5 // Rcon Settings // // Password for rcon authentication rcon_password "xxxxx" // 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 5 // Log Settings // // 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 // // Frame rate limiter fps_max 500 // Min bandwidth rate allowed on server, 0 == unlimited sv_minrate 0 // Max bandwidth rate allowed on server, 0 == unlimited sv_maxrate 20000 // Minimum updates per second that the server will allow sv_minupdaterate 10 // Maximum updates per second that the server will allow sv_maxupdaterate 66 // Download Settings // // Allow clients to upload customizations files sv_allowupload 1 // Allow clients to download files sv_allowdownload 1 // Maximum allowed file size for uploading in MB net_maxfilesize 15 // Download URL where users get files from, i.e, maps, sounds, etc. sv_downloadurl "www.yoururl.com" // Team Balancing // // Enable team balancing mp_autoteambalance 1 // Teams are unbalanced when one team has this many more players than the other team. (0 disables check) mp_teams_unbalance_limit 1 // Round and 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 35 // Client CVARS // // Restricts spectator modes for dead players mp_forcecamera 0 // 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 900 // Maximum time a player is allowed to be idle (in minutes), made this and sv_timeout equal same time? mp_idlemaxtime 15 // Deals with idle players 1=send to spectator 2=kick mp_idledealmethod 2 // time (seconds) between decal sprays decalfrequency 30 // Communications // // enable voice communications sv_voiceenable 1 // Players can hear all other players, no team restrictions 0=off 1=on sv_alltalk 0
Now. Starting your server up!
There is a special way to start up SRCDS. You can either have the GUI server (which is crap and uses more resources), or you can use the console version (text based, less resource intensive and easier to control).
To start up srcds in console mode, do the following (there are 2 ways to do it - METHOD 1 (BELOW)/METHOD 2 - WITH CRASH PROTECTION (thanks Max)). Create a shortcut to SRCDS.exe (located in the orangebox folder), and place it on the desktop.

Now, right click on the shortcut you just placed on the desktop, and select properties. In the Target box, add the following (example) to the end of the line:
-game tf +hostport 27010 -maxplayers 6 -console -nohltv +map pl_swiftwater

That tells SRCDS that it has to load TF2 server, the port is 27010, maximum players is 6, it must start in console mode, no SourceTV, and the map it needs to load is pl_swaftwater.
Open it up, and you should have your own tf2 server (like this).

BUT, you might need to set up port forwarding. I will explain this, and setting up sourcemod/plugins later in a different post.

Help



Promote to Article
MultiQuote























