Helfima / helmod

Factorio Mod
151 stars 65 forks source link

Set a material to be fed externally instead of produced by the block #351

Open veger opened 3 years ago

veger commented 3 years ago

I am trying to calculate the ratios/number of factories for one of the available Nexelit Plates production chains, but the Matrix Solver seems to choke on it. I set the required output (Nexelit plates) to 0.3 and got the following: nexelit plates block

For some reasons the grade 3 (I thought) over produces a lot and 'exports' for the block. It looks like the line (no 1 in the image) that converts grade 1 into grade 2/grade 3/rejects. is choking, as it already produces a lot more that required (no 2) by the next line (2.9 vs 0.4)

As you can see the block is pretty complex as the reject are fed back to become grade 1 and grade 2 (no 3) is fed back to become grade 3 (no 4).

I tried moving the lines around to see if/how I could make this work. And while the results changed (a little), none of the combinations I tried were perfect...

veger commented 3 years ago

I figured out how to prevent this (after building the setup and seeing that 'sand' was lacking and needed to be fed into this block): Set sand output to a (high) negative number and it is used as input, this reduces the creation of sand (no 4), which reduces the need of its input (grade 2 nexelite ore/dust/something), which then reduces the output of no 1.

Could we have a more intuitive way of telling that some material should not be (extra) produced and instead used from external/input sources?