Dedicated legacy Linux server extras: Difference between revisions
From TF2 Classified Wiki
More actions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
==TF2 Classic SourceMod+Metamod Setup== | == TF2 Classic SourceMod+Metamod Setup == | ||
<small>''Note: This guide was adapted and revised from a guide written by Raizo, the original of which can be found here: https://iraizo.github.io/tf2-classic-sourcemod-setup/''</small> | <small>''Note: This guide was adapted and revised from a guide written by Raizo, the original of which can be found here: https://iraizo.github.io/tf2-classic-sourcemod-setup/''</small> | ||
| Line 11: | Line 11: | ||
=== Prerequisites === | === Prerequisites === | ||
This guide assumes you already have a dedicated Linux server running 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 running 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 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>. | |||
=== Getting SourceMod and MetaMod === | === Getting SourceMod and MetaMod === | ||
| Line 95: | Line 97: | ||
Now we have the necessary gamedata for plugins and core SM and MM functions to work with TF2C. | Now we have the necessary gamedata for plugins and core SM and MM functions to work with TF2C. | ||
===Setting yourself as the “root” admin user.=== | ===Setting yourself as the “root” admin user and finalizing.=== | ||
To register yourself as an administrator on your server with SourceMod, we have to add people to <code>admins_simple.ini</code> file. | To register yourself as an administrator on your server with SourceMod, we have to add people to <code>admins_simple.ini</code> file. | ||
You want to find out your SteamID using a website like [https://steamid.io/ steamid.io]. Enter your steam community URL to the site and you should get set of info that includes your <code>steamID</code>, which should be in <code>STEAM_0:1:16</code> format. | |||
Open the file <code>/opt/tf2classic/server/tf2classic/addons/sourcemod/configs/admins_simple.ini</code> with a text editor, <code>nano</code> already familiar candidate. The file will be full of guidance and additional information how the file works for new users inside slashes. Do not worry about leaving all of it into the file as every line beginning with number of slashes are simply ignored, so this full looking file is empty as it comes to how SourceMod handles it. Punch a new line at the bottom of this file and enter the following: | |||
<code>"STEAM_0:1:16" "99:z"</code> | |||
Replace <code>STEAM_0:1:16</code> with your own or your master administrator's steamID that you extracted with afformentioned [https://steamid.io steamid.io] for example. "99:z" in this case assigns high umminity and root (full) access for administration. You can add more people to <code>admins_simple.ini</code> file but you should limit their access to the server by using examples within the file itself and documentation from SourceMod's wiki: https://wiki.alliedmods.net/Adding_Admins_(SourceMod) | |||
Save, exit and start/restart your server and everything should be running fine. You can make sure of this by typing <code>meta version</code> in your server console (or RCON). You should see a line like <code>"Loaded As: Valve Server Plugin."</code>. Additionally, if you assigned yourself as an administrator for the server, typing <code>!admin</code> or <code>/admin<code> in chat should bring up administrative menu on player hud. <code>sm_admin</code> should additionally work when typed in to your client console window, and you can use <code>sm_rcon</code> to use SourceMod to relay any console command to the server, if you set yourself up with <code>z</code> flag. | |||
Further tweaking of SourceMod to suit your needs is outside scope of this guide. You can get familiar with SourceMod's other functions and configuration in their wiki: [https://wiki.alliedmods.net/Category:SourceMod_Documentation wiki.alliedmods.net/Category:SourceMod_Documentation] | |||