Page 1 of 1

[0.16.25] Heat energy source not working with effectivity

Posted: Sun Feb 25, 2018 11:07 am
by Melfish
I was just modding some entities to work with heat, but could not get them to work properly.
I went back to basics with a heat exchanger and noticed this is probably a bug;
images
Please note that the exchanger is really using 10 MW, as it still takes 4 to cool an active 40 MW reactor.

Re: [16.25] Heat energy source not working with effectivity

Posted: Sun Feb 25, 2018 1:42 pm
by Loewchen
Post the mod please.

Re: [16.25] Heat energy source not working with effectivity

Posted: Sun Feb 25, 2018 1:58 pm
by Melfish
While a lot of unfinished stuff is happening in my mod, this can be replicated with a single line in data.lua;

Code: Select all

data.raw.boiler["heat-exchanger"].energy_source.effectivity = 0.5

Re: [0.16.25] Heat energy source not working with effectivity

Posted: Thu Mar 15, 2018 6:59 pm
by Rseding91
Thanks for the report. I fixed the issue however you aren't going to like it :)

The issue was the tooltip incorrectly showing the effectivity value for energy sources which didn't support the property. I fixed it so it now only shows where it's actually used - in the burner energy type. Heat and electric don't support the effectivity property and in the next version of 0.16 trying to set it on anything that uses either of those types will silently do nothing.