Jump to content

Polling parts on ALL vessels, active or not?


Recommended Posts

So one of the grand plans for TestFlight was that it would keep track of ALL vessels, not just the active one. However I started doing some testing on that today as I work on the GUI to handle multiple vessels, and my heart sank. Vessel.parts returns on empty list on a vessel if it isn't the active vessel.

Is there a workaround?

Link to comment
Share on other sites

Protoparts? Interesting. Thanks I will give that a shot.

- - - Updated - - -

Ok well this doesn't seem to work the way I need. I can see the modules on a ProtoPartSnapshot, but they appear to be only a shell of what they actually are. I can't for instance cast the module to the actual class that it is and call methods on that. It appears they are basically a frozen snapshot of the part's last status (which makes sense in a way), and not really usable.

Link to comment
Share on other sites

Ok well this doesn't seem to work the way I need. I can see the modules on a ProtoPartSnapshot, but they appear to be only a shell of what they actually are. I can't for instance cast the module to the actual class that it is and call methods on that. It appears they are basically a frozen snapshot of the part's last status (which makes sense in a way), and not really usable.

Yes, because the ship is not actually loaded. Else the game needs to keep all parts active all the time, which would be a serious hog on resources. So if you want to make long distance parts do something, you'll have to deal with them as protoparts, and protomodules.

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