Difference between revisions of "Plugins"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Creating Plugins: Changed the explanation to a more user friendly manner, assuming the user has no background experience. Removed the windows orientated feel to the writing: not everyone runs windows.)
m (Creating Plugins: +show text in the table cells;)
Line 16: Line 16:
 
| [[Setting up Visual Studio|Visual Studio]]
 
| [[Setting up Visual Studio|Visual Studio]]
 
| Commercial
 
| Commercial
| style="background:#ccffcc;" |  
+
| style="background:#ccffcc;" | {{Yes}}
| style="background:#ffcccc;" |  
+
| style="background:#ffcccc;" | {{No}}
| style="background:#ffcccc;" |  
+
| style="background:#ffcccc;" | {{No}}
 
|-
 
|-
 
|[[Setting up MonoDevelop|MonoDevelop (aka Xamarin Studio)]]
 
|[[Setting up MonoDevelop|MonoDevelop (aka Xamarin Studio)]]
 
| LGPLv2 / MIT (Free)
 
| LGPLv2 / MIT (Free)
| style="background:#ccffcc;" |  
+
| style="background:#ccffcc;" | {{Yes}}
| style="background:#ccffcc;" |  
+
| style="background:#ccffcc;" | {{Yes}}
| style="background:#ccffcc;" |  
+
| style="background:#ccffcc;" | {{Yes}}
 
|-
 
|-
 
|[[Setting up SharpDevelop|SharpDevelop]]
 
|[[Setting up SharpDevelop|SharpDevelop]]
 
| Open-source (Free)
 
| Open-source (Free)
| style="background:#ccffcc;" |  
+
| style="background:#ccffcc;" | {{Yes}}
| style="background:#ffcccc;" |  
+
| style="background:#ffcccc;" | {{No}}
| style="background:#ffcccc;" |  
+
| style="background:#ffcccc;" | {{No}}
 
|-
 
|-
 
|}
 
|}

Revision as of 10:46, 27 February 2014

Starting with KSP 0.14, the game supports custom part behaviors called Plugins. Defining custom behaviors allows you to create totally new kinds of parts, such as flight control computers, new types of fuel supply chains, etc. You can then add these to the game in the form of plugins. These DLLs can be loaded on any platform that can run KSP.

READ THE POSTING GUIDELINES BEFORE PUBLISHING YOUR PLUGIN

Using Plugins

To use a Part Module Plugin, just drop the DLL into KSP/Plugins. If the folder doesn't exist, you can create it.

Creating Plugins

To start with, you need to decide which IDE you will use. An IDE is a program that helps you to write code (in our case the language C#). Listed here are some of the most popular options. Green means it is available for that OS, and red means it isn’t available.

IDE License Windows Mac Linux
Visual Studio Commercial style="background: #9f9; vertical-align: middle; text-align: center;" class="table-yes" | Yes style="background: #f99; vertical-align: middle; text-align: center;" class="table-no" | No style="background: #f99; vertical-align: middle; text-align: center;" class="table-no" | No
MonoDevelop (aka Xamarin Studio) LGPLv2 / MIT (Free) style="background: #9f9; vertical-align: middle; text-align: center;" class="table-yes" | Yes style="background: #9f9; vertical-align: middle; text-align: center;" class="table-yes" | Yes style="background: #9f9; vertical-align: middle; text-align: center;" class="table-yes" | Yes
SharpDevelop Open-source (Free) style="background: #9f9; vertical-align: middle; text-align: center;" class="table-yes" | Yes style="background: #f99; vertical-align: middle; text-align: center;" class="table-no" | No style="background: #f99; vertical-align: middle; text-align: center;" class="table-no" | No

Now, you can get started.