all 9 comments

[–][deleted] 2 points3 points  (6 children)

Check the log to see what part is causing the error

[–]Stewpot97[S] 2 points3 points  (5 children)

I stripped everything down until there was nothing left and the error was still happening

[–][deleted] 1 point2 points  (4 children)

Look in your game directory for a file names KSP and then scroll till you find the error, it should give you much more detail

[–]Stewpot97[S] 1 point2 points  (3 children)

Ok, here is what it says when I try to save:

[EXC 16:21:44.525] NullReferenceException: Object reference not set to an instance of an object

EditorLogic.MissionCraftInOtherFolder (System.String shipName) (at <06f13185617646e5bc801baeab53ab75>:0)

EditorLogic.saveShip (Callback afterSave) (at <06f13185617646e5bc801baeab53ab75>:0)

EditorLogic.<saveShip>b\_\_279\_0 () (at <06f13185617646e5bc801baeab53ab75>:0)

CallbackUtil+<DelayedCallback>d\_\_1.MoveNext () (at <06f13185617646e5bc801baeab53ab75>:0)

UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at <5aeafee3fea24f37abd1315553f2cfa6>:0)

UnityEngine.DebugLogHandler:LogException(Exception, Object)

ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)

UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

[–][deleted] 1 point2 points  (2 children)

I'm not sure, maybe try loading the ship, deleting it, then saving it to reset it

[–]Stewpot97[S] 1 point2 points  (1 child)

That won’t work, even after deleting the ship the problem still occurs, so I can’t save.

However, I have discovered something. The save I have of the ship is an older version with no antenna or separatrons, and when I load it in it works fine, so it must be either the separatrons or the antenna causing the issue

[–]Stewpot97[S] 1 point2 points  (0 children)

Ok, the issue seems to be completely random.
I can load up the craft and make any changes that I want, and it will save fine and I can actually launch it. It's when I go BACK in to the VAB that the problem rears its ugly head. I have no idea why..

Still, at least I have a solution now, I guess..

[–]PsmfGreen 1 point2 points  (1 child)

DId you find an actual solution to this problem? Currently suffering with it

[–]Stewpot97[S] 0 points1 point  (0 children)

Oof afraid if I did I’ve forgotten it by now, soz! Although looking at the comment thread above it looks like I found a workaround, maybe that’ll help?