Generating electricity from a fluid other than steam?

Place to get help with not working mods / modding interface.
Post Reply
Sigor
Burner Inserter
Burner Inserter
Posts: 19
Joined: Sun Nov 20, 2016 5:07 pm
Contact:

Generating electricity from a fluid other than steam?

Post 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?

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2904
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Generating electricity from a fluid other than steam?

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

Sigor
Burner Inserter
Burner Inserter
Posts: 19
Joined: Sun Nov 20, 2016 5:07 pm
Contact:

Re: Generating electricity from a fluid other than steam?

Post by Sigor »

Thanks, I thought I had done just that, but turns out it wasn't the case.

User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2904
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Generating electricity from a fluid other than steam?

Post by darkfrei »

See also: viewtopic.php?f=28&t=55661
Here can be only one filter, no more.

Post Reply

Return to “Modding help”