Jump to content

step by step guide on how to change the root part of a ship with craft file editing


seagull42

Recommended Posts

So first off, I am not an expert on how KSP works and I have no programming skills. All of the instructions below are a result of trying to see what works and what doesn't.

I've read somewhere that the order in which the parts are listed determines which part is the root but that's not the case. For each part it is determined what is attached to it, which looks likte this:

"link = part x"

The root part is the only part which is not attached to anything because everything is attached to the root part.

What you have to do:

Here the tiny fuel tank is the root part and the strutcube is attached to it.

ia57Z4s.png

ZTFUyPP.png

To make the strutcube the root part you just have to edit the file so the fuel tank is attached to the strutcube

i1ot1X2.png

hPWu3bE.png

(I saved it as a subassembly)

This was just a very simple example, you can also do it with more complex things such as rovers:

I've built a rover with a modular girder segment (trusspiece1x...) as the root part and wanted to stick it on top of a lander (It's VTOL capable so it can decouple and fly away from it).

T19yWLq.jpg

Ays3iZ1.jpg

In order to do that I had to make the decoupler the new root part.

The decoupler was attached to a cubic octagonal strut (strutcube...) which was attached to the girder segment.

I found the root part because I knew what was attached to it, if you don't know what is attached to your rootpart you can't locate it (except there are no other similar parts on the ship)

rCct1Bx.png

editing the .CRAFT file...

bnfQwWk.png

now the trusspiece is attached to the strutcube and not the other way round

IHAC3oG.png

editing the .CRAFT file...

Q3ryVBi.png

now the strutcube is attached to the decoupler and not the other way round. The decoupler now is the new root part

CidyeuO.jpg

I hope I could help you! Have fun :)

PS: A mod that does that would be great, but sadly I don't know how to create mods. If you know how to do it it would be great if you could do it!!!

PPS: Sorry for any English mistakes, it's not my first language.

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