Jump to content

NullReferenceException (1.1.2 64-bit)


Recommended Posts

Kerbal Space Program - 1.1.2.1260 (WindowsPlayer)

Problem:

Unable to enter KSC buildings or main menu.

 

Mods Installed:

Chatterer_v0.9.7

RCSBuildAid_v0.7.7

KerbalAlarmClock_3.6.1.0

 

I recently removed several mods including KerbalAtomics, CryoTanks,Stock Visual Enhancement, Scatterer, etc trying to fix this issue.

This occurs when I try to go into any of those menus:

[EXC 15:23:56.458] NullReferenceException: Object reference not set to an instance of an object
    Contracts.Parameters.PartTest.OnSave (.ConfigNode node)
    Contracts.ContractParameter.Save (.ConfigNode node)
    Contracts.Contract.Save (.ConfigNode node)
    Contracts.ContractSystem.OnSave (.ConfigNode gameNode)
    ScenarioModule.Save (.ConfigNode node)
    ProtoScenarioModule..ctor (.ScenarioModule module)
    ScenarioRunner.GetUpdatedProtoModules ()
    Game.Updated ()
    GamePersistence.SaveGame (System.String saveFileName, System.String saveFolder, SaveMode saveMode)
    VehicleAssemblyBuilding.OnClicked ()
    SpaceCenterBuilding.EnterBuilding ()
    SpaceCenterBuilding.OnLeftClick ()
    SpaceCenterBuilding+<OnMouseTap>c__Iterator98.MoveNext ()

 

Full log: http://s000.tinyupload.com/download.php?file_id=76546342015746941859&t=7654634201574694185976669

Edited by Raideur Ng
Link to comment
Share on other sites

  • 2 weeks later...

Kerbal Space Program 1.1.2.1260 WindowsPlayer x64

Same as above, I have had a career game going without changing mods for a log time, suddenly I can't enter / exit buildings.

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

NullReferenceException: Object reference not set to an instance of an object
  at Contracts.Parameters.PartTest.OnSave (.ConfigNode node) [0x00000] in <filename unknown>:0
  at Contracts.ContractParameter.Save (.ConfigNode node) [0x00000] in <filename unknown>:0
  at Contracts.Contract.Save (.ConfigNode node) [0x00000] in <filename unknown>:0
  at Contracts.ContractSystem.OnSave (.ConfigNode gameNode) [0x00000] in <filename unknown>:0
  at ScenarioModule.Save (.ConfigNode node) [0x00000] in <filename unknown>:0
  at ProtoScenarioModule..ctor (.ScenarioModule module) [0x00000] in <filename unknown>:0
  at ScenarioRunner.GetUpdatedProtoModules () [0x00000] in <filename unknown>:0
  at Game.Updated () [0x00000] in <filename unknown>:0
  at GamePersistence.SaveGame (System.String saveFileName, System.String saveFolder, SaveMode saveMode) [0x00000] in <filename unknown>:0
  at KSP.UI.Screens.RDSceneSpawner.onRDDespawn () [0x00000] in <filename unknown>:0
  at EventVoid.Fire () [0x00000] in <filename unknown>:0
  at KSP.UI.Screens.RDController.CloseButton () [0x00000] in <filename unknown>:0
  at UnityEngine.Events.InvokableCall.Invoke (System.Object[] args) [0x00000] in <filename unknown>:0
  at UnityEngine.Events.InvokableCallList.Invoke (System.Object[] parameters) [0x00000] in <filename unknown>:0
  at UnityEngine.Events.UnityEventBase.Invoke (System.Object[] parameters) [0x00000] in <filename unknown>:0
  at UnityEngine.Events.UnityEvent.Invoke () [0x00000] in <filename unknown>:0
  at UnityEngine.UI.Button.Press () [0x00000] in <filename unknown>:0
  at UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x00000] in <filename unknown>:0
  at UnityEngine.EventSystems.ExecuteEvents.Execute (IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00000] in <filename unknown>:0
  at UnityEngine.EventSystems.ExecuteEvents.Execute[IPointerClickHandler] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.EventFunction`1 functor) [0x00000] in <filename unknown>:0 
UnityEngine.Debug:Internal_LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMousePress(MouseButtonEventData)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent(Int32)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent()
UnityEngine.EventSystems.StandaloneInputModule:Process()
UnityEngine.EventSystems.EventSystem:Update()
 

Link to comment
Share on other sites

  • 3 months later...

I believe what's going on is that there's a part test contract in your saves (either offered or previously completed) which refers to a part that no longer exists.  I got bit by this one just now, when some deprecated parts (which I had tested for some contracts) were removed from a mod I use, which caused the contract system to choke.  I know @Arsonide mentioned looking into this bug in this thread, in the context of offered contracts with removed parts, but it looks like the bug also strikes in KSP 1.1.3, when there are completed contracts with removed parts.

My solution was to dig into the save file and snip out any CONTRACT_FINISHED blocks of PartTest type which had a part that didn't exist anymore.

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...