Jump to content

Where is a vessel's crew stored in the save file?


WingC3

Recommended Posts

I have a ship whose Kerbal has magically disappeared. I've been looking through the save file after he disappeared with the one before, and I cannot see any discrepancy in any of the key-value pairs that could be related to kerbals. Any help appreciated.

Link to comment
Share on other sites

Solved it:  The kerbals have an attribute called "SimObjectIdString"  and it contains the GUID of the vessel's root part.  Prior to assignment to a vessel they appear to all have the same GUID in there. Perhaps it's the VAB/Astronaut centre.   Afterwards it's the aforementioned root part.

Link to comment
Share on other sites

For what it's worth, every time I recover a vessel (even ones that completely unscathed) it kills all the kerbals aboard. Or if it doesn't kill them, maybe they resign in protest, never to fly again. I don't know. It just seems that for whatever reason for me, kerbals only fly once in KSP2. (I'm sure it's just a bug that will be fixed soon).

If the kerbal in question hasn't been "recovered" (i.e., killed) yet, and you're building multiple vessels in the VAB, check all the vessels you're working on in the VAB. The kerbal might be hiding in a command pod. 

---

I don't know much about how they are stored in the JSON save files, but here's something I've noticed.

In terms of the save file specifics, I've noticed that if the kerbal in question is a main kerbal (e.g., "BILL_KERMAN", "BOB_KERMAN", "VALENTINA_KERMAN", "JEBEDIAH_KERMAN", or "TIM_C_KERMAN"), and alive, they'll be in both KerbalData {Kerbals {} } and KerbalData {CustomKerbals {} }.

But if they are recoverd (killed), they are removed from both of those and placed in KerbalData {CustomKerbalRefresh {} }

I'm guessing -- although I don't know for sure -- that if the kerbal in question is not one of the main kerbals, and is just a random kerbal, and is recovered (killed) , then that kerbal is simply removed from the save file altogether.

Have you tried searching the save file for the kerbal's name?

(Nevermind. I see you solved it.)

Edited by Spazmataz
posted before seeing a newer post.
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...