Jump to content

Setting up plug-in development environment.


Recommended Posts

Hi.

I am really at a brick wall when trying to start out plug-in development.

Though there's plenty of general tutorials, I can't find anything on how to set up Visual Studio 2010 to create plugins, for example how to use the Unity Namespace and inherit the stock game classes.

I've barely touched coding since college, so this is all a bit foggy in my mind.

fe59a58b6a.png

Could someone point me in the right direction?

Thanks...

Link to comment
Share on other sites

Could someone point me in the right direction?

It's that way ---->

More seriously, change the .NET Framework option to 3.5 and create your "Class library" project. Then you should be able to find a "References..." menu option (probably right click the project in the solution explorer) which will allow you to add the required assemblies from an install of KSP. You need to add KSP_Data\Managed\UnityEngine.dll for the Unity stuff and KSP_Data\Managed\Assembly-CSharp.dll for the KSP stuff. (You will also need KSP_Data\Managed\Assembly-CSharp-firstpass.dll if you want to do some things, e.g. use the stock AppLauncher/toolbar thing).

Beyond that, I would recommend getting the source to a few simple plugins and see how they do what they do and also look for any tutorial type threads in this sub-forum...

Link to comment
Share on other sites

It's that way ---->

More seriously, change the .NET Framework option to 3.5 and create your "Class library" project. Then you should be able to find a "References..." menu option (probably right click the project in the solution explorer) which will allow you to add the required assemblies from an install of KSP. You need to add KSP_Data\Managed\UnityEngine.dll for the Unity stuff and KSP_Data\Managed\Assembly-CSharp.dll for the KSP stuff. (You will also need KSP_Data\Managed\Assembly-CSharp-firstpass.dll if you want to do some things, e.g. use the stock AppLauncher/toolbar thing).

Beyond that, I would recommend getting the source to a few simple plugins and see how they do what they do and also look for any tutorial type threads in this sub-forum...

Seems to be all up and running! :D Thanks!

I can reference UnityEngine things after importing it.

Edited by Beale
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...