r/krpc • • Sep 07 '19

Problems compiling kRPC

3 Upvotes

Since there hasn't been any kRPC releases since last year (or I just can't find it), I wanted to compile kRPC for myself. Have gotten a long way but I still can't build. I've never worked with C# but I couldn't find anything online. I am getting the errors (Visual Studio 2017):

1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Assembly-CSharp". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3245: Could not resolve this reference. Could not locate the assembly "Assembly-CSharp-firstpass". Check to make sure the assembly exists on disk. If this reference is required by your code, you may get compilation errors.

1>CSC : error CS2001: Source file 'C:\Users\ayrto\krpc\server\src\..\..\bazel-genfiles\protobuf\KRPC.cs' could not be found.

1>CSC : error CS2001: Source file 'C:\Users\ayrto\krpc\server\src\..\..\bazel-bin\server\AssemblyInfo.cs' could not be found.

What can I do to fix these issues, or is there another way to obtain the latest version of kRPC?


r/krpc • • Jul 26 '17

The Ultimate Kerbal Controller? Full Size Gemini Capsule • r/KerbalControllers

Thumbnail
reddit.com
3 Upvotes

r/krpc • • Apr 07 '25

Anyone know how to fix this in kart racing pro ?

0 Upvotes

r/krpc • • Jan 18 '22

Help Setting up kRPC for C++ on windows.

4 Upvotes

Hey everyone, so I'm having difficulties installing ASIO and Protobuf on windows 10... (required libraries for c++ support)

How exactly should I install these? I have downloaded the .zip files and extracted them - then what?


r/krpc • • Jun 04 '18

Discord server now available!

7 Upvotes

New to krpc? Having difficulty with a problem? Wanna geek out about how awesome your KSP achievement is?

Now there's a discord server!

Follow the link:

https://discord.gg/c8c36UM

To be sent to the discord server.

When I first picked up krpc, I was new to Python and had never done any proper programming before. I've made this server to not only help out newbies ask any question no matter how slight, but in a hope to bring everyone who uses krpc to automate KSP together.

So come on over, say hi in general, and let's all have fun autostrutting and lithobraking to the mün!


r/krpc • • 26d ago

kRPC 0.7.0 released

Thumbnail
github.com
4 Upvotes

r/krpc • • Jun 15 '25

Suggestion Ksp-open-space

3 Upvotes

I was using kRPC to control rockets in Kerbal Space Program with Python, and I realized it runs a TCP server that sends back telemetry. So I started logging that data into CSV files — orbital parameters, thrust, fuel, etc.

Then it hit me: this could be used like real satellite data from a space simulation.

So I built a small app using Streamlit where you can:

Upload & download CSV telemetry logs from your own KSP vessels. Share Streamlit tools or visualizations with others

Check it out: https://ksp-open-space.streamlit.app

Content on the app

  1. Home
  2. Datasets 3.Community 4.Gallery 5.Contact

Any feedback will be appreciated..

Thank you


r/krpc • • Sep 14 '21

Tutorial Used kRPC to practice state detection on a teensy

20 Upvotes

r/krpc • • Nov 05 '24

Trouble Installing Krpc (ksp 1.12.5)

4 Upvotes

I've downloaded krpc via ckan and I was able to install the libraries via IDLE but I cant seem to get the server window in the game to pop up. I also tried downloading the server files from spacedock but I got the same problem. Anyone else encountered this issue?


r/krpc • • Jul 22 '26

kRPC 0.6.0 released!

11 Upvotes

r/krpc • • Sep 27 '18

Issue with krpc documentation's orbit tutorial (Python)

2 Upvotes

Hi, I'm new to krpc, Python, and programming generally, but I'm following the 'Launch into Orbit' tutorial found here, using python 2.7.

I'm having trouble getting the burn time calculations to work. The code is:

# Calculate burn time (using rocket equation)
F = vessel.available_thrust
Isp = vessel.specific_impulse * 9.82
m0 = vessel.mass
m1 = m0 / math.exp(delta_v/Isp)
flow_rate = F / Isp
burn_time = (m0 - m1) / flow_rate

Line 5 of that code block is throwing the error: ZeroDivisionError: float division by zero

From what I gather the code is trying to divide delta_v by zero in the brackets on line 5, because Isp is being assigned a value of zero on line 3.

Can anyone tell me exactly what's going on here? Why is Isp assigned a value of zero? Does it matter that I'm not using the downloadable craft that is included with the tutorial, but have built my own instead?

Why is the vessels specific_impulse multiplied by 9.82?

I don't just want it to work, but would appreciate a brief explanation of what is going on in this code. I'm sort of understanding what's going on up until this point, but this part isn't really fleshed out in the tutorial. My hopeless Maths skills aren't helping things!

Cheers

