Jump to content

Changing the parts of the active vessel mid-flight


Recommended Posts

I have a list of parts i want to have as the parts on the current active vessel. i have thought on a number of ways to do so:

1. changing the parts list on the vessel- dosnt really works the old parts stay in place and the new part is remaining physicsless.

2. going into the persistence file and changing it there- i couldnt find the file in code.

3. creating a new vessel and having it as the active vessel- i tried that too but it's again physicsless for some reason.

any ideas or suggestions?

Link to comment
Share on other sites

I have a list of parts i want to have as the parts on the current active vessel. i have thought on a number of ways to do so:

1. changing the parts list on the vessel- dosnt really works the old parts stay in place and the new part is remaining physicsless.

2. going into the persistence file and changing it there- i couldnt find the file in code.

3. creating a new vessel and having it as the active vessel- i tried that too but it's again physicsless for some reason.

any ideas or suggestions?

Following on from the 3rd idea you could look at my source code included in the BoatNavigation download, the BackgroundScene.cs, ChangePositions subroutine contains a method of spawning a .craft file and replacing the original, you would have to adapt this for an Active Vessel, maybe by placing the vessel on rails before hand and off rails after? It depends how smooth you want to change the parts (my method may be slow and visually unpleasing for an active vessel :S)!

Link to comment
Share on other sites

Following on from the 3rd idea you could look at my source code included in the BoatNavigation download, the BackgroundScene.cs, ChangePositions subroutine contains a method of spawning a .craft file and replacing the original, you would have to adapt this for an Active Vessel, maybe by placing the vessel on rails before hand and off rails after? It depends how smooth you want to change the parts (my method may be slow and visually unpleasing for an active vessel :S)!

hmm that's good. i dont have craft files but ship constructions should work just as well. i could always make it visually unpleasing now and hope later i get to a solution- i think i need more minds on this and i am sure some people will join me once i have a nice core

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...