Jump to content

Requesting mod to convert stock persistence vessels into craft files. [Request Met! Details Inside]


inigma

Recommended Posts

Do you mind if I take a look at the source for that and possibly borrow a few things from it for Kerbal Construction Time? I've been looking for a way to do that, and if you solved it then it will save me a lot of headache!

Link to comment
Share on other sites

From: forum.kerbalspaceprogram.com/threads/107142-Possible-to-Save-Ship-from-Persistence-File

If you guys still want it, I made an Add-On that allows you to save an active, in-flight vessel out to a .craft file. You can find it here: https://github.com/ClawKSP/InflightShipSave/releases

Install the .dll to your GameData directory and start up KSP. Go to the vessel you want to save and press F6. That will save it out to the VAB directory. It will be named after your ship with "_Rescued" appended to the end. That way you can go back to the VAB and load it up.

So it'll be at ===> KSP\Saves\[saveName]\Ships\VAB\[VesselName]_Rescued.craft

Please bear in mind that it's a work in progress. Certain things on the ship, once activated can cause a problem for the Editor. Also, launch clamps cause the placement to be a bit wonky. I've trapped and cleaned as many of these things as I can, but check your ALT+F2 log. If you are getting a lot of NullRefs, something on your ship is still active. Providing me a picture of your craft and/or the .craft file would help.

Cheers,

~Claw

By the way, here is your shuttle. Looks like the utility worked for it: http://pastebin.com/ti2w3F6N

*gasp* *insert second speechless gasp*

wow. thank you Claw!

Starwhip, looks like Claw's already invented the wheel. :D

Nice job. I have a shuttle, and not just any shuttle, my shuttle. Thank you! The Intrepid is back in development! I seriously almost came to tears today over the work I put into those wings. You have turn sorrow in to joy. Thank you dear sir.

bGnyxb1.png

W4GBCO0.png

gwGrIfJ.png

PEKUT4G.png

The only thing I need to do is recreate the solid booster stack. That was a permanent loss, but easy to recreate. I will be sure you receive special mention and thanks in the Spacecraft Exchange thread for this shuttle once I finalize the lifting stack, and other balance issues, and then publish it. I'll IM you when done. :)

You have made Jebediah's day. Thank you Claw. (and thanks for taking a swing crackin' the code Starwhip). You guys are awesome. You guys are what makes KSP literally the best game and gaming community ever. Updating the Questions forum thread OP. http://forum.kerbalspaceprogram.com/threads/107142-Possible-to-Save-Ship-from-Persistence-File

- - - Updated - - -

Claw, just a note that stock tweakables (modules) such as lights for the cockpit and opening the bay doors need to have their toggles turned to True rather than False in the converted file output.

You can fix this by replacing all

isEnabled = False

to

isEnabled = True

in the craft file output.

Edited by inigma
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...