Difference between revisions of "Compiling SourceMod Plugins"

From AlliedModders Wiki
Jump to: navigation, search
m (added "cmd")
m (Error in the linux compile)
Line 9: Line 9:
  
 
In Linux use:
 
In Linux use:
  ./spcomp myplugin.sp
+
  ./compile.sh myplugin.sp
  
 
Now simply move the .smx (not .sp) file from .../sourcemod/scripting/ to the .../sourcemod/plugins/ folder.
 
Now simply move the .smx (not .sp) file from .../sourcemod/scripting/ to the .../sourcemod/plugins/ folder.

Revision as of 07:30, 9 July 2008

Ok, so you've read the Introduction to SourcePawn and Introduction to SourceMod Plugins and now you want to actually compile a plugin.

You'll need the compiler which is included in the .../sourcemod/scripting/ folder of the main distribution (not the SDK). Windows users will need 7-zip to extract the files.

In Windows, open up a command prompt (Start->Run or WindowsKey+R, then "cmd"):

cd <sourcemod>\scripting
spcomp myplugin.sp

cd command reference

In Linux use:

./compile.sh myplugin.sp

Now simply move the .smx (not .sp) file from .../sourcemod/scripting/ to the .../sourcemod/plugins/ folder.


Reference Source

See Also: Scripting Forum