Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User:Webb/Steam dedicated server: Difference between revisions

From TF2 Classified Wiki
Webb (talk | contribs)
No edit summary
Webb (talk | contribs)
Gamedir is now tf2classified
Line 119: Line 119:


<pre>
<pre>
$ cd ~/classified/tf2classic/bin/linux64
$ 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/tf2classic/cfg/server.cfg</code> by appending the file with <code>sv_password yourpassword</code>.
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/tf2classic/cfg</code>.
And merge the <code>cfg</code> folder with <code>/home/srcds/classified/tf2classified/cfg</code>.


<pre>
<pre>
$ rsync /tmp/cfg ~/classified/tf2classic/cfg
$ 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/tf2classic/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.
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 ==