Kerbal Attachment System (KAS)

Kerbal Attachment System (KAS)

2M Downloads

KAS 1.0: NPE when connected vessels go on rails

ihsoft opened this issue ยท 1 comments

commented

Make two vessels connected via a winch. Then, leave the site at 2.5km distance to have the connected vessels pair moved on rails. The following NRE starts firing indefinitely:

180917T225816.202 [EXCEPTION] [UnityEngine.Transform.get_position] NullReferenceException
   at UnityEngine.Transform.get_position ()
   at KAS.KASLinkSourcePhysical.OnSave (.ConfigNode node)
   at PartModule.Save (.ConfigNode node)
   at ProtoPartModuleSnapshot..ctor (.PartModule module)
   at ProtoPartSnapshot..ctor (.Part PartRef, .ProtoVessel protoVessel)
   at ProtoVessel..ctor (.Vessel VesselRef)
   at Vessel.Unload ()
   at Vessel.Update ()
commented

Note to the reproducing steps. The vessel with the connector must get packed before the source vessel. To make it happen some magic needs to be done.