Page 1 of 1

Generating electricity from a fluid other than steam?

Posted: Sun Jan 07, 2018 2:41 pm
by Sigor
I wanted to use generator entity type for that but turns out it only works with steam. Can I do it without scripting or is a script the only option here?

Re: Generating electricity from a fluid other than steam?

Posted: Sun Jan 07, 2018 3:14 pm
by darkfrei
Factorio\data\base\prototypes\entity\demo-entities.lua

Prototype of "steam-engine":

Code: Select all

    fluid_box =
    {
      base_area = 1,
      height = 2,
      base_level = -1,
      pipe_covers = pipecoverspictures(),
      pipe_connections =
      {
        { type = "input-output", position = {0, 3} },
        { type = "input-output", position = {0, -3} },
      },
      production_type = "input-output",
      filter = "steam",
      minimum_temperature = 100.0
    }
Just add your own prototype with another filter here.

Re: Generating electricity from a fluid other than steam?

Posted: Sun Jan 07, 2018 4:43 pm
by Sigor
Thanks, I thought I had done just that, but turns out it wasn't the case.

Re: Generating electricity from a fluid other than steam?

Posted: Sun Jan 07, 2018 4:57 pm
by darkfrei
See also: viewtopic.php?f=28&t=55661
Here can be only one filter, no more.