Jump to content

(FYI) Changing INTERNAL of an already launched command pod => NRE


Recommended Posts

This may be useful to Squad if they want to improve their code:

changing internal space (just the name used in part config, in INTERNAL{} block) of a vessel which is already launched, going to tracking station makes impossible to do any action (recover/dispose/go to) to a selected vessel and log files contains:

(1st relevant exception)

ArgumentOutOfRangeException: Argument is out of range.

Parameter name: index

at System.Collections.Generic.List`1[internalSeat].get_Item (Int32 index) [0x00000] in <filename unknown>:0

at KnowledgeBase.CreateVesselCrewList (.Vessel v) [0x00000] in <filename unknown>:0

at KnowledgeBase.OnMapFocusChange (.MapObject target) [0x00000] in <filename unknown>:0

at EventData`1[MapObject].Fire (.MapObject data) [0x00000] in <filename unknown>:0

at PlanetariumCamera.SetTarget (.MapObject tgt) [0x00000] in <filename unknown>:0

at SpaceTracking.SetVessel (.Vessel v, Boolean keepFocus) [0x00000] in <filename unknown>:0

at SpaceTracking+ .MoveNext () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

NullReferenceException: Object reference not set to an instance of an object

at KnowledgeBase.UpdateVesselInfoList (.Vessel v) [0x00000] in <filename unknown>:0

at KnowledgeBase.FixedUpdate () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

NullReferenceException: Object reference not set to an instance of an object

at KnowledgeBase.UpdateVesselInfoList (.Vessel v) [0x00000] in <filename unknown>:0

at KnowledgeBase.FixedUpdate () [0x00000] in <filename unknown>:0

(then lot's of same NRE)

Link to comment
Share on other sites

This may be useful to Squad if they want to improve their code:

changing internal space (just the name used in part config, in INTERNAL{} block) of a vessel which is already launched, going to tracking station makes impossible to do any action (recover/dispose/go to) to a selected vessel and log files contains:

(1st relevant exception)

Does it have a different number of seats by any chance? Editing anything in the save file needs to be done with great care and a good level of knowledge about the internal workings of the game is necessary or the save will almost certainly break (always keep backups). Trying to defend against arbitrary, breaking edits of the game's save files (in a way that doesn't just delete the vessel because it is corrupted or not allow you to load the save at all) would be an almost impossible task and there are far more important things for the devs to work on.

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