How to make a Team fortress 2 Dedicated Server(Or any other source game server)

Thanks! Share it with your friends!

You disliked this video. Thanks for the feedback!

Added by tomm
3 Views
Important Note:
I help all the people that send me messages,but I don't help people that ask me stuff that I answer below.Also this tutorial has enough comments and answers from me that it is pretty possible your question is already answered.So please click the button "Show all comments" and use Ctrl + F to search for your question.

If you liked my tutorial subscribe to encourage me making more videos.Before you ask any questions read the FAQ below.

If you would like to run another server just change the game name on the commands CSS is Counter-Strike Source,
Gmod is Garrysmod,Day Of defeat is Dod and Team fortress 2 is tf.


Console commands:

1st Command : cd c:\program files\valve\hlserver
2nd Command : HldsUpdateTool.exe -command update -game tf -dir c:\tf2

Shortcut commands:

-game tf -console +exec server.cfg +maxplayers 16 +map pl_badwater


Useful sites and links:

HldsUpdateTool download https://support.steampowered.com/kb_article.php?ref=6758-TCMF-2234
Port forwarding instructions
http://portforward.com/
Port check
http://www.canyouseeme.org/
Custom maps fo your server
http://www.tf2maps.net http://www.fpsbanana.com/maps/games/297

FAQ

1)I connect to my server but my friends keep see server not responding?
This is a very common problem.The first thing you will need to do is check that your ports are forwarded correctly for TF2 you need ports 27000-27020 TCP\UDP forward them on your ip [you can find your ip by clicking start run (type)command (type)ipconfig].If this doesn't work you must forward your ports through your windows firewall.Start control panel firewall exceptions Add port (and add one by one the ports).The last thing check that your server is not private Lan by addinh to your cfg file sv_lan 0

2)I have a dynamic ip can i run a server with it?
Of course you can but with a dns.I use DynDns.This will let us make a domain name (example.servegame.org) whick will point uor ip.To do this make an account and select the service Free Dynamic Dns make your own hostname and add you ip.Then download and install to your computer DynDnsUpdater this will refresh you ip each time you open your pc or press the refresh button.

3)How many players can my server stand?
This depends on your upload speed.In average you need 6-7 KB per slot also:

Upload Bandwitch requipments:

256Kbps Upstream ---- 1-4 players
384Kbps Upstream ---- 4-8 players
512Kbps Upstream ---- 8-10 players
768Kbps Upstream ---- 12-18players
1024Kbps Upstream ----20-24 players

Cpu requipments:You will need at list a single core of 2,4 Ghz but a dual core will be the best solution.

Ram minimum requipments:

256MB Ram ----4-8 players
768MB Ram ----10-18 players
1024MB Ram ----20-26 players
1536MB Ram ----28-32 players

By checking all the requipments you avoid lag and unhappy clients.

4)How can i be the admin on my server?

The easiest way is by server console.But if you are also playing in your server it's not practic.The other way is by instaling SourceMod or something similar (I will make a tutorial for it )

5)What is the server.cfg?

It's a cfg file that has commands which are executed while the server starts.You can use to make changes to your server.

6)How can i set a password on my server?

By adding the following command on your server.cfg file sv_password YourPasswordHere

7)Couldn't allocate any ip|port ?

Go to
Steam\My games\Tf2\Properties\Set Launch Options
enter this
+hostport 27016 +tv_port 27021


Common Commands:

You can enter this commands to your server.cfg file or directly to your server console.

hostname YourHostnameHere (Server Hostname)
sv_password (Set Password you your server)
mp_friendlyfire 0 or 1 (Receive fire from teammates)
mp_autoteambalance 0 or 1 (Team are balanced automatically)
sv_alltalk 0 or 1 (Players can hear all other players no team restrictions)
sv_allowupload 0 or 1 (Allow clients to upload their decals to the server)
sv_voiceenable 0 or 1 (Allow clients to use microphone)
mp_allowspectators 0 or 1 (Allow spectators on server)
mp_maxrounds Number (Rounds to play before server changes maps)
mp_winlimit 0-20 (Max number of rounds one team can win before server changes maps)




Well if you still have questions don't hesitate to ask by comment or pm also in order to understand your problem better inculde a link with an image ;)

How to make hostname for your server:
http://www.youtube.com/watch?v=l6gpbdPih4Y

Note:If you are too young to drink beer try lemonade.
Category
HOW TO

Post your comment

Comments

Be the first to comment