Jump to content

Good C# Tutorials


Recommended Posts

Hi there!

I'm studying chemical engineering and I had to learn 3D modelling in school. I started with AutoCAD 3D and now I can use AutoCAD models in 3ds Max so I'm comfortable with modelling stuff.

I have few ideas that would improve gameplay in KSP and I want to make parts. As I said, I can create the 3D models of the parts but I don't know how to intergrate them to KSP. So I decided to learn C# (I'm really good at learning coding stuff, I have learned php coding at home when I was 14 and I even designed a text-based web game at that age :cool: ) and I've been reading some tutorials about C sharp. All of them are pretty good but none of them explain what is a "method" or what does "main" do or what is "using" etc.

Anybody know a good tutorial source that has code definitions? If I can learn the definitions of codes I will get the main logic of the system and I believe I will be able to make parts within a month then.

Link to comment
Share on other sites

Generally when I'm learning how to work with a new library, language, software package, etc., I work with what I know until I get stuck, and then Google that specific item. That way, I amass knowledge from multiple sources (various tutorials and Stack Overflow questions, mostly), thus reducing the chances of developing misconceptions while also synthesizing the information on my own, providing a deeper understanding.

To answer your question, I've never found a good single set of tutorials for any programming language or code library. I've always found it satisfactory to Google something like "what is a method C#" and read around until I feel comfortable doing something with it on my own.

Just my two cents.

Link to comment
Share on other sites

Hi there!

I'm studying chemical engineering and I had to learn 3D modelling in school. I started with AutoCAD 3D and now I can use AutoCAD models in 3ds Max so I'm comfortable with modelling stuff.

I have few ideas that would improve gameplay in KSP and I want to make parts. As I said, I can create the 3D models of the parts but I don't know how to intergrate them to KSP. So I decided to learn C# (I'm really good at learning coding stuff, I have learned php coding at home when I was 14 and I even designed a text-based web game at that age :cool: ) and I've been reading some tutorials about C sharp. All of them are pretty good but none of them explain what is a "method" or what does "main" do or what is "using" etc.

Anybody know a good tutorial source that has code definitions? If I can learn the definitions of codes I will get the main logic of the system and I believe I will be able to make parts within a month then.

Programming is hard. Google "Dunning-Kruger effect". Aside from that:

C# is a rich object oriented language. The concept of methods pretty much belongs to the core of that, as do the use of the “main†function or the use of libraries (“usingâ€Â). Now, what you need for making parts is probably a very small subset of C#. Good tutorials will teach you a lot of things you're likely to have no interest in: object creation and destruction, distributing assemblies, good programming practices, etc. So it's doubtful that a "good tutorial" will bring you what you need which is just a few key phrases to get you going. You'd get more out of some samples of KSP add-ons to see how the code is implemented.

If you do want to learn more about C# be prepared that you'll spend a lot of time learning all kinds of good things that have very little meaning for KSP mods. But Microsoft's "Step by Step" series are usually decent tutorials. So is the "for Dummies" series. Not good reference guide but a tutorial is barely ever needed as such. Books from O'Reilly are generally of high quality as well. As Headhunter pointed out, don't stick to a single book or tutorial. You'll get far more out of the viewpoints of a few different authors; everyone has their own style and none will match yours exactly.

Link to comment
Share on other sites

I like tutorials from the New Boston. I watched only first 15 videos (of 200) and I managed to create my own plugin for KSP (I'm just 14 too :cool:). But those tutorials weren't the only source of informations. Google. There you can find answer for specific question.

But if you just want to import part to KSP, you don't need any C# skills. You can learn here, how to configure your model, to be able to be imported to KSP and here is, how to set up config file.

Link to comment
Share on other sites

Thanks everybody for all of your help! It is much appreciated :) I'm working on a mod that adds tweakable cargo space in command pods and I'm trying to create 2 new resources: snack and oxygen. Every space ship and all stations will require some amount of them because kerbals won't sruvive without these 2. I also designed a probe that has plenty of room for cargo which will make it a good resupply ship like Progress. I started examining other parts .cs files and it doesn't seem hard make a mod out of my designs. Hopefully I will be able to announce a WIP version soon :)

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