

If you've read the subsection about the directory layout you should already know how to do this.Īnd if you read the subsection about the server console you also know how to test if it worked.īut lets explain this again. Then enter sm_reloadadmins in the server console, you should get this as a response: Admin cache has been refreshed. We are using the simple approach and just add one line to the admins_simple.cfg file in your sourcemod/configs/ directory: In this step we do it quick and dirty, but you might want to read the chapter about Adding Admins and Adding Groups, then create a group for system administrators and add yourself to it. There are several ways to manage access rights on your server. To make things easier from now on, you should add yourself as an root-admin. Plugins are encouraged to provide translation files, so you might need to copy some files in here when installing a plugin. Not much to say about this folder, it contains translations for many languages. You don't need to place any files here to install a plugin, but it is highly recommended to not only install the smx files, but also their corresponding sp file. You can find the sourcecode to plugins in this directory, at least the original alliedmods ones. rockthevote) and some others you want to disable by moving them here (e.g. You will find some official alliedmods plugins in this directory you might want to install (e.g. Move plugins from the parent directory to this one to disable a plugin and vice-a-versa. Plugins in this sub-folder won't be loaded. Plugins will also be reloaded on mapchange if their file has changed. Or fix the problem yourself if you understand the error.Īll plugins (.smx files) in this directory will be loaded automatically when sourcemod starts. Don't try to be smart here and post what you think the given errors are saying, just post the lines. If someone asks you what the logfiles are saying or whether you get any errors: reproduce your problem, then take a look at the logfiles and just copy&paste the messages. The holy grail of debugging your actions. At this point you don't need to know more about this, because sourcemod has an integrated updater, which automatically fetches the new gamedata files for you.

These can change after valve releases an update. Respawn a player or equipping a player with a weapon, sourcemod needs to know a few "facts" (to be precise: offsets and signatures) about the function. If an extension or a plugin is using functionality provided by the game engine, e.g.

This is for the "OrangeBoxValve"-Engine e.g. This is for the "OrangeBox"-Engine used by mods, e.g. "Old Metamod" (Insurgency, Eternal Silence and other EP1 mods) Lets take a look at the bintools extension for example: You might notice that many extensions exist multiple times, this is due to the fact that the different game engines each need their own extension based on their SDK. This is the directory where extensions must be installed. Look at every file in this folder at least once, try to understand them. This is the default place where sourcemod and its plugins put their configuration files. Ignore this folder, it has the actual sourcemod binaries in it and what's in those files (open them with notepad (better: notepad++ or some other custom text editor)).by using HLSW).Īlso get to know the directory layout sourcemod is using, this means: Get more familiar with the console, either directly or preferably via rcon (e.g. For that you did the instructions in the Checking the Install chapter and issued some first commands in the server console. You've just installed sourcemod and made sure that it's working. 2.3 How to test if your plugin is installed correctly.
