Difference between revisions of "Compiling SourceMod Plugins"
(initial writeup based on forum post) |
m (added "cmd") |
||
Line 3: | Line 3: | ||
You'll need the compiler which is included in the .../sourcemod/scripting/ folder of the [http://www.sourcemod.net/builds.php main distribution] (not the [http://www.sourcemod.net/sdk.php SDK]). Windows users will need [http://www.7-zip.org/ 7-zip] to extract the files. | You'll need the compiler which is included in the .../sourcemod/scripting/ folder of the [http://www.sourcemod.net/builds.php main distribution] (not the [http://www.sourcemod.net/sdk.php SDK]). Windows users will need [http://www.7-zip.org/ 7-zip] to extract the files. | ||
− | In Windows, open up a command prompt (Start->Run or WindowsKey+R): | + | In Windows, open up a command prompt (Start->Run or WindowsKey+R, then "cmd"): |
cd <sourcemod>\scripting | cd <sourcemod>\scripting | ||
spcomp myplugin.sp | spcomp myplugin.sp |
Revision as of 14:06, 27 February 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
In Linux use:
./spcomp myplugin.sp
Now simply move the .smx (not .sp) file from .../sourcemod/scripting/ to the .../sourcemod/plugins/ folder.
See Also: Scripting Forum