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.
- Install kRPC and MechJeb 2 mods.
- Download latest release files.
- Copy KRPC.MechJeb.dll to
Kerbal Space Program/GameData/kRPC
directory. - 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.
- 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.
- Documentation for C-nano, C++, C#, Java, Lua, Python
- Tutorials and Examples
- Third-party scripts
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.
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.
- Implement
AdvancedTransfer
maneuver operation - Implement
AttitudeAdjustment
controller - Implement
RoverAutopilot
- Implement
SpaceplaneAutopilot
(known as Aircraft Approach & Autoland)
- NodeEditor (replacement in kRPC.SpaceCenter service)
- WarpHelper