Team Fortress 2 Install
From 2047Servers Support
| Line 30: | Line 30: | ||
| − | == Installing | + | == Installing SteamCMD + SRCDS == |
| − | First you will need to download | + | First you will need to download SteamCMD (The new Server tool from Valve) in order to download Steam & then SRCDS (Source Dedicated Server) for CSGO use |
| − | <pre>wget http:// | + | <pre>wget http://media.steampowered.com/client/steamcmd_linux.tar.gz</pre> |
| − | After downloading you will need to | + | After downloading you will need to extract the contents of the compressed file |
| − | <pre> | + | <pre>tar xvfz steamcmd_linux.tar.gz</pre> |
| − | + | Then you will need to run SteamCMD for the first time | |
| − | + | <pre>./steamcmd.sh</pre> | |
| − | + | Running this command will check for SteamCMD updates to the updater, when it is done it will allow you to input commands | |
| − | + | At the point where you see "Steam>" This is where you can either login as your steam account or login as anonymous (Benefits for linking your server to a Steam account is that steam will add it to their trusted 3rd party servers list in some of their games, so it will appear on the server browser better) | |
| − | + | Logging in anonymously | |
| − | <pre> | + | <pre>login anonymous</pre> |
| − | + | Logging in as your account (Note it is best to create a separate account for this, or you will have to logout of Steam while you are using these commands) | |
| − | <pre> | + | <pre>login <username></pre> |
| − | + | It should then ask for your password & you may have to enter your Steam Guard Password once it emails you one (if you have Steam Guard enabled on your account) | |
| − | |||
== Downloading TF2 == | == Downloading TF2 == | ||
| Line 64: | Line 63: | ||
Once you have done the tasks above you can now install a Steam Game Server, To install TF2 to the current folder you command | Once you have done the tasks above you can now install a Steam Game Server, To install TF2 to the current folder you command | ||
| − | <pre>./ | + | <pre>force_install_dir ./TF2/</pre> |
| − | + | <pre>app_update 232250 validate</pre> | |
| − | + | 232250 is the app id for TF2 | |
| + | |||
| + | This will check the current folder & download any / all missing files for a TF2 Server (you can use this command to re-download files that you may have deleted | ||
| + | |||
| + | TF2 Will now download (Should go very fast with our network speeds on our servers) | ||
== Running TF2 via Screen == | == Running TF2 via Screen == | ||
| Line 74: | Line 77: | ||
When you go to run the game server you want it to run in the background even when you disconnect from Putty, you will find if you just leave it running & close Putty you will kill the server (kills any processes you left running) | When you go to run the game server you want it to run in the background even when you disconnect from Putty, you will find if you just leave it running & close Putty you will kill the server (kills any processes you left running) | ||
| − | The way you keep a process running while you disconnect, is by making a session (using screen) Note to change the " | + | The way you keep a process running while you disconnect, is by making a session (using screen) Note to change the "TF2_Server" to the servers name or folder name |
<pre>screen -S TF2_Server</pre> | <pre>screen -S TF2_Server</pre> | ||
| Line 84: | Line 87: | ||
Max Players - up to 32, Port (Best to use unused ones e.g. 25XXX-27XXX | Max Players - up to 32, Port (Best to use unused ones e.g. 25XXX-27XXX | ||
| − | <pre>./srcds_run -game tf +map pl_goldrush +maxplayers 32 | + | <pre>./srcds_run -game tf +map pl_goldrush +maxplayers 32 -port 27000 +exec server.cfg</pre> |
If all done right your server should start up fine & the last thing it should say is "VAC Secure" or something very simular, If not try downloading the files again, just incase it missed a few (highly unlikly) | If all done right your server should start up fine & the last thing it should say is "VAC Secure" or something very simular, If not try downloading the files again, just incase it missed a few (highly unlikly) | ||
| Line 91: | Line 94: | ||
Using Keys "Ctrl + A + D" at the same time | Using Keys "Ctrl + A + D" at the same time | ||
| − | |||
== Reconnecting to the process / session == | == Reconnecting to the process / session == | ||
| Line 108: | Line 110: | ||
Note Change the ID numbers to what your ones are | Note Change the ID numbers to what your ones are | ||
| + | |||
| + | == Potential Errors == | ||
| + | |||
| + | Upon running TF2 Server you may get this error, this error happens when there is wrong characters inside the steam_appid.txt file. | ||
| + | |||
| + | <pre>Unable to load Steam support library</pre> | ||
| + | |||
| + | Solution : Edit the steam_appid.txt file & make sure only "440" is in the file, nothing else, no spaces. Save & Close then you server should start fine | ||