Hi,
I am trying to create my own controler for the game based upon KRPC.
One of my goal is to get the amount of fuel in a given stage, I have found a code in this topic based on "resources_in_decouple_stage" but it only returns 0.0.
here is the code :
import krpc
conn = krpc.connect()
vessel = conn.space_center.active_vessel
while True:
stage = vessel.control.current_stage
resources = vessel.resources_in_decouple_stage(stage, False)
print (stage, "LFO =", resources.amount(" LiquidFuel"))
Do you know why ?
I am using pyhton 3.7 and the latest version of KSP and KRPC