Dedicated Linux server: Difference between revisions
From TF2 Classified Wiki
More actions
No edit summary |
No edit summary |
||
| (7 intermediate revisions by 3 users not shown) | |||
| Line 41: | Line 41: | ||
<pre> | <pre> | ||
# apt install dialog | # apt install dialog | ||
# apt install steamcmd p7zip aria2 tilde lib32z1 libbz2-1.0:i386 lib32gcc-s1 lib32stdc++6 libcurl3-gnutls:i386 libsdl2-2.0-0:i386 wget | # apt install steamcmd p7zip aria2 tilde lib32z1 libbz2-1.0:i386 lib32gcc-s1 lib32stdc++6 libcurl3-gnutls:i386 libcurl3-gnutls libsdl2-2.0-0:i386 wget | ||
</pre> | </pre> | ||
| Line 244: | Line 244: | ||
=== Installing SourceMod === | === Installing SourceMod === | ||
SourceMod is a server modding platform that provides admin tools, permissions, and plugin support. Installing it is strongly recommended if you plan to run a | SourceMod is a server modding platform that provides admin tools, permissions, and plugin support. Installing it is strongly recommended if you plan to run a public-facing server. | ||
You'll need to install the | '''You'll need to install the development version''' of SourceMod, as well as MetaMod which SourceMod depends on to work. '''It will not work with stable releases currently'''. As of writing this article, the latest known working development build is 7301 and 1389 respectively. | ||
<pre> | <pre> | ||
| Line 265: | Line 265: | ||
Existing SourceMod plugins are not guaranteed to work and may require special steps or patching to get working. | Existing SourceMod plugins are not guaranteed to work and may require special steps or patching to get working. | ||
==== Installing the patched | ==== Installing the patched TF2 Tools extension ==== | ||
Many plugins depend on the built-in | Many plugins depend on the built-in TF2 Tools extension that comes with Sourcemod. This isn't compatible with TF2C. Instead, we can use a patched version of the extension which enables the use of many plugins. | ||
There's currently no public download link for this extension. After joining the Team Fortress 2 Classified Discord server you can find the files you need in [https://discordapp.com/channels/196337717267791874/1011914229307166780/1467172013637636327 this message]. Specifically, you need <code>game.tf2.ext.2.tf2.so</code> and <code>sm-tf2.games.txt</code>. | There's currently no public download link for this extension. After joining the Team Fortress 2 Classified Discord server you can find the files you need in [https://discordapp.com/channels/196337717267791874/1011914229307166780/1467172013637636327 this message]. Specifically, you need <code>game.tf2.ext.2.tf2.so</code> and <code>sm-tf2.games.txt</code>. | ||
Next we'll add both the gamedata file and the plugin to our installation. | Next we'll add both the gamedata file and the plugin to our installation. | ||
<pre> | <pre> | ||
$ mv $WHEREVER_YOU_PUT_IT/sm-tf2.games.txt ~/classified/tf2classified/addons/sm-tf2.games.txt | $ mv $WHEREVER_YOU_PUT_IT/sm-tf2.games.txt ~/classified/tf2classified/addons/gamedata/custom/sm-tf2.games.txt | ||
$ mv $WHEREVER_YOU_PUT_IT/game.tf2.ext.2.tf2.so ~/classified/tf2classified/addons/extensions/x64 | $ mv $WHEREVER_YOU_PUT_IT/game.tf2.ext.2.tf2.so ~/classified/tf2classified/addons/extensions/x64 | ||
</pre> | </pre> | ||
| Line 329: | Line 312: | ||
<pre>ExecStart=/usr/bin/script -e -c "/home/srcds/classified/srcds_linux64 -port 27015 -tf_path /home/srcds/tf +map ctf_2fort +maxplayers 24" /dev/null</pre> | <pre>ExecStart=/usr/bin/script -e -c "/home/srcds/classified/srcds_linux64 -port 27015 -tf_path /home/srcds/tf +map ctf_2fort +maxplayers 24" /dev/null</pre> | ||
<pre>ExecStart=/home/srcds/classified/srcds_linux64 -port 27015 -tf_path /home/srcds/tf +map ctf_2fort +maxplayers 24</pre> | <pre>ExecStart=/home/srcds/classified/srcds_linux64 -port 27015 -tf_path /home/srcds/tf +map ctf_2fort +maxplayers 24</pre> | ||
=== SourceMod extensions doesn't load with "Extension version is too new/old to load" error === | |||
Depending on what version of SourceMod you have installed you will either need to install the extension API 8 or API 9 version of extensions. Sourcemod 1.13 v7354 bumped the extension API number, which breaks extensions built for older versions. | |||
If it complains about the extension being too new, you'll probably need to install the API 8 version. If it complains about the extension being too old then you'll probably need to install the API 9 version. | |||
The patched TF2 Tools extension has builds for both extension API versions in the pinned message. However, an API 9 build is not available for Windows as of writing. | |||
[[Category:Guides]] | [[Category:Guides]] | ||