Sourcemod

From Nitradopedia EN
Jump to: navigation, search

<!- Do not delete this and the next line. --> <!- There is a redirect from https://wiki.nitrado.net/en/index.php?title=Sourcemod_-_Snapshots&redirect=no to this page. -->

What is Sourcemod?

Source and metamod are two HalfLife 2 addons that allow administrators of Sourceengine gameservers (e.g., CS:S, DoD:S, TF2, etc.) to get in-game rights. In addition, Sourcemod, Metamod partial, also allows the installation of plugins that provide new content to the game and change the game experience. However, Metamod provides the "basic framework" for Sourcemod. There must be mandatory Metamod installed to get Sourcemod to run. In order to make the article more clear, Sourcemod will be mentioned later.

Automatic installation of Sourcemod on a Nitrado Gameserver

I explain the installation here by means of Counter-Strike: Source, for Half-Life 2: Deathmatch and Team Fortress, it's basically the same, only the paths differ slightly. If necessary, You must perform a manual installation. The reasons for this, as well as the installation instructions, are discussed in the following section.

The automatic installation of Sourcemod is quite simple. Via the menu item "additional packages" in the web interface, this can be installed by mouse click.

Manual installation of Sourcemod

As already mentioned, it is sometimes necessary or very sensible to carry out a manual installation of Sourcemod. The reasons may include Following:

  • The version in the web interface is not the most recent version, there are server crashes.
  • The game offered does not support automatic installation.
  • Valve has released an update for the server files, which is why the old Sourcemod version is no longer working.


Download the required files

To perform a manual installation, the required files must first be downloaded to the local computer. First you have to create a .vdf file for metamod. This makes her under this link by selecting the game and leaving the field "Game folder" blank. The .VDF file is generated and provided for download Then you have to download the snapshots of the addons. In doing so, always take the 'newest version' of the snapshot. So the version, which appears in the list at the top and has the largest number at the same time. The operating system we chose is Linux. The snapshots are used because the official versions are available in the web interface or the Mod pages under "downloads" may not always be up-to-date. The snapshots, however, are significantly new and thus already updated to current updates of Valve or are available immediately after an update from the developers of the Mods.

The current snapshot files can be found here:

http://www.metamodsource.net/snapshots
http://www.sourcemod.net/downloads.php?branch=dev

The files are packed in archives, so they have to be unpacked. With the Linux version these are packaged twice. The best way to do this is to use 7-Zip as it supports the archive types.

Note when updating the version

If you want to update your Sourcemod version, please make sure that you delete the configuration files before the update. These are located in the following folders:

  • cfg
  • Addons/sourcemod/configs

FTP connection and upload files

When the top steps are done, it will time to connect to the server. It is important to stop the server, because it can lead to complications. The most suitable is a FTP connection (linked article) Hundreds of files have to be uploaded If you have all the files together, proceed as follows:

  • Copy the "addons" folder from the metamod archive to /playname/(for example, gmod13, l4d2, css, csgo, etc.).
  • The generated metamod.vdf in the folder /gamename/addon /copy (must be overwritten!)
  • Copy the "addons" and "cfg" folders to the /playname/folder.

Then start the server.

Set Admins

In this description, we are given the full rights for a Steam account. To create an authorization structure for different user groups, I recommend you the official documentation. A Nitradopedia article follows.

1. Opens the /spieleordner/addons/sourcemod/configs/admins_simple.ini file via FileBrowser or FTP.

2. Empties the entire contents of this file.

3. Inserts the steam ID of your Steam account according to the following scheme:

STEAM_X: X: XXXXXXXX 99:

Instead of STEAM_X: X: XXXXXXXX you insert your SteamID, which you can find out by entering your Steam profile link in this coverter. Alternatively you can go to a game server and enter the command "status" into the console of the game.

4. The file is now saved and after the next mapchange, adminreload or server restart, you have admin rights on the server. You can check this by entering "!Admin" into the ingame chat.

Install plugins

To install a plugin, simply push it into the folder srcds_l/css/cstrike/addons/sourcemod/plugins.

If the plugin has been "delivered" with a config, push it into the folder srcds_l/css/cstrike/addons/sourcemod/configs.

On the download page, you will often find a list of variables that allow you to configure the plugin, depending on the type and amount of available variables. If your plugin has such variables, it just adds to the server.cfg folder in the srcds_l/css/cstrike/cfg folder. Note that each row can contain only one variable.

All further information can be found on the respective download pages of the plugins. If problems, simply ask in the forum.

Plugins for Sourcemod can be found on the following pages:
http://www.sourcemod.net/plugins.php https://forums.alliedmods.net/forumdisplay.php?f=123

Use Sourcemod on the server

To open Sourcemod on the server, you need the Console first. To start the game, please right-click on the game in your Steam library. Now please click on "Properties --> Set start options". Just enter "-console" and click on "ok".

Since we now have the console in the game, we can open the Admin menu by entering into the console "sm_admin". Theoretically, now ingame should be on the left side of the Admin menu. So we do not have to open the console all the time, I recommend the following command in the console: bind "k" "sm_admin, if you press the key "k", you can open the admin menu in the game Replace another letter.