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

Dedicated legacy Linux server extras: Difference between revisions

From TF2 Classified Wiki
Sumea (talk | contribs)
mNo edit summary
Sumea (talk | contribs)
mNo edit summary
Line 10: Line 10:


=== Prerequisites ===
=== Prerequisites ===
This guide assumes you already have a dedicated Linux server installed that can run without issues, if not lacking in additional components. If not you should follow [[Dedicated Linux server|this guide]] to setup your server first.
This guide assumes you already have a dedicated Linux server installed that can run without issues. If not you should follow [[Dedicated Linux server|this guide]] to setup your server first.


This guide will use the same example install path as the main setup guide, so feel free to follow this guide directly if you did the setup guide too, or take not to reflect your own install path from the example one; <code>/opt/tf2classic/server/</code>.
This guide will use the same example install path as the main setup guide, so feel free to follow this guide directly if you use the same directory too <code>/opt/tf2classic/server/</code>, sometimes just <code>../server/</code>. Otherwise remember to use your own path instead.


=== Getting SourceMod and MetaMod ===
=== Getting SourceMod and MetaMod ===
Line 26: Line 26:


<code><nowiki>$ wget https://mms.alliedmods.net/mmsdrop/1.11/mmsource-1.11.0-git1148-linux.tar.gz</nowiki></code><br>
<code><nowiki>$ wget https://mms.alliedmods.net/mmsdrop/1.11/mmsource-1.11.0-git1148-linux.tar.gz</nowiki></code><br>
''<small>This link may be outdated as well. You can check metamod:source downloads page for the newest version.</small>''
''<small>This link may be outdated as well. You can check metamod:source downloads page for the newest version's URL.</small>''


you can now extract both inside your <code>tf2classic</code> folder:
you can now extract both inside your <code>tf2classic</code> folder:
Line 39: Line 39:


=== Replacing <code>metamod.vdf</code> ===
=== Replacing <code>metamod.vdf</code> ===
Correct <code>metamod.vdf</code> is necessary for your server to recognize the game. Since this is a third party mod, we need to use a web tool to generate a custom metamod.vdf file that points to <code>tf2classic</code>, or create one manually ourselves.
Correct <code>metamod.vdf</code> is necessary for metamod:source to start correctly. Since this is a third party mod, we can use a web tool to generate a custom metamod.vdf file that points to <code>tf2classic</code>. Otherwise, we create one from scratch in text editor.


You should navigate to your <code>../server/tf2classic/addons/</code>, following Dedicated Server setup guide's example, we should navigate to: <code>/opt/tf2classic/server/tf2classic/addons/</code>
You should navigate to your <code>../server/tf2classic/addons/</code>.


You can now delete <code>metamod.vdf</code> and <code>metamod_x64.vdf</code> in this directory. No need to back up these or anything.
You can now delete <code>metamod.vdf</code> and <code>metamod_x64.vdf</code> in this directory. No need to back up these or anything, they are less than useless for TF2C server.


<code><nowiki>$</nowiki> rem metamod.vdf</code><br>
<code><nowiki>$</nowiki> rem metamod.vdf</code><br>
Line 51: Line 51:
You’re going to leave the “Game:” blank, or as “—”. In the “Game Folder” box, enter <code>tf2classic</code>. After downloading generated file with these variables, use SFTP to transfer it to your server's <code>../server/tf2classic/addons/</code> directory.
You’re going to leave the “Game:” blank, or as “—”. In the “Game Folder” box, enter <code>tf2classic</code>. After downloading generated file with these variables, use SFTP to transfer it to your server's <code>../server/tf2classic/addons/</code> directory.


If you currently do not have SFTP available on your game server, you can alternatively do everything from Command Line/SSH.
If you currently do not have SFTP available on your game server, you can alternatively do everything from Command Line/SSH, provided you have a text editor like <code>nano</code> installed.


Make sure that you are working in <code>../server/tf2classic/addons</code> directory.
Make sure that you are working in <code>../server/tf2classic/addons</code> directory.
Line 74: Line 74:
===Importing custom gamedata===
===Importing custom gamedata===
To fix many functions of SourceMod when running under Team Fortress 2 Classic, we need to import custom gamedata.
To fix many functions of SourceMod when running under Team Fortress 2 Classic, we need to import custom gamedata.
<br>Move first to work under <code>../server/tf2classic/</code> directory  (<code>/opt/tf2classic/server/tf2classic/</code>)  
<br>Move first to work under <code>../server/tf2classic/</code> directory. (<code>/opt/tf2classic/server/tf2classic/</code>)  


If you are working with Ubuntu Server, you might have <code>git</code> program already installed. Try first the following command:
If you are working with Ubuntu Server, you might have <code>git</code> installed. Try first the following command:


<code><nowiki>$</nowiki> git clone <nowiki>https://github.com/Scags/TF2Classic-Tools.git</nowiki></code>
<code><nowiki>$</nowiki> git clone <nowiki>https://github.com/Scags/TF2Classic-Tools.git</nowiki></code>


If you do not have <code>git</code>, download this repo with wget directly:
If you do not have <code>git</code>, download the repo with wget directly:


<code><nowiki>$</nowiki> <nowiki>wget https://github.com/Scags/TF2Classic-Tools/archive/master.zip</nowiki></code>
<code><nowiki>$</nowiki> <nowiki>wget https://github.com/Scags/TF2Classic-Tools/archive/master.zip</nowiki></code>