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!
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!







