Jump to content

Can someone point me in the right direction?


Recommended Posts

I have a heavy background in PHP/MySQL/Javascript and I've won awards in Visual Basic programming. So I thought developing a mod for Kerbal Space Program would be no problem because I have a big programming background. I'm using Visual Studio 2012 and so far I've managed to get my "Hello, World" print to the debug log only thanks to copy/paste from the tutorial on the KSP Wiki.

C# is just confusing the hell out of me right now. I feel I have no clue where to go from my Hello World plugin code. How do I make a GUI window and style it? How do I interact with Kerbal Space Program to control a ship or even just fetch current radar altitude?

If I can just get someone to post a link to a previous post containing helpful information, I'd GREATLY APPRECIATE IT.

Link to comment
Share on other sites

As someone who is currently writing his first mod can i absolutely understand you. Some kind of "how to get started" doc would be awesome. For now, the only somewhat useful way is to studying other mods that do sth similar.

As for the GUI... your need an object you add your MonoBehavior to. Other mods will tell you how. From that point, the Unity GUI Guide did help me a lot, since Unity's interface is extremely unintuitive at first, but interestingly simple once your got into it. All "objects" are a single function call and have a single purpose, returning the appropriate value ("isclicked" for a button, "entered text" for a textbox, "window location" for a window) so you can store it between frames.

Link to comment
Share on other sites

Thanks for your replies! I really get the feeling that I'll have to start from the beginning when it comes to C#. I thought I could just jump right in due to my programming background, but that's not the case.

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