Jump to content

Help for a Beginner at C#


Recommended Posts

Hey, I'm JandCandO and I would like to have some help on creating plugins for KSP.

I have some experience coding in the past with Lua, and I created some advanced Computercraft code. Because I learned Lua first, I have some trouble wrapping my head around the class system that C# uses, but I feel I have a VERY basic understanding.

I have Visual Studio set up according to http://wiki.kerbalspaceprogram.com/wiki/Setting_up_Visual_Studio (should I worry about 32 bit vs 64 bit?)

I have never done anything like this before, and I would greatly appreciate it if someone could walk me through the basics, or maybe point me to a good tutorial. I have also never made anything in C# before, so this should be interesting.

Link to comment
Share on other sites

If you want to MOD KSP I would also suggest you learn a little about the Unity3D engine itself.

I actually got a deal to do a year's worth of online classes for Unity for only $50, an otherwise $1,500 value, so I think I'm covered there. What's the difference between a plugin, mod, or addon?

Link to comment
Share on other sites

I actually got a deal to do a year's worth of online classes for Unity for only $50, an otherwise $1,500 value, so I think I'm covered there. What's the difference between a plugin, mod, or addon?

Well I guess its only $50.00 If you paid 1500, I would probably think you got screwed considering Youtube is free, but not everyone can learn that way either so good on you for getting a deal.

They are mostly interchangeable terms as far as I know, I suppose a plugin would be a DLL that adds some kind of new function(s), an addon might only be parts, and a mod would be a package possible containing both.

Truthfully I think they are just called whatever the author wants to call it lol.

Link to comment
Share on other sites

It would probably be worth while looking online to learn from what other people have done too (as this costs nothing). :P I learned through a lot of googling whenever I wanted to find out how to do a certain thing in C#. While it's not directly related to KSP, the Unity Answers forum can be a great resource. Just make sure what you're looking at is in C#. You might want to have a look at this link: http://docs.unity3d.com/ScriptReference/ It has a load of information on C# that you can pick and choose from, though there are some differences between KSP scripting and straight C#, such as the need to use KSP fields, KSP events, etc. There's also this link on the KSP wiki that is somewhat limited and some bits are a little out of date but some of the stuff can give you an idea: http://wiki.kerbalspaceprogram.com/wiki/Community_API_Documentation And if you're stuck on something, this KSP forum page can be very helpful too: http://forum.kerbalspaceprogram.com/threads/7544-The-official-unoffical-help-a-fellow-plugin-developer-thread. Hope this helps! :D

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