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

Dedicated Linux server: Difference between revisions

From TF2 Classified Wiki
Webb (talk | contribs)
No edit summary
Webb (talk | contribs)
No edit summary
 
(5 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 publicly-facing server.
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 '''latest 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, it's 7301 and 1389 respectively.
'''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 270: Line 270:


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>.
First, we'll need to disable automatic game data updating to prevent our gamedata file from being removed.
<pre>
$ nano ~/classified/tf2classified/addons/sourcemod/configs/core.cfg
</pre>
Replace <code>"no"</code> in this part of the file with <code>"yes"</code>
<pre>
        /**
        * Enables or Disables SourceMod's automatic gamedata updating.
        *
        * The default value is "no". A value of "yes" will block the Auto Updater.
        */
        "DisableAutoUpdate"                    "no" // Change to "yes"
</pre>


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/gamedata/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]]