public override void OnAwake() { base.OnAwake(); try { IsKISAvailable = KISWrapper.Initialize(); } catch (Exception ex) { IsKISAvailable = false; Debug.LogError("[OSE] - Error while checking for KIS. Workshop will be disabled"); Debug.LogException(ex); } }
public override void OnLoad(ConfigNode node) { if (HighLogic.LoadedSceneIsFlight) { UpdateCrewCapacity(false); } if (HighLogic.LoadedScene == GameScenes.LOADING) { if (KISWrapper.Initialize()) { KISWrapper.AddPodInventories(part, crewCapacityDeployed); } } }