Page 1 of 1

Changing Fluid heat (Steam output)

Posted: Sun Nov 25, 2018 6:15 pm
by Yokmp
Hey there,

I try to output Steam on a modified ChemPlant. This works but it only generates Steam with 15°C.
So then i've simply overriden the Vanilla values by creating a new Steam-item within my testmod:

Code: Select all

{
    type = "fluid",
    name = "steam",
    default_temperature = 165, 	-- changed from 15
    max_temperature = 1000,
    heat_capacity = "0.2KJ",
    icon = "__base__/graphics/icons/fluid/steam.png",
    icon_size = 32,
    base_color = {r=0.5, g=0.5, b=0.5},
    flow_color = {r=1.0, g=1.0, b=1.0},
    order = "a[fluid]-b[steam]",
    pressure_to_speed_ratio = 0.4,
    flow_to_energy_ratio = 0.59,
    gas_temperature = 165,	-- changed from 15
    auto_barrel = false
    }
This outputs Steam with 165°C but it also affects every other part of Steam generation and usage.
Is there a Way to do this so that only this Machine outputs hot vanilla-Steam?

Re: Changing Fluid heat (Steam output)

Posted: Sun Nov 25, 2018 8:46 pm
by steinio
Hot vanilla steam.
Sounds tasty with 0 calories.

Re: Changing Fluid heat (Steam output)

Posted: Mon Nov 26, 2018 10:35 am
by bobingabout
don't go editing the definition of steam.

I think all you need to do is add a temperature = 165 line to your recipe results.

EG:
instead of

Code: Select all

    results =
    {
      {type = "fluid", name = "steam", amount = 20}
    },
you would need to use

Code: Select all

    results =
    {
      {type = "fluid", name = "steam", amount = 20, temperature = 165}
    },
EDIT: I looked it up.
results will accept temperature as I stated above.
ingredients will accept temperature, but also minimum_temperature and maximum_temperature if you want a range.
(Actually, internally, ingredients only have minimumTemperature and maximumTemperature, setting temperature simply sets both to the specified value)