User:Webb/Steam dedicated server: Difference between revisions
From TF2 Classified Wiki
More actions
No edit summary |
Gamedir is now tf2classified |
||
| Line 119: | Line 119: | ||
<pre> | <pre> | ||
$ cd ~/classified/ | $ cd ~/classified/tf2classified/bin/linux64 | ||
$ ln -s server.so server_srv.so | $ ln -s server.so server_srv.so | ||
</pre> | </pre> | ||
| Line 144: | Line 144: | ||
== Server configuration == | == Server configuration == | ||
For a basic, private server, you should only need to set a password in <code>classified/ | For a basic, private server, you should only need to set a password in <code>classified/tf2classified/cfg/server.cfg</code> by appending the file with <code>sv_password yourpassword</code>. | ||
You can also make it LAN-only by appending <code>sv_lan 1</code> in the same file. | You can also make it LAN-only by appending <code>sv_lan 1</code> in the same file. | ||
| Line 157: | Line 157: | ||
$ unzip $PATH_TO_ARCHIVE</pre> | $ unzip $PATH_TO_ARCHIVE</pre> | ||
And merge the <code>cfg</code> folder with <code>/home/srcds/classified/ | And merge the <code>cfg</code> folder with <code>/home/srcds/classified/tf2classified/cfg</code>. | ||
<pre> | <pre> | ||
$ rsync /tmp/cfg ~/classified/ | $ rsync /tmp/cfg ~/classified/tf2classified/cfg | ||
$ rm -rf /tmp/cfg | $ rm -rf /tmp/cfg | ||
</pre> | </pre> | ||
| Line 273: | Line 273: | ||
By default, the dedicated server will use the Steam Datagram Relay. It masks your server's IP address, helps prevent DDoS attacks, and allows you to run a server without port forwarding or configuring firewalls. However, this comes at the cost of added latency and using ephemeral IP addresses for your server, the latter breaking server favoriting. | By default, the dedicated server will use the Steam Datagram Relay. It masks your server's IP address, helps prevent DDoS attacks, and allows you to run a server without port forwarding or configuring firewalls. However, this comes at the cost of added latency and using ephemeral IP addresses for your server, the latter breaking server favoriting. | ||
You can disable this by adding <code>sv_use_steam_networking 0</code> to <code>classified/ | You can disable this by adding <code>sv_use_steam_networking 0</code> to <code>classified/tf2classified/cfg/default.cfg</code>. You should also manually assign a port to the server by adding the <code>-port</code> argument to the server launch command. You will need the assigned port forwarded in your router and allowed in your firewall. | ||
== Troubleshooting == | == Troubleshooting == | ||