kRPC: Control the game using C#, C++, Java, Lua, Python...

kRPC: Control the game using C#, C++, Java, Lua, Python...

7.8k Downloads

Fairings doesn't jettison.

kpa23 opened this issue ยท 1 comments

commented

ksp 1.6.1 + RO
Strange behaviour with fairings. They all have jettisoned flag set to True. and .jettison() method doesn't work. In-game clicking on "Jettison fairing" works ok.

TestRocket1.zip

import krpc

conn = krpc.connect(name='Test Fairings. RO mods')
vessel = conn.space_center.active_vessel
for _ in range(2):
    fairings = [part for part in vessel.parts.with_tag('deployFairing')]
    for fairing in fairings:
        try:
            print("Fairings ", fairing.fairing.part.name, fairing.fairing.jettisoned)
            fairing.fairing.jettison()
        except:
            print("Error")
commented

This appears to be a compatibility issue with ProceduralFairings. They changed the name of the jettison event from "Jettison" to "Jettison Fairing". I've updated kRPC to work with either event name.