careo / SimpleKSPPlugin

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SimpleKSPPlugin

Authors:

Setup

You need to setup a couple of symbolic links (supported in Windows since Vista) within the project:

  • Library/KSP -- the directory with the DLLs shipped with KSP.
  • Build/Plugins -- wherever you want your compiled DLL. I have it pointing to the Plugins directory of a "lite" version of KSP I use for development.

NOTE: You should not need to touch the assembly references of the project directly in order to get it to build, creating the links above should be sufficient. In fact, if you do change the references, you will end up with a changed .csproj that uses absolute paths specific (and useful) only to your own KSP install.

In case you do this or existing references, or add new ones and wish to fix it, open the .csproj file in a text editor and find the section that lists the references and edit any hint paths that point to absolute paths to look like:

<HintPath>..\Library\KSP\Assembly-CSharp.dll</HintPath>

OS X Setup

Library/KSP should be a symlnk to <kspdir>/KSP.app/Contents/Data/Managed/.

Open a terminal window and cd to this project's root directory, and (substituting <kspdir> for the path to whichever KSP install you want):

ln -s <kspdir>/KSP.app/Contents/Data/Managed/ ./Library/KSP

Windows Setup

Library/KSP should be a symlnk to <kspdir>/KSP_data/Managed/

Open a terminal window and cd to this project's root directory, and (substituting <kspdir> for the path to whichever KSP install you want):

mklink /D <kspdir>\KSP_data\Managed Library\KSP

Alternately, you can use the "link shell extension" (TODO: can anyone verify this, provide a link to it?).

Contributors

  • cybutek admin@cybutek.net for the initial PartModule boilerplate that got this all started!

License

SimpleKSPPlugin - Simple boilerplate for a KSP Plugin
Copyright (C) 2012 careo <careo@exsurgent.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

About

License:GNU General Public License v2.0


Languages

Language:C# 100.0%