Jump to content

Breaking Ground: Unable to scan surface features due to NRE


Recommended Posts

Playing a new career with a lot of mods installed, particularly Kerbalism and JNSQ. I'm close to a Baobab tree, but I'm unable to scan it with the CRSY Light Scanning Arm. It always complains about being stationary. Logs are suggesting that updating the UI fails due to some NullReferenceException:

[ERR 01:49:02.887] Exception handling event onPartActionUICreate in class ModuleRobotArmScanner:System.NullReferenceException: Object reference not set to an instance of an object
  at ROC.GetClosestScanPosition (Vector3 testPosition, System.Single& bestDistanceToPoint) [0x00000] in <filename unknown>:0 
  at Expansions.Serenity.ModuleRobotArmScanner.SelectROCToScan (UnityEngine.Vector3& closestScanPoint, Boolean useRaycast) [0x00000] in <filename unknown>:0 
  at Expansions.Serenity.ModuleRobotArmScanner.UpdatePartActionUI () [0x00000] in <filename unknown>:0 
  at Expansions.Serenity.ModuleRobotArmScanner.OnPartActionUICreate (.Part actionPart) [0x00000] in <filename unknown>:0 
  at EventData`1[Part].Fire (.Part data) [0x00000] in <filename unknown>:0 

[EXC 01:49:02.887] NullReferenceException: Object reference not set to an instance of an object
	ROC.GetClosestScanPosition (Vector3 testPosition, System.Single& bestDistanceToPoint)
	Expansions.Serenity.ModuleRobotArmScanner.SelectROCToScan (UnityEngine.Vector3& closestScanPoint, Boolean useRaycast)
	Expansions.Serenity.ModuleRobotArmScanner.UpdatePartActionUI ()
	Expansions.Serenity.ModuleRobotArmScanner.OnPartActionUICreate (.Part actionPart)
	EventData`1[Part].Fire (.Part data)
	UnityEngine.Debug:LogException(Exception)
	EventData`1:Fire(Part)
	UIPartActionWindow:CreatePartList(Boolean)
	UIPartActionWindow:UpdateWindow()
	UIPartActionController:UpdateActiveWindows()
	UIPartActionController:UpdateFlight()
	UIPartActionController:Update()

Mod list:

Spoiler

000_ClickThroughBlocker/
000_FilterExtensions/
000_FilterExtensions_Configs/
000_TexturesUnlimited/
000_Toolbar/
001_ToolbarControl/
AirlockPlus/
AlphaDev/
AnimatedAttachment/
AnimatedDecouplers/
B9PartSwitch/
Benjee10_sharedAssets/
BetterBurnTime/
BobsPanicBox/
BonVoyage/
CactEye/
Chatterer/
CommunityCategoryKit/
CommunityResourcePack/
CommunityTechTree/
CommunityTraitIcons/
ContractConfigurator/
ContractPacks/
CrewLight/
CustomBarnKit/
DistantObject/
DMagicOrbitalScience/
DMagicScienceAnimate/
DMagicUtilities/
EasyVesselSwitch/
EnvironmentalVisualEnhancements/
Extras/
FerramAerospaceResearch/
Firespitter/
FMRS/
HabTech2/
HideEmptyTechTreeNodes/
HullCameraVDS/
JanitorsCloset/
JNSQ/
JSI/
KAS/
kdufferskorp/
KerbalChangeLog1-1-5/
KerbalEngineer/
Kerbalism/
KerbalismConfig/
KerbalKonstructs/
KerbalOccupationColors/
KerbalReusabilityExpansion/
KerbetrotterLtd/
KIS/
Kopernicus/
kOS/
Kronometer/
KSP-AVC/
LonesomeRobots/
MechJebForAll/
ModularFlightIntegrator/
ModularLaunchPads/
NASA_CountDown/
NavyFish/
NearFutureConstruction/
NearFutureProps/
NearFutureSolar/
OSSNTR/
Pebkac/
PlanetaryDomes/
PlanetShine/
PortraitStats/
PreciseManeuver/
ProbesBeforeCrew/
RationalResources/
RationalResourcesParts/
RecoveryController/
ReentryParticleEffect/
REPOSoftTech/
ReStock/
ReStockPlus/
RetractableLiftingSurface/
RocketEmporium/
SCANsat/
scatterer/
ScienceParamModifier/
ShangshengOrbital/
SmokeScreen/
SpaceTuxLibrary/
Squad/
SquadExpansion/
StageRecovery/
StationKeeping/
StationPartsExpansionRedux/
Strategia/
TarsierSpaceTech/
ThroughTheEyes/
TrackingLights/
TrackingStationEvolved/
Trajectories/
TriggerTech/
TundraExploration/
TundraSpaceCenter/
TundraTechnologies/
TweakScale/
UniversalStorage2/
VaporVent/
WaypointManager/
Workshop/
ZeroMiniAVC/

What are your thoughts? Do you think a mod is to blame? Is it my vessel (currently a Lynx rover from Feline Utility Rovers)? A bug in BG?

Link to comment
Share on other sites

So if you are playing on 1.7.3, that's probably the issue. JNSQ is set up for the initial release of BG. There was an update to KSP/BG and the names of the scatter objects changed. The current release of JNSQ is not set up for those changes. However, you can download the master file from GitHub which does make those changes and plays fine with BG. 

An actual update for JNSQ is just around the corner, but in the meantime, I'd recommend the master file.

Edited by Galileo
Link to comment
Share on other sites

13 hours ago, Galileo said:

So if you are playing on 1.7.3, that's probably the issue. JNSQ is set up for the initial release of BG. There was an update to KSP/BG and the names of the scatter objects changed. The current release of JNSQ is not set up for those changes. However, you can download the master file from GitHub which does make those changes and plays fine with BG. 

An actual update for JNSQ is just around the corner, but in the meantime, I'd recommend the master file.

Just tried the new version, unfortunately it didn't help. Has the issue/fix been confirmed? Do I need a new savegame for it to work?

Edited by infinite_monkey
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...