Jump to content

What is the trick for balancing Resource Converter outputs?


Recommended Posts

So I am trying to make a resource converter that converts another resource into another 3 other resources at a 1:1 ratio in terms of weight.

I can't seem to figure out the math needed to produce a balanced output with no net loss or gain in terms of weight. I am assuming it has something to do with the density value of the resources?

Link to comment
Share on other sites

Should be: Input units * Input density = (Output-1 units * Output-1 density) + (Output-2 units * Output-2 density) + (Output-3 units * Output-3 density)

I think (but am not certain) the resource definition file uses tons/cubic meter for density.

Link to comment
Share on other sites

  • 2 weeks later...
On 10/3/2020 at 2:54 PM, wasml said:

Should be: Input units * Input density = (Output-1 units * Output-1 density) + (Output-2 units * Output-2 density) + (Output-3 units * Output-3 density)

I think (but am not certain) the resource definition file uses tons/cubic meter for density.

Hmm, I figured it out after some experimenting. But it's not that equation

First I started by breaking the output down into percentages.

So lets just say 1 input unit of InputResource will result in it's mass being converted to 40% of X, 40% of Y, and 20% of Z

First we take InputDensity and divide it by XDensity to get DensityRatioX, then multiply our percentage of output mass, by DensityRatioX to get our balanced output; and repeat so on and so forth for Y and Z.

Simplified, (InputDensity/Outputdensity) * MassPercentageOfOutput = BalancedOutputUnits

 

 

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