Jump to content

Writing addons - Where to begin?


Recommended Posts

This is your best friend: http://forum.kerbalspaceprogram.com/threads/48311-How-to-make-a-NON-PART-plugin?p=640212&viewfull=1#post640212

A bit outdated for some stuff, but still really good to start nd set up the environment/make the a part addon:

(especialy if you can mix it with the previous one)

Mostly to make model more than code, but still some usefull links in there: http://forum.kerbalspaceprogram.com/threads/25013-Compilation-of-modding-information-links-for-0-19-20-21-22-Last-update-21st-Oct

Extremly usefull: http://forum.kerbalspaceprogram.com/threads/7544-The-official-unoffical-help-a-fellow-plugin-developer-thread/page42?p=611180&viewfull=1#post611180

Creating a dev install (with faster load time): http://forum.kerbalspaceprogram.com/threads/49842-2nd-KSP-Install-for-modding?p=650249&viewfull=1#post650249

irc channel: #kspmodders on ircnet

And of course this forum :) look on it, especially the help a fellow developer thread (it's full of resources)

Since you can't access a debug console, use a lot of Debug.log() to log the progress and what is in the variables etc...

Also if you find a plugin that does womething similar to what you are looking for, have a look their code to see how they do, what function they use etc...

Link to comment
Share on other sites

Also if you find a plugin that does womething similar to what you are looking for, have a look their code to see how they do, what function they use etc...

I know this was originally intended for another person (your reply that is), but how do you look at the code?

Link to comment
Share on other sites

  • 3 weeks later...
So, plugins are written in C#? I am indexing which languages are suitable for what purposes, but the many varieties of C are a bit confusing to me.

C# is not really a variety of C, it's Microsoft's idea of how to do Java with C-like syntax on the .Net runtime. :P

Nowadays, and thanks to mono and Xamarin, C# is suitable for a lot of things, including applications for Windows, Linux, OS X, iOS, and Android.

Link to comment
Share on other sites

So, plugins are written in C#? I am indexing which languages are suitable for what purposes, but the many varieties of C are a bit confusing to me.

Plugins are common language runtime libraries, aka .NET dlls. I guess it should be possible to write them with any .NET language as in theory they all combine to the same end result but the developers provided the initial examples in C# and everyone followed them. So far nobody has has done more than tinker with other languages as far as I know.

As damny says, C Sharp isn't that closely related to old fashioned C and it's direct extensions (C++, Objective C) so stick to C# materials.

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...