Loading winch connected same vessel
kujuman opened this issue ยท 0 comments
Loading a vessel with a winch connected to a CC-R2 port (presumably possible with other connectors) on the same vessel (like this http://i.imgur.com/RKQxkmQ.png) causes the physical connection to break and leaves the port and winch unable to be used properly (they think they are connected still).
There is a simple work-around:
Method:
KASModuleWinch.OnVesselGoOffRails()
Block:
if (headState == PlugState.PlugUndocked && fromSave) {}
LN 474: PlugHead(connectedPortInfo.module, PlugState.PlugUndocked, true, false);
as "Already docked" evals to "false" in PlugHead() and it exits the method.
Change LN 474 to: PlugHead(connectedPortInfo.module, PlugState.PlugUndocked, true, false**, true**);
I know this by-passes some checking in PlugHead(), but in simple testing it seems to keep port-winch connections after a load. Works around issues #148 and seems to fix issue #147