The_Duck

Members
  • Content count

    290
  • Joined

  • Last visited

Community Reputation

26 Excellent

About The_Duck

  • Rank
    Sr. Spacecraft Engineer
  1. Sure, I added a license.
  2. Hi guys-- sorry for abandoning the Github documentation project. I haven't spent time on KSP in quite a while. You're of course free to fork it. Let me know if you need explanations of how I built the XML and HTML docs from the .cs files.
  3. The reason is the following. Corrective steering tries to control the direction of your velocity so that you fly along the given ascent path. But should it use orbital velocity or surface velocity? It ends up using a weighted average of the two that shifts over the course of the flight, so that it starts out controlling surface velocity and gradually switches over to using orbital velocity. But orbital velocity already starts somewhat "pitched over" so this can cause MJ to seem to delay the pitchover past the given "turn start" altitude, since it feels that it is already somewhat pitched over.
  4. Probably you need to look for the ModuleCommand PartModule and check its minimumCrew field. Presumably the vessel is controllable if at least one part with a ModuleCommand module has a number of crew greater than or equal to its minimumCrew. See the part.cfg files for the existing command pods.
  5. myFunction needs to take a ShipConstruct: private void myFunction(ShipConstruct sc) { } If an argument needs an EventData<T>.OnEvent, what it needs is a function that takes a T and returns void. See the declaration of the EventData<T>.OnEvent delegate type here. See here for some documentation on GameEvents.
  6. Or, more simply, part.mass + part.GetResourceMass().
  7. Look, what do you think the point of the EULA is? It's not to prevent modders from learning how to write plugins. The EULA clause you are referring to is to protect the private *implementation* of KSP itself. KSP is a game intended to be modded. It's not an accident that KSP loads any assembly you put in the GameData folder; it's a feature that was added so that people could write plugins. Squad originally had some intention of publishing some documentation for the KSP public interface, but never got around to doing so (understandably: it would be a big task and it would take a ton of time away from working on the actual game). In the meantime we are writing the documentation for ourselves.
  8. You're probably making this too complicated. Why do you need the "thisPart" field at all? It's not doing anything for you that the "part" field doesn't already do.
  9. This documentation is based on experience and trial and error using the public interfaces available in the KSP assemblies, not decompilation.
  10. Probably this is off-base, but what if you try to place the maneuver node a bit in the future, instead of right at the present? E.g.: double ut = Planetarium.GetUniversalTime() + 10;
  11. So there are other errors. Can you upload the whole log somewhere so we can see what they are?
  12. Are there other error messages too? Perhaps you can upload the full log somewhere? I can fix this particular error message but it shouldn't be causing the problems you are reporting. I'm guessing this error message is the result of some other problem, which may or may not be caused by MechJeb.
  13. Make sure your project targets .NET 3.5 (it's in the project options in VS). Does that method exist in .NET 3.5?
  14. The forum post for the project was recently stickied: http://forum.kerbalspaceprogram.com/threads/30401-Documentation-for-the-KSP-API
  15. Excellent, we need more people documenting stuff. Allow me to suggest contributing to my Github project instead of the wiki. There are instructions for contributing at that link; a number of people have contributed to the project so far. The web documentation you linked in your OP comes from my project. My project also results in XML documentation that can be read by your IDE. I tried documenting things on the wiki for a while but wikis are not designed for documenting source code. Proper tools like Doxygen (which generates the web docs you linked) are much easier to use and generate much nicer pages.