<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alliedmods.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Stridemann</id>
	<title>AlliedModders Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alliedmods.net/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Stridemann"/>
	<link rel="alternate" type="text/html" href="https://wiki.alliedmods.net/Special:Contributions/Stridemann"/>
	<updated>2026-06-06T10:26:09Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.6</generator>
	<entry>
		<id>https://wiki.alliedmods.net/index.php?title=Compiling_SourceMod_Plugins&amp;diff=8421</id>
		<title>Compiling SourceMod Plugins</title>
		<link rel="alternate" type="text/html" href="https://wiki.alliedmods.net/index.php?title=Compiling_SourceMod_Plugins&amp;diff=8421"/>
		<updated>2012-03-24T19:52:50Z</updated>

		<summary type="html">&lt;p&gt;Stridemann: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Okay, so you've read the [[Introduction to SourcePawn]] and [[Introduction to SourceMod Plugins]] and now you want to actually compile a plugin.&lt;br /&gt;
&lt;br /&gt;
The simplest way to compile a plugin that doesn't rely on any custom include files is using the [http://www.sourcemod.net/compiler.php web compiler].&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can use the executable compiler distributed with SourceMod. You can use this simply if you like compiling locally rather than using the web compiler. You have to use the local compiler if your plugin relies on custom include files. The compiler is included in the .../sourcemod/scripting/ folder of the [http://www.sourcemod.net/downloads.php SourceMod distribution].&lt;br /&gt;
&lt;br /&gt;
In Windows, open up a command prompt (Start-&amp;gt;Run or WindowsKey+R, then &amp;quot;cmd&amp;quot;):&lt;br /&gt;
 cd &amp;lt;sourcemod&amp;gt;\scripting&lt;br /&gt;
 spcomp myplugin.sp&lt;br /&gt;
[http://www.computerhope.com/cdhlp.htm cd command reference]&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can simply drag the .sp file on top of spcomp.exe, which will compile the plugin for you.&lt;br /&gt;
&lt;br /&gt;
In Linux use:&lt;br /&gt;
 ./compile.sh myplugin.sp&lt;br /&gt;
&lt;br /&gt;
Now simply move the .smx (not .sp) file from .../sourcemod/scripting/ to the .../sourcemod/plugins/ folder.&lt;br /&gt;
&lt;br /&gt;
'''Note:''' When compiling preexisting plugins it is easiest to move the included from the plugin source folder to the include folder in your Sourcemod\scripting\include. Please see [[Spcomp_switches]] specifically the ''-i'' parameter for specifying a different folder for includes.&lt;br /&gt;
&lt;br /&gt;
[http://forums.alliedmods.net/showthread.php?t=52664 Reference Source]&lt;br /&gt;
&lt;br /&gt;
See Also: [http://forums.alliedmods.net/forumdisplay.php?f=107 Scripting Forum]&lt;/div&gt;</summary>
		<author><name>Stridemann</name></author>
		
	</entry>
</feed>