bfishman / Docking-Port-Alignment-Indicator

Official repository of the DPAI mod for Kerbal Space Program
MIT License
20 stars 7 forks source link

Not all docked docking ports ignored #3

Closed mwerle closed 4 years ago

mwerle commented 4 years ago

A forum user has reported that docked Senior Docking Ports are still selectable even if "ignore docked docking ports" is checked.

https://forum.kerbalspaceprogram.com/index.php?/topic/40423-181-docking-port-alignment-indicator-version-684-updated-113019/&do=findComment&comment=3720444

mwerle commented 4 years ago

This is not limited to Senior Docking Ports, but appears to be caused by docking ports which were attached in the VAB instead of being docked while in flight.

state == "Ready" if available to be docked. state == "Disengage" during undocking. state == "PreAttached" if connected in VAB. state == "Docked" if docked in flight.

otherNode == null if state=="Ready".

So there's no simple comparison to tell whether a port is currently docked or not.