Page 1 of 1

[0.10.6]Liquid input/output limits

Posted: Fri Aug 08, 2014 2:47 pm
by Royppeliini
"Liquid input/output handling function" seems to limit maximum liquid inputs to 2 and outputs to 3 different materials.
Raising the limits would allow modding huge factories.

Re: [0.10.6]Liquid input/output limits

Posted: Fri Aug 08, 2014 4:05 pm
by kovarex
It is not a bug, and the limitation is not there.

Every factory has defined the count of inputs and outputs (with positions).
Since the Refinery has 2 inputs and 3 outputs, the maximum count without using special factory is logically 2 and 3 as the oil refinery has just these physical connections.

Here is the example from the definition of fluid connection of the oil-refinery (specified in entities.lua)

Code: Select all

fluid_boxes =
    {
      {
        production_type = "input",
        pipe_covers = pipecoverspictures(),
        base_area = 10,
        base_level = -1,
        pipe_connections = {{ type="input", position = {-1, 3} }}
      },
      {
        production_type = "input",
        pipe_covers = pipecoverspictures(),
        base_area = 10,
        base_level = -1,
        pipe_connections = {{ type="input", position = {1, 3} }}
      },
      {
        production_type = "output",
        pipe_covers = pipecoverspictures(),
        base_level = 1,
        pipe_connections = {{ position = {-2, -3} }}
      },
      {
        production_type = "output",
        pipe_covers = pipecoverspictures(),
        base_level = 1,
        pipe_connections = {{ position = {0, -3} }}
      },
      {
        production_type = "output",
        pipe_covers = pipecoverspictures(),
        base_level = 1,
        pipe_connections = {{ position = {2, -3} }}
      }
    },
    pipe_covers = pipecoverspictures()
  },
In some mod, you can make special factory, that has (for example) 15 inputs and 5 outputs if you want (You need to specify their positions, so it would have to be bigger building), and then it can work with recipes up to 15 inputs and 5 outputs.

I hope it helps, feel free to ask more, but I'm moving this to not a bug.

Re: [0.10.6]Liquid input/output limits

Posted: Fri Aug 08, 2014 6:13 pm
by Royppeliini
Now I feel stupid. I didn't notice any difference in those base levels. Negative for input and positive for output.

Re: [0.10.6]Liquid input/output limits

Posted: Sat Aug 09, 2014 12:12 pm
by bobingabout
Royppeliini wrote:Now I feel stupid. I didn't notice any difference in those base levels. Negative for input and positive for output.
A friend of mine made the same mistake when modding DyTech's lava heater machine, he wanted to change the positions of the pipes, and ended up breaking the functionality. It took us both a while to figure it out.