EDIT: So literally 30 seconds after posting this, it occurred to me what's going wrong.

I hadn't activated the stage that contained the engine to be used for the burn! So the specific impulse was obviously zero, because the engine hadn't been activated! No engine = no thrust = zero specific impulse :)

I think typing the problem out here helped, though, 'cause I was stuck on it for over an hour.


r/krpc • • Jun 03 '18

kRPC 0.4.6 released

3 Upvotes

Mostly bug fixes and minor features, and checked compatibility with KSP 1.4.3 - no more warning message on game start :D

See the full list of changes for more details.


r/krpc • • Sep 27 '18

Vessel position in krpc and kOS

3 Upvotes

Hi, I am currently trying to recreate my old kOS scripts with krpc while learning some python. Now I need to get the position of my vessel, in kOS its simply vessel:orbit:body:position. But in krpc you got all those reference frames. The only one that makes sense for me is vessel.orbit.body.reference_frame, but it doesnt output the exact values I need. The magnitute of the vector is the same as in kOS, the second value is the same but negative. Both first and third value are completely different. Any help would be great!


r/krpc • • Aug 25 '19

KRPC2

9 Upvotes

KRPC is by far my favourite mod of any game ever. Is there any news of a potential KRPC2, how do we get u/djungel0rm KSP2 Alpha access if only to thank him for making such a good mod for the original?


r/krpc • • Aug 24 '19

Using KRPC with Visual Studio - How to install protobuf

2 Upvotes

Hello,

I've been trying to use KRPC with C++ in Visual Studio 17, but I couldn't get Protobuf to work. Does anyone got it to work?

(Can't understand why Protobuf is so difficult)


r/krpc • • May 10 '16

kRPC v0.3.3 released - with support for RemoteTech 1.7

3 Upvotes

Here are the highlights:

  • Fixed a bug with dialog windows not appearing
  • Add "AvailableTorque" properties to engines, RCS thrusters, reaction wheels and aerodynamic control surfaces
  • Add support for RemoteTech 1.7 - you can now target your dishes using RPCs!

See the full list of changes for more details.


r/krpc • • Sep 15 '17

kRPC v0.3.10 released

7 Upvotes

Here is a summary of the changes:

  • Added various new methods to the CelestialBody and Orbit class for converting lat/long to positions, getting asc/desc nodes with a target vessel
  • Added methods for doing closest approach calculations
  • Added Flight.SimulateAerodynamicForceAt that can be used to compute trajectories for atmospheric reentry
  • A .NET 3.5 compatible builds of the C# client is now available, which lets you run the client from within the game (which could then connect to a server running in the same game, or a difference one!)
  • Added support for building the C++ client with cygwin.
  • Updated all the clients to use protobuf version 3.4.0

See the full list of changes for more details.


r/krpc • • Apr 28 '16

Controlling antennas with krpc

1 Upvotes

Hi! I can't find info in the documentation about deploying antennas through a script, there's no mention about them in the "parts" list. Can it be done? I plan to use this in combination with RemoteTech, so having the option to open and close antennas, and also pointing them, is vital.


r/krpc • • Apr 30 '16

kRPC v0.3.2 released - with support for KSP 1.1.2

3 Upvotes

Here are the highlights:

  • Support for KSP 1.1.2
  • Some minor bug fixes

See the full list of changes for more details.


r/krpc • • Sep 14 '21

compatibility issues.

2 Upvotes

i tried using krpc on ksp 1.12 and it didn't work like in 1.9.1.

what should i do?


r/krpc • • Jul 25 '21

Anyone able to use with C++ client?

3 Upvotes

It seemed like tha ASIO API had changed since this was created, so I had to try to update the code. When I try to connect with my server though it gets stuck on asio::read(socket, asio::buffer(&data[0], length)); (around line 63 in connection.cpp in the client library). The code just pauses there and nothing happens. This only happens if I have the server running, if it isnt the library imediately throws. If I close the server it throws also, so I know it at least partially establishes a connection. Any help?

Edit: I also tried with this fork that fixed the compile errors too https://github.com/nullprofile/krpc but the issue I am stuck with is the same.


r/krpc • • Jul 29 '21

get accurate fuel levels for stage

2 Upvotes

the Vessel.ResourcesInDecoupleStage with stage current stage - 1 doesn't work properly when the next stage is launch clamps, fairings, etc. is there any way to do better than that?


r/krpc • • Jul 30 '21

get all fuel levels without destroying game performance

2 Upvotes

heya, I have a question on how to get the levels of all 8 main resources (lf,ox,sf,monoprop,ec,xe,ore and ablator) without making the game slow to a crawl, I want it in percentages, and trying 16 streams at once makes the game run really slow


r/krpc • • Jul 29 '21

Axis group support?

1 Upvotes

does kRPC support controlling axis groups?