RemoteTechnologiesGroup / RemoteTech

Community developed continuation of Kerbal Space Program's RemoteTech mod.
http://remotetechnologiesgroup.github.io/RemoteTech
GNU General Public License v2.0
230 stars 103 forks source link

'CheckForPotato' exception #778

Closed Gordon-Dry closed 5 years ago

Gordon-Dry commented 5 years ago

On a scene change into flight mode I got this:

Exception handling event onVesselWasModified in class ModuleAsteroidAnalysis:System.NullReferenceException: Object reference not set to an instance of an object
  at ModuleAsteroidAnalysis.CheckForPotato (.Vessel v) [0x00000] in <filename unknown>:0 
  at EventData`1[Vessel].Fire (.Vessel data) [0x00000] in <filename unknown>:0 

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

NullReferenceException: Object reference not set to an instance of an object
  at ModuleAsteroidAnalysis.CheckForPotato (.Vessel v) [0x00000] in <filename unknown>:0 
  at EventData`1[Vessel].Fire (.Vessel data) [0x00000] in <filename unknown>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
EventData`1:Fire(Vessel)
RemoteTech.Modules.ModuleRTAntenna:AddTransmitter()
RemoteTech.Modules.ModuleRTAntenna:SetState(Boolean)
RemoteTech.Modules.ModuleRTAntenna:OnStart(StartState)
Part:ModulesOnStart()
<Start>c__Iterator0:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

(Filename:  Line: -1)

Exception handling event onVesselWasModified in class ModuleAsteroidAnalysis:System.NullReferenceException: Object reference not set to an instance of an object
  at ModuleAsteroidAnalysis.CheckForPotato (.Vessel v) [0x00000] in <filename unknown>:0 
  at EventData`1[Vessel].Fire (.Vessel data) [0x00000] in <filename unknown>:0 

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

NullReferenceException: Object reference not set to an instance of an object
  at ModuleAsteroidAnalysis.CheckForPotato (.Vessel v) [0x00000] in <filename unknown>:0 
  at EventData`1[Vessel].Fire (.Vessel data) [0x00000] in <filename unknown>:0 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
EventData`1:Fire(Vessel)
RemoteTech.Modules.ModuleRTAntenna:AddTransmitter()
RemoteTech.Modules.ModuleRTAntenna:SetState(Boolean)
RemoteTech.Modules.ModuleRTAntenna:OnStart(StartState)
Part:ModulesOnStart()
<Start>c__Iterator0:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

(Filename:  Line: -1)

And no, I got no "asteroid mod" besides Kopernicus.

KSP-TaxiService commented 5 years ago

Oooo I can't replicate this on my side with KSP 1.5.1 and RT 1.9.0. Something is nullifying ModuleAsteroidAnalysis object and I have no idea what it is.

Gordon-Dry commented 5 years ago

Could it have to do with the not-yet-finished compatibility of DMagicOrbitalScience with UniversalStorage2 ?

The only configs I found in GameData which refer to ModuleAsteroidAnalysis are: GameData\DMagicOrbitalScience\ProbeScience\ASERT\ASERT.cfg GameData\DMagicOrbitalScience\RoverScience\XRay\XRay.cfg GameData\DMagicOrbitalScience\UniversalStorage\USASERT\USASERT.cfg (the parts in this folder are hidden, aka. deprecated) GameData\DMagicOrbitalScience\UniversalStorageScience\USASERT\USASERT.cfg (new UniversalStorage2 parts) GameData\Bluedog_DB\Compatibility\CommunityResourcePack\CRP sensors.cfg GameData\Squad\Parts\Resources\SurfaceScanner\SurfaceScanner.cfg

KSP-TaxiService commented 5 years ago

ModuleAsteroidAnalysis is actually part of the stock KSP codebase. It is checking if a vessel "docked" with an asteroid has any remaining asteroid resource to extract.

Do you know if one of your mod is handling this extraction?

Gordon-Dry commented 5 years ago

Could it be this? https://github.com/CobaltWolf/Bluedog-Design-Bureau/commit/9c859bcf8ebf016970842cff96a0ac38d2dd1eaf#diff-aed69ac4358f2eb48a422473bd7acda8