untoldwind / KontrolSystem2

Autopilot scripting system for KSP2
Other
54 stars 15 forks source link

vessel.maneuver.add doesn't fully add a manuever node KSP2 (0.2.0.0.30291) #108

Closed ColJay closed 10 months ago

ColJay commented 10 months ago

Hi,

I'm using the latest build of KSP2 (0.2.0.0.30291) along with the latest updates through CKAN. Seems that when i call vessel.manuever.add a node is added but only partially.

By that i mean using the mod ManueverNode Controller i can see a node being present, but the game iteself I cannot interact with it. Nor does it seem that the command exec_next_node from std::vac execute the node - it fails with object reference not set.

I assume something fairly fundemental has changed in either KSP2 itself or perhaps Node Manager that Kontrol System 2 relies on?

Thanks for the great work!

ColJay commented 10 months ago

In addition to this - looks like vessel.maneuver.add_burn_vector does work correctly.

untoldwind commented 10 months ago

Yes in 0.2 an additional method call is necessary to correctly initialize the internal ManeuverNode. Already fixed that for add_burn_vector and forgot about the other one ...

untoldwind commented 10 months ago

Should work in 0.5.1.2

ColJay commented 10 months ago

Seems to work great