KSP-TaxiService / CommNetConstellation

A KSP add-on that transforms the CommNet network of single type into multiple constellations of different types
GNU General Public License v3.0
8 stars 8 forks source link

Commnet Manager NullRef #29

Closed dtoxic47 closed 2 years ago

dtoxic47 commented 2 years ago

Commnet Manager port is throwing a few Nullrefs, this is from main menu to KSP-Center to VAB no Flight, KSP 1.12.3 Sandbox i have not tested it on Career

i am using CommNetConstellation-1.5.7-cnm-157-commnet-manager-port-2 with the Commnet Manager from 156 since there is no commnet manager dll in the latest pre relase

[LOG 21:19:02.889] VesselModules: Found VesselModule of type AxisGroupsModule with order 999 [LOG 21:19:02.992] VesselModules: Found VesselModule of type CometVessel with order 999 [LOG 21:19:02.995] VesselModules: Found VesselModule of type SuspensionLoadBalancer with order 999 [LOG 21:19:02.996] VesselModules: Found VesselModule of type FlightIntegrator with order 0 [LOG 21:19:02.999] VesselModules: Found VesselModule of type CommNetVessel with order 999 [LOG 21:19:03.017] ModularCommNetVessel: CNMAPI: version 1.1.0.0 at E:\Games HDD\KSP_1.10\GameData\CommNetManager\CommNetManager.dll won the election against

[WRN 21:19:03.018] ModularCommNetVessel: OnAwake: Vessel is null. [LOG 21:19:03.018] VesselModules: Found VesselModule of type ModularCommNetVessel with order 999 [EXC 21:19:03.023] NullReferenceException: Object reference not set to an instance of an object CommNetManager.ModularCommNetVessel.OnDestroy () (at :0) UnityEngine.Object:DestroyImmediate(Object) <>c:b__4_0(Type) LoadedAssembly:TypeOperation(Action1) LoadedAssembyList:TypeOperation(Action1) VesselModuleManager:CompileModules()

d__90:MoveNext() UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator) d__71:MoveNext() UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator) GameDatabase:StartLoad() d__11:MoveNext() UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator) LoadingScreen:Start() and then this [EXC 21:28:19.138] NullReferenceException: Object reference not set to an instance of an object CommNet.CommNetHome.CreateNode () (at <39c0323fb6b449a4aaf3465c00ed3c8d>:0) CommNetManager.CNMHome.CreateNode () (at :0) CommNet.CommNetHome.OnNetworkInitialized () (at <39c0323fb6b449a4aaf3465c00ed3c8d>:0) CommNetManager.CNMHome.OnNetworkInitialized () (at :0) CommNetManager.CNMHome.Start () (at :0) UnityEngine.DebugLogHandler:LogException(Exception, Object) ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object) UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object) [ERR 21:28:19.139] [CommNet Constellation] Error: CommNet Home 'Kerbin: Larkes' self-destructed due to body being null [EXC 21:28:19.140] NullReferenceException: Object reference not set to an instance of an object CommNet.CommNetHome.CreateNode () (at <39c0323fb6b449a4aaf3465c00ed3c8d>:0) CommNetManager.CNMHome.CreateNode () (at :0) CommNet.CommNetHome.OnNetworkInitialized () (at <39c0323fb6b449a4aaf3465c00ed3c8d>:0) CommNetManager.CNMHome.OnNetworkInitialized () (at :0) CommNetManager.CNMHome.Start () (at :0) UnityEngine.DebugLogHandler:LogException(Exception, Object) ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object) UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object) [ERR 21:28:19.140] [CommNet Constellation] Error: CommNet Home 'Kerbin: Desert Launch Facility' self-destructed due to body being null
KSP-TaxiService commented 2 years ago

Hi, thanks for reporting the null reference spam. It is okay to take CNM folder from release 156 as I had not gotten around to copy it into auto-built release 157.

This is CNM startup behaviour and doesn't seem to cause any damaging issue. You can ignore this safely. normal

This is CNC's failsafe when certain ground stations are not enabled i.e. 'Making History' DLC is not included (see more details). You can safely ignore. normal2

Thank you!

dtoxic47 commented 2 years ago

Got it,thx for the info!