InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.ThrowHelper.ThrowInvalidOperationException (System.ExceptionResource resource) [0x0000b] in :0
at System.Collections.Generic.List1+Enumerator[T].MoveNextRare () [0x00013] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 at System.Collections.Generic.List1+Enumerator[T].MoveNext () [0x0004a] in :0
at ExtraplanetaryLaunchpads.ELBuildControl.getBuildCost (ConfigNode craft, System.String craftText) [0x0008e] in <1aad65bcfb4b4a51aa2da38cdc7e0e8e>:0
at ExtraplanetaryLaunchpads.ELBuildControl.LoadCraft (System.String filename, System.String flagname) [0x0003f] in <1aad65bcfb4b4a51aa2da38cdc7e0e8e>:0
at ExtraplanetaryLaunchpads.ELBuildWindow.craftSelectComplete (System.String filename, KSP.UI.Screens.CraftBrowserDialog+LoadType lt) [0x00000] in <1aad65bcfb4b4a51aa2da38cdc7e0e8e>:0
at KSP.UI.Screens.CraftBrowserDialog.onPipelineFinished (ConfigNode n, KSP.UI.Screens.CraftEntry sItem, KSP.UI.Screens.CraftBrowserDialog+LoadType loadType) [0x00063] in <948fceea813942b7ac6b6d1b2dc2d0a3>:0
at KSP.UI.Screens.CraftBrowserDialog+<>c__DisplayClass126_0.b__0 (ConfigNode n) [0x00000] in <948fceea813942b7ac6b6d1b2dc2d0a3>:0
at KSPUpgradePipeline.Process (ConfigNode n, System.String saveName, SaveUpgradePipeline.LoadContext loadContext, Callback1[T] onSucceed, Callback2[T,U] onFail) [0x00142] in <948fceea813942b7ac6b6d1b2dc2d0a3>:0
at KSP.UI.Screens.CraftBrowserDialog.pipeSelectedItem (KSP.UI.Screens.CraftEntry sItem, KSP.UI.Screens.CraftBrowserDialog+LoadType loadType) [0x00033] in <948fceea813942b7ac6b6d1b2dc2d0a3>:0
at KSP.UI.Screens.CraftBrowserDialog.ConfirmLoadCraft () [0x00068] in <948fceea813942b7ac6b6d1b2dc2d0a3>:0
at KSP.UI.Screens.CraftBrowserDialog.onButtonLoad () [0x00055] in <948fceea813942b7ac6b6d1b2dc2d0a3>:0
at UnityEngine.Events.InvokableCall.Invoke () [0x00011] in <7d9ec060e791409ab3eb85c61e312ed6>:0
at UnityEngine.Events.UnityEvent.Invoke () [0x00023] in <7d9ec060e791409ab3eb85c61e312ed6>:0
at UnityEngine.UI.Button.Press () [0x0001c] in <15535c6df78d4af0aa4c587123ed92e6>:0
at UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00009] in <15535c6df78d4af0aa4c587123ed92e6>:0
at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00007] in <15535c6df78d4af0aa4c587123ed92e6>:0
at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction1[T1] functor) [0x00063] in <15535c6df78d4af0aa4c587123ed92e6>:0 UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object) UnityEngine.DebugLogHandler:LogException(Exception, Object) ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object) UnityEngine.Logger:LogException(Exception, Object) UnityEngine.Debug:LogException(Exception) UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction1)
UnityEngine.EventSystems.StandaloneInputModule:ReleaseMouse(PointerEventData, GameObject)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMousePress(MouseButtonEventData)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent(Int32)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent()
UnityEngine.EventSystems.StandaloneInputModule:Process()
UnityEngine.EventSystems.EventSystem:Update()
(Filename: Line: 0)`
A work around is to put the Kos controller in a KIS container and add it later with KAS.
When trying to build any vessel which has a Kos controller attached I get the following in the log
`kOS: OnStart: PreLaunch, Landed READY
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
Curl error 3: Valid host name with slash missing in URL ObT : NaN M : NaN E : NaN V : NaN Radius: NaN vel: [NaN, NaN, NaN] AN: [1, 0, 0] period: 0
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
[OrbitDriver Warning!]: EL craftVessel - Resource Scanner had a NaN Orbit and was removed.
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
EL craftVessel - Resource Scanner Unloaded
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 35)
InvalidOperationException: Collection was modified; enumeration operation may not execute. at System.ThrowHelper.ThrowInvalidOperationException (System.ExceptionResource resource) [0x0000b] in:0
at System.Collections.Generic.List:0
at ExtraplanetaryLaunchpads.ELBuildControl.getBuildCost (ConfigNode craft, System.String craftText) [0x0008e] in <1aad65bcfb4b4a51aa2da38cdc7e0e8e>:0
at ExtraplanetaryLaunchpads.ELBuildControl.LoadCraft (System.String filename, System.String flagname) [0x0003f] in <1aad65bcfb4b4a51aa2da38cdc7e0e8e>:0
at ExtraplanetaryLaunchpads.ELBuildWindow.craftSelectComplete (System.String filename, KSP.UI.Screens.CraftBrowserDialog+LoadType lt) [0x00000] in <1aad65bcfb4b4a51aa2da38cdc7e0e8e>:0
at KSP.UI.Screens.CraftBrowserDialog.onPipelineFinished (ConfigNode n, KSP.UI.Screens.CraftEntry sItem, KSP.UI.Screens.CraftBrowserDialog+LoadType loadType) [0x00063] in <948fceea813942b7ac6b6d1b2dc2d0a3>:0
at KSP.UI.Screens.CraftBrowserDialog+<>c__DisplayClass126_0.b__0 (ConfigNode n) [0x00000] in <948fceea813942b7ac6b6d1b2dc2d0a3>:0
at KSPUpgradePipeline.Process (ConfigNode n, System.String saveName, SaveUpgradePipeline.LoadContext loadContext, Callback
1+Enumerator[T].MoveNextRare () [0x00013] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 at System.Collections.Generic.List
1+Enumerator[T].MoveNext () [0x0004a] in1[T] onSucceed, Callback
2[T,U] onFail) [0x00142] in <948fceea813942b7ac6b6d1b2dc2d0a3>:0 at KSP.UI.Screens.CraftBrowserDialog.pipeSelectedItem (KSP.UI.Screens.CraftEntry sItem, KSP.UI.Screens.CraftBrowserDialog+LoadType loadType) [0x00033] in <948fceea813942b7ac6b6d1b2dc2d0a3>:0 at KSP.UI.Screens.CraftBrowserDialog.ConfirmLoadCraft () [0x00068] in <948fceea813942b7ac6b6d1b2dc2d0a3>:0 at KSP.UI.Screens.CraftBrowserDialog.onButtonLoad () [0x00055] in <948fceea813942b7ac6b6d1b2dc2d0a3>:0 at UnityEngine.Events.InvokableCall.Invoke () [0x00011] in <7d9ec060e791409ab3eb85c61e312ed6>:0 at UnityEngine.Events.UnityEvent.Invoke () [0x00023] in <7d9ec060e791409ab3eb85c61e312ed6>:0 at UnityEngine.UI.Button.Press () [0x0001c] in <15535c6df78d4af0aa4c587123ed92e6>:0 at UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00009] in <15535c6df78d4af0aa4c587123ed92e6>:0 at UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00007] in <15535c6df78d4af0aa4c587123ed92e6>:0 at UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction1[T1] functor) [0x00063] in <15535c6df78d4af0aa4c587123ed92e6>:0 UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object) UnityEngine.DebugLogHandler:LogException(Exception, Object) ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object) UnityEngine.Logger:LogException(Exception, Object) UnityEngine.Debug:LogException(Exception) UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction
1) UnityEngine.EventSystems.StandaloneInputModule:ReleaseMouse(PointerEventData, GameObject) UnityEngine.EventSystems.StandaloneInputModule:ProcessMousePress(MouseButtonEventData) UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent(Int32) UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent() UnityEngine.EventSystems.StandaloneInputModule:Process() UnityEngine.EventSystems.EventSystem:Update()(Filename: Line: 0)`
A work around is to put the Kos controller in a KIS container and add it later with KAS.