Galileo88 / Galileos-Planet-Pack

Galileo's Planet Pack
Other
41 stars 18 forks source link

Comms range upgrade .cfg file causes comms network outage and log spam #79

Open embermctillhawk opened 1 year ago

embermctillhawk commented 1 year ago

I noticed that the other day when I made a craft with an RA-100 that the craft wasn't treating it as a valid antenna. I thought that was odd but thought nothing further of it.

Today when I loaded my save file and tried to launch a craft, I soon found that I had no probe control despite still being in kerbin atmosphere a mere few kilometers above the launch pad and having no RA-100.

Switching to a different craft, I found that it too no longer had comms. Attempting to switch the comms view to "network" in map view showed that there was no longer any network.

Checking the logs shows the following.

[EXC 22:43:09.221] ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <9577ac7a62ef43179789031239ba8798>:0) System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <9577ac7a62ef43179789031239ba8798>:0) PartModule.ApplyUpgradeNode (System.Collections.Generic.List1[T] appliedUps, ConfigNode node, System.Boolean doLoad) (at <4b449f2841f84227adfaad3149c8fdba>:0) ModuleDataTransmitter.CommPowerUnloaded (ProtoPartModuleSnapshot mSnap) (at <4b449f2841f84227adfaad3149c8fdba>:0) CommNet.CommNetVessel.UpdateComm () (at <4b449f2841f84227adfaad3149c8fdba>:0) CommNet.CommNetVessel.OnNetworkPreUpdate () (at <4b449f2841f84227adfaad3149c8fdba>:0) CommNet.CommNode.NetworkPreUpdate () (at <4b449f2841f84227adfaad3149c8fdba>:0) CommNet.Network.Net4[_Net,_Data,_Link,_Path].PreUpdateNodes () (at <4b449f2841f84227adfaad3149c8fdba>:0) CommNet.Network.Net4[_Net,_Data,_Link,_Path].Rebuild () (at <4b449f2841f84227adfaad3149c8fdba>:0) CommNet.CommNetwork.Rebuild () (at <4b449f2841f84227adfaad3149c8fdba>:0) CommNet.CommNetNetwork.Update () (at <4b449f2841f84227adfaad3149c8fdba>:0) UnityEngine.DebugLogHandler:LogException(Exception, Object) ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object) UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)`

I'd been testing antimatter creation in kspie for a good while so the log had reached over 200 megabytes because the above error was being logged every 9-10 milliseconds.

Closing the game, deleting the range_StockAntenna.cfg file and reloading restored my commnet.

Not sure what changed in how the game handles upgrades on stock parts but here we are.