post-kerbin-mining-corporation/DynamicBatteryStorage

Getting Null Ref Exception in VAB on adding antenna

dskzz opened this issue · 7 comments

dskzz commented

I have a lot of mods, I think Kerbalism is the prime suspect. So everything works great until I slap on the antenna when it slows down. It's not game breaking but it is annoying, I love stocking up on the comms. IF I delete the antenna, then the NRE immediately stops and the lag ends, its back to normal.

Here's the relevant part of the logs, lmk if you need more. I'm going to take a look at the code myself maybe this weekend.

[EXC 23:14:49.585] NullReferenceException: Object reference not set to an instance of an object
DynamicBatteryStorage.GenericFieldDataHandler.GetValueEditor ()
DynamicBatteryStorage.ModuleDataHandler.GetValue ()
DynamicBatteryStorage.VesselData.get_CurrentConsumption ()
DynamicBatteryStorage.UI.UIElectricalView.UpdateHeaderPanelData ()
DynamicBatteryStorage.UI.UIElectricalView.Update ()
DynamicBatteryStorage.UI.DynamicBatteryStorageUI.Update ()
[EXC 23:14:50.069] NullReferenceException: Object reference not set to an instance of an object
DynamicBatteryStorage.GenericFieldDataHandler.GetValueEditor ()
DynamicBatteryStorage.ModuleDataHandler.GetValue ()
DynamicBatteryStorage.VesselData.get_CurrentConsumption ()
DynamicBatteryStorage.UI.UIElectricalView.UpdateHeaderPanelData ()
DynamicBatteryStorage.UI.UIElectricalView.Update ()
DynamicBatteryStorage.UI.DynamicBatteryStorageUI.Update ()
[EXC 23:14:50.707] NullReferenceException: Object reference not set to an instance of an object
DynamicBatteryStorage.GenericFieldDataHandler.GetValueEditor ()
DynamicBatteryStorage.ModuleDataHandler.GetValue ()
DynamicBatteryStorage.VesselData.get_CurrentConsumption ()
DynamicBatteryStorage.UI.UIElectricalView.UpdateHeaderPanelData ()
DynamicBatteryStorage.UI.UIElectricalView.Update ()
DynamicBatteryStorage.UI.DynamicBatteryStorageUI.Update ()
[EXC 23:14:51.116] NullReferenceException: Object reference not set to an instance of an object
DynamicBatteryStorage.GenericFieldDataHandler.GetValueEditor ()
DynamicBatteryStorage.ModuleDataHandler.GetValue ()
DynamicBatteryStorage.VesselData.get_CurrentConsumption ()
DynamicBatteryStorage.UI.UIElectricalView.UpdateHeaderPanelData ()
DynamicBatteryStorage.UI.UIElectricalView.Update ()
DynamicBatteryStorage.UI.DynamicBatteryStorageUI.Update ()

Kerbalism is not compatible with this mod, unfortunately.

Closing in favor of #48

I have the same issue without Kerbalism installed.

Looooooooogs. With the debug flag on.

KSP.log
I don't know where you set the debug flags, but here's my log.

You set them in GameData/DynamicBatteryStorage/DynamicBatteryStorageSettings.cfg. There should be a DebugMode to change to true. Unfortunately the log without the debug isn't giving me any clues.

dlrk2 commented

The conflict is with Signal Delay, not Kerbalism