Skip to content

Genhis/KRPC.MechJeb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kRPC.MechJeb Service

Are you tired of manually giving commands to your rockets? Do you want to automate tourist transportation? Do you know basics of programming but don't want to bother with calculating precise steering yourself? Do you like to use MechJeb for controlling your rockets but want more automation? If all of this is true, then this KSP mod is just for you!

This addon to kRPC provides remote procedures to interact with MechJeb 2. With a simple script, you can configure MechJeb autopilots and remotely control your rocket.

Installation

  1. Install kRPC and MechJeb 2 mods.
  2. Download latest release files.
  3. Copy KRPC.MechJeb.dll to Kerbal Space Program/GameData/kRPC directory.
  4. If you are using Python, Lua or similar client libraries, you can start coding right away. For C-nano, C++, C# and Java, find the relevant file in the release archive and link it with your project.
  5. Happy coding!

If you encounter any issues, please check if your kRPC and MechJeb 2 versions are supported for your chosen kRPC.MechJeb version. Newer versions may contain breaking changes, so it may be necessary to downgrade them to the latest supported versions. A popup will notify you about potential issues when you start the game, listing functions/properties which are unavailable. If you don't see the popup, kRPC.MechJeb should work as expected.

Getting started

When you enter the flight scene or switch between vessels, it is recommended to check whether the API is ready before you call other operations. Otherwise, it may throw an exception.

Contributing

All contributions to this mod are welcome. If you are interested in contributing, please read our Contribution guidelines and Code of conduct.

See Working from source for more details how to set up the project.

TO-DO

  • Implement AdvancedTransfer maneuver operation
  • Implement AttitudeAdjustment controller
  • Implement RoverAutopilot
  • Implement SpaceplaneAutopilot (known as Aircraft Approach & Autoland)

Not implemented

  • NodeEditor (replacement in kRPC.SpaceCenter service)
  • WarpHelper