Jump to content

Gaaaah.... KSP!! Why are you claiming struts are crossfeed capable connectors???


Recommended Posts

In kOS, I'm trying to fix a bug where our calculations of resources available in a stage are sometimes wrong. The algorithm is to perform a recursive node walk of the part connectivity graph, starting from all the currently active engines, to their attached parts, and their attached parts, and so on, summing up the resource as we go, and tracking visited nodes so we don't visit the same part twice. But we don't walk every part attachment, only those attachnodes which are flagged as crossfeed enabled. Therefore if you cross a decoupler during the walk, it stops there because it (probably) isn't crossfeed enabled.

The problem is coming from struts. For stability people will often strut across a decoupler, connecting a fuel tank in one stage to a fuel tank in a different stage. Those struts are being reported as attachNode connections between the fuel tanks, AND the fueltanks are NOT including those attachnodes in their NoCrossFeedNodeKey()'s, meaning the fuel tanks are claiming "oh sure, I can feed fuel through this connection, no problem!"

But they can't.

Why do struts get reported as crossfeed nodes by the fuel tanks they're attached to?

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