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!
Although all examples have been tested using kRPC v0.4.8 and MechJeb v2.8.3.0, I do support upcoming versions, so please create a new issue if something doesn't work for you.
- 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