Skip to content

Installing Self compile

Bara edited this page Nov 9, 2020 · 1 revision

Self compile

Installing Self-compile

How to Self-compile

  • If you are unsure as to how you compile a plugin, you can follow the steps outlined here.

AutoExecConfig

Installation
  1. Locate the file you downloaded.
  2. Open the downloaded file and copy autoexecconfig.inc to csgo/addons/sourcemod/scripting/include/

SMLib

Installation
  1. Locate the file you downloaded.
  2. Open the downloaded file and copy gamedata and scripting to csgo/addons/sourcemod/

ColorLib

Installation
  • Only the colorlib.inc file is needed.
    1. Locate the file you downloaded.
    2. Open the downloaded file and locate addons/sourcemod/scripting/include/colorlib.inc. Copy this file to csgo/addons/sourcemod/scripting/include/

How to self-compile

How to
  1. Locate csgo/addons/sourcemod/scripting/ and you will see a file named spcomp.exe. To compile a plugin simply drag and drop the .sp file of the plugin onto the compiler. If the compile was a success you should now have the myplugin.smx file.
  2. Now simply move the .smx (not .sp) file from csgo/addons/sourcemod/scripting/ to the csgo/addons/sourcemod/plugins/ folder.
  • Note: If you are configuring your server via FTP you will not be able to drag and drop the file. You will need to copy you server contents to your local machine to do this.
  1. Depending on your Linux version you need to install the libc6 and libstdc++6 32bit libraries before you start to compile. Example for Ubuntu: apt-get install libc6:i386 lib32stdc++6
  2. Then use: ./compile.sh myplugin.sp. If the compile was a success you should now have myplugin.smx located in a new folder called compile.
  3. Now simply move the .smx (not .sp) file from csgo/addons/sourcemod/scripting/compiled/ to the csgo/addons/sourcemod/plugins/ folder.
Clone this wiki locally