Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the inaccuracy/vagueness in Vessel:ROOTPART documentation. #641

Merged
merged 3 commits into from
Mar 4, 2015

Conversation

ZiwKerman
Copy link
Contributor

No description provided.

Pulling development branch updates
This caught my eye and I decided to clarify this part of the
documentation.
@@ -217,7 +217,7 @@ All vessels share a structure. To get a variable referring to any vessel you can
:type: :struct:`Part`
:access: Get only

The first :struct:`Part` that was used to begin the ship design - the command core. Vessels in KSP are built in a tree-structure, and the first part that was placed is the root of that tree.
The ROOTPART is usually the first :struct:`Part` that was used to begin the ship design - the command core. Vessels in KSP are built in a tree-structure, and the first part that was placed is the root of that tree. It is possible to change the root part in VAB/SPH by using Root tool, so ROOTPART does not always point to command core or command pod. Also keep in mind that when you detach a part of a vessel or sub-craft - for example a ComSat subassembly - it becomes a new Vessel with it's own ROOTPART.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless you can launch a subassembly without adding it to another craft, that second sentence of the change doesn't make any difference and is really confusing. The root part of the subassembly won't be the root part of whatever vessel you attach it to, unless its the first part added to the new vessel, in which case that's already covered by the other sentences.

The change mentioning the new editor feature that wasn't there when this was first written, however, is a good change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you misread. A detached sub-assembly becomes a new Vessel, so if your core is attached to this subassembly the ROOTPART will change on detachment.

I have a script that monitors detachment every second by comparing previous ROOTPART:TAG with current one.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I need to clarify - When you detach a part of a vessel in flight

@Dunbaratu
Copy link
Member

In that case you need to drop the "for example a comsat subassembly", which is a misleading part of the description. You're apparently not talking about the subassembly feature at all. How it was built is irrelevant to your point about decoupling or undocking.

Basically, the word "subassembly" means that editor feature, and is not the term used to describe he similar thing that happens in flight.

@ZiwKerman
Copy link
Contributor Author

Hmm, yes. Maybe completely replace last sentence with something like this:

Vessel:ROOTPART may change in flight as a result of docking/undocking or detaching of some part of a Vessel.

It is a bit more vague, but still conveys the message.

@Dunbaratu
Copy link
Member

I don't agree that it's "a bit more vague". It's more accurate. The term "subassembly" has a very specific meaning in KSP and it's not the meaning you meant to say.

Dunbaratu added a commit that referenced this pull request Mar 4, 2015
Fix the inaccuracy/vagueness in Vessel:ROOTPART documentation.
@Dunbaratu Dunbaratu merged commit 35da615 into KSP-KOS:develop Mar 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants