Coding with Kerbals I @KsNewSpace
Coding with Kerbals I  @KsNewSpace
Uploaded April 2025 | Updated November 2026, 3 hours ago
In this little tutorial I show you how you can learn to code in KSP! I'm using the mod kRPC as an interface between KSP and the Python programming language.

To get started you need to have Python installed. Then, using "pip install krpc" in a terminal you can install the necessary kRPC package for Python. You also need to install the kRPC mod in KSP. All you then need to do is start KSP and Python and go! You can set the terminal window to be always on top in the settings under appearance. I'm using the "Windows Terminal" which is available in the Microsoft Store.

Python: python.org
kRPC Mod for Python: github.com/krpc/krpc/releases/download/v0.5.4/krpc-0.5.4.zip

kRPC Documentation to check all the available functions: krpc.github.io/krpc/python/api/space-center/vessel.html (For vessel as an example)
You should obviously know your way around Python a little before you jump into this haha. My video is just an appetizer!

PS. If you have installed Python for the first time you need a restart for it to work properly. Type "python --version" in a terminal window to check if it works. If that doesn't work you need to fix that first (PATH environment variable probably missing entry for the Python folder that contains python.exe and pip.exe) Good luck!

I will help you set it up if you ask but please try Copilot or some other AI first haha :D They are really good at troubleshooting!
Coding with Kerbals ISoyuz Launch | Soyuz MS-01 Exp. 48 | KNews #48Soyuz, Long March 4B and SpaceX Falcon 9 launch! | kNews W.24/2017Last Week in Rocket Launches! || 43/2020SpaceX Falcon 9 Launch | JCSAT-14 | KNews #39SpaceX Launched Beresheet to the Moon! || kNews W.08/2019Using Python Code to control Starship in KSP! #ksp #code #pythonLast Week in Rocket Launches! || 44/2020Throttling a Rocket Engine Smoothly! - Coding for KSP 005
KsNewSpace |

Coding with Kerbals I

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER