Jump to content

Ship was corrupted at test launch, cannot load ship anymore. Game bugs out.


Recommended Posts

I was building a circular station for kerbin and when I tried to test launch it the file corrupted. The attached files are a backup I made a day before finishing the build and the second is the station as it was saved just before launching.

Because it is a station, I attached an orange tank below with 6 launch clamps to it so it wouldn't fall and be destroyed by the launch logic. When I pressed launch, the ship was nowhere to be found and I couldnt select any ships. IIRC I hit revert but then the ship was broken, but didn't have either the orange tank or the clamps. The "Vessel Name" and kerbal flag where there with no way to change it, and the parts where as seen from the pics.

I finally fixed the VAB by hitting twice the new ship button. I have no idea why it recovered, but the ship doesn't load properly even though everything else loads ok.

Javascript is disabled. View full album

File before crash and after.

dropbox.com/sh/0jkrojtdguxnpfx/AABsmTggYHZwcRW4r_BEmufXa?dl=0

Update: I haven't played since posting this bug so I haven't tried anything new yet, but that means I still have the KSP.log from that time and I'll up it to the link above. Here's some relevant output though:


[EXC 13:02:09.606] NullReferenceException: Object reference not set to an instance of an object
ShipConstruct.LoadShip (.ConfigNode root)
ShipConstruction.LoadShip (System.String filePath)
EditorLogic.Start ()
[WRN 13:02:11.474] [CompoundPart]: No target found with craftID 4294628988. Attempting to find it at direction [-0.8443883,0.5357298,-0.001358547].
[WRN 13:02:11.477] [CompoundPart]: No target found with craftID 4294617010. Attempting to find it at direction [-0.8443883,0.5357298,-0.001358547].
[WRN 13:02:11.479] [CompoundPart]: No target found with craftID 4294616946. Attempting to find it at direction [-0.8443883,0.5357298,-0.001358547].
[WRN 13:02:11.481] [CompoundPart]: No target found with craftID 4294608848. Attempting to find it at direction [-0.8370461,0.5471233,-0.003139632].
[WRN 13:02:11.484] [CompoundPart]: No target found with craftID 4294607778. Attempting to find it at direction [-0.8370461,0.5471233,-0.003139632].
[WRN 13:02:11.486] [CompoundPart]: No target found with craftID 4294607714. Attempting to find it at direction [-0.8370461,0.5471233,-0.003139632].
[WRN 13:02:11.584] [CompoundPart]: No target found with craftID 4294597734. Attempting to find it at direction [0.02983487,0.9992842,0.02325939].
[WRN 13:02:11.586] [CompoundPart]: No target found with craftID 4294616584. Attempting to find it at direction [-0.8393791,0.5435466,0.0001848155].
[WRN 13:02:11.663] [CompoundPart]: No target found with craftID 4294597112. Attempting to find it at direction [0.07135057,0.9973986,-0.01025165].
[WRN 13:02:11.666] [CompoundPart]: No target found with craftID 4294615632. Attempting to find it at direction [-0.8436791,0.5368479,-1.929765E-05].
[WRN 13:02:11.786] [CompoundPart]: No target found with craftID 4294597030. Attempting to find it at direction [0.02983487,0.9992842,0.02325939].
[WRN 13:02:11.789] [CompoundPart]: No target found with craftID 4294596966. Attempting to find it at direction [-0.8393791,0.5435466,0.0001848155].
[WRN 13:02:11.880] [CompoundPart]: No target found with craftID 4294596758. Attempting to find it at direction [0.07135057,0.9973986,-0.01025165].
[WRN 13:02:11.882] [CompoundPart]: No target found with craftID 4294596694. Attempting to find it at direction [-0.8436791,0.5368479,-1.929765E-05].
[WRN 13:02:11.987] [CompoundPart]: No target found with craftID 4294596058. Attempting to find it at direction [0.02983487,0.9992842,0.02325939].
[WRN 13:02:11.989] [CompoundPart]: No target found with craftID 4294595994. Attempting to find it at direction [-0.8393791,0.5435466,0.0001848155].
[WRN 13:02:12.079] [CompoundPart]: No target found with craftID 4294595786. Attempting to find it at direction [0.07135057,0.9973986,-0.01025165].
[WRN 13:02:12.081] [CompoundPart]: No target found with craftID 4294595722. Attempting to find it at direction [-0.8436791,0.5368479,-1.929765E-05].

Edited by bakanando
Link to comment
Share on other sites

Idk, happened to me when I was modded. This seems to be a common issue, I have seen it pop up twice on my computer alone. Both times I had to reinstall. However, go to KSP folder->Saves->SaveName->Ships->VAB and see if a craft file is unusually small, like 1kb. If it is, delete it because it is most likely a corrupt craft file. If it doesnt work, or there isnt a craft file like that, you may have to reinstall. Wait a bit first.

Link to comment
Share on other sites

There are a couple things that can corrupt a .craft file.

- The game crashes when it is trying to save: The file will be truncated and will not contain all the needed info.

- The game experienced a bug before saving, and that interfered with the save process: Again, the file will probably be short.

With these two cases, it generally leaves KSP unable to open the "Load" dialog. The remedy for this is to delete the corrupt .craft which, as GiantTank pointed out, is generally small.

However, if you are able to actually load the .craft but it's somehow broken, or only that .craft doesn't want to load, then it's possible the file was corrupt another way. Sometimes this happens if you use some excessive clipping techniques, especially if the ALT+F12 menu or UNDO is involved. You can sometimes tell if this is the case, because the .craft file will have an excessive part count (which you can see in the Load dialog). This can cause weird ghost parts or things to disappear.

Looking inside your craft files at the fuel tank, it looks like the fuel tank was somehow connected incorrectly by the game. The links are broken and misreferencing parts. I have a suspicion that perhaps UNDO was used, or that the game failed to connect correctly while symmetry was on. Unfortunately, this means that your corrupt file is probably too much of a mess to manually fix. Or at least, it's probably not worth the time to fix it. I would say that the corrupt .craft was probably also responsible for the crashing/buggy behavior that you saw when launching.

Your .bak version looks okay, although I didn't inspect it too deeply. Hopefully that narrows down where your problem might have come from, so that you can avoid it in the future.

Cheers,

~Claw

Link to comment
Share on other sites

I'll just copy the backup version and go from there then. At least I remember how to complete it now, as I already made it once.

I used diff to see between both versions and the first quarter or so doesn't change that much, but after that whole part sections are different so I gave up tracking the problem. The difference in parts is way too much. It's good to know it's actually effed up and not just arbitrarily broken because of a missing part reference or bracket.

The parts count is consistent to the amount it should have before load, and cost is too. You can actually load it, but it borks your game until you select new craft _twice_. File size is 180kb, about 40k bigger than the backup (which has less parts).

At least I learned something, the craft files are very, very long.

Edited by bakanando
removed the hate
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...