Jump to content

ResourceFlowMode and ResourceTransferMode


linuxgurugamer

Recommended Posts

I am trying to make some segmented SRBs (also known as modular SRBs), consisting of an engine and one or more segments stacked on top.

I am trying to get the stock system to make it work for me.  For this test, I defined a new resource called SolidFuel2.

Specifically, I need it to do the following:

  • Allow the resource to flow between connected segments and the engine
  • Not allow the resource to flow through decouplers, etc.

It's mostly working except that when I stack one on top of another (complete stack), giving two SRBs in sequence, the first stage will properly drain the segments above it, but then, when they are empty, it starts draining the segments above the decoupler.

I'm beginning to suspect that I'll need to write a couple of custom part modules to deal with this, but before I do, was wondering if anyone had dealt with this in another manner?

Thanks in advance

Link to comment
Share on other sites

22 hours ago, linuxgurugamer said:

I am trying to make some segmented SRBs (also known as modular SRBs), consisting of an engine and one or more segments stacked on top.

I am trying to get the stock system to make it work for me.  For this test, I defined a new resource called SolidFuel2.

Specifically, I need it to do the following:

  • Allow the resource to flow between connected segments and the engine
  • Not allow the resource to flow through decouplers, etc.

It's mostly working except that when I stack one on top of another (complete stack), giving two SRBs in sequence, the first stage will properly drain the segments above it, but then, when they are empty, it starts draining the segments above the decoupler.

I'm beginning to suspect that I'll need to write a couple of custom part modules to deal with this, but before I do, was wondering if anyone had dealt with this in another manner?

Thanks in advance

There has been a couple of these mods one was just has you said by making a new fuel and cfg and the other mods used a plugin will look around and see if , I can find them.

 

 

couldn't found the rest.

Edited by Mecripp
edit- added stuff
Link to comment
Share on other sites

@linuxgurugamer Between the 4 resource flow modes that I know of: NO_FLOW, ALL_VESSEL, STAGE_PRIORITY_FLOW, STACK_PRIORITY_SEARCH one of the latter two should be adequate for you needs but the perfect flow mode for a stack-able SRB mod dos not exist. Such a flow mode would allow crossfeed through only the parts in the stack but not out of or between stacks. If you go the coding route I'd like to throw in a small feature request (which you are not obliged to take on, of course, but would be welcome by many): SRBs by nature produce more thrust if they are taller because more fuel gets to burn at once and there's more room inside the SRB for the fuel to burn. It would be great if such a plugin could read the sum of the segments in a stack (per engine), take a fraction of this sum, and multiply the value of maxThrust by it in the engine module. How eactly that formula works out is beyond my knowledge. A few folks around here would know, I bet, or suggest different logic.

Link to comment
Share on other sites

10 minutes ago, JadeOfMaar said:

@linuxgurugamer Between the 4 resource flow modes that I know of: NO_FLOW, ALL_VESSEL, STAGE_PRIORITY_FLOW, STACK_PRIORITY_SEARCH one of the latter two should be adequate for you needs but the perfect flow mode for a stack-able SRB mod dos not exist. Such a flow mode would allow crossfeed through only the parts in the stack but not out of or between stacks. If you go the coding route I'd like to throw in a small feature request (which you are not obliged to take on, of course, but would be welcome by many): SRBs by nature produce more thrust if they are taller because more fuel gets to burn at once and there's more room inside the SRB for the fuel to burn. It would be great if such a plugin could read the sum of the segments in a stack (per engine), take a fraction of this sum, and multiply the value of maxThrust by it in the engine module. How eactly that formula works out is beyond my knowledge. A few folks around here would know, I bet, or suggest different logic.

Exactly what I'm working on right now

Link to comment
Share on other sites

On 9/7/2019 at 1:16 PM, JadeOfMaar said:

@linuxgurugamer Between the 4 resource flow modes that I know of: NO_FLOW, ALL_VESSEL, STAGE_PRIORITY_FLOW, STACK_PRIORITY_SEARCH one of the latter two should be adequate for you needs but the perfect flow mode for a stack-able SRB mod dos not exist. Such a flow mode would allow crossfeed through only the parts in the stack but not out of or between stacks. If you go the coding route I'd like to throw in a small feature request (which you are not obliged to take on, of course, but would be welcome by many): SRBs by nature produce more thrust if they are taller because more fuel gets to burn at once and there's more room inside the SRB for the fuel to burn. It would be great if such a plugin could read the sum of the segments in a stack (per engine), take a fraction of this sum, and multiply the value of maxThrust by it in the engine module. How eactly that formula works out is beyond my knowledge. A few folks around here would know, I bet, or suggest different logic.

I've solved the major issues with the mod (yay), no thanks to the stock fuel flow modes.  Just coding around it is a real PITA

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