Jump to content

Natural gas generator not producing output at the correct temperature


psusi
  • Branch: Live Branch Version: Linux Pending

The CO2 coming out of the output pipe of the natural gas generator is supposed to be 110 C or HIGHER if the machine temperature is higher, but it is only around 27 degrees if that is the temperature of the machine.  The pWater coming out is also less than the 40 degree minimum it is supposed to have.


Steps to Reproduce

Build a natural gas generator.




User Feedback


I ran across something while digging through code while looking at modding something semi-related, and I noticed that when the natural gas generator (and other generators that produce piped/ducted outputs) generate an output, they seem to use (from EnergyGenerator.cs):

 

 if (output.store)
    {
      if (elementByHash.IsGas)
        this.storage.AddGasChunk(output.element, num1, root_pe.Temperature, byte.MaxValue, 0, true);
      else if (elementByHash.IsLiquid)
        this.storage.AddLiquid(output.element, num1, root_pe.Temperature, byte.MaxValue, 0, true);

root_pe.Temperature appears to be the temperature of the building.

 

Shouldn't root_pe.Temperature be replaced with something that clamps it to at least 110C?

When outputting liquid pwater, it at least uses

      float temperature = Mathf.Max(root_pe.Temperature, output.minTemperature);
....
          FallingWater.instance.AddParticle(num2, elementIndex, num1, temperature, byte.MaxValue, 0, true);

which appears that it should be coming out at a minimum of the specified temperature.

 

Edited by ashridah

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...