Page 1 of 1

[0.13.4] LuaFlowStatistics and coal/water missing

Posted: Mon Jul 04, 2016 3:44 pm
by binbinhfr
hi,

concerning Production panel ("P") and API corresponding functions http://lua-api.factorio.com/0.13.4/LuaF ... stics.html (which is very interesting),

Coal does not appear at all, nor other ore production.
Copper/iron/stone consumption appears, but that's all.
Same thing with crude oil.
Water could be great too as a fluid and a resource.
And wood too for mods that are using it.

The goal should be always the same : for any item/fluid/resource in the game, we should see its production and its consumption, so that we can balance if there is underproduction.
For coal, it's interesting to know if you are consuming/burning more coal than you are producing/mining. That's the way you know if you have to install more mining fields...
For water, it's interesting to know if you are consuming more water than you are pumping, to install more pump.

EDIT :
after tests with the API, what is missing in the API call is :
- counting burned coal as consumed/output. (maybe any other "burned" fuel or fluid is missing ?)
- counting pumped water (from a lake) as produced/input, maybe as a resource.

what is displayed or not in the "production panel" is finally probably a choice of the devs. But at least, we should be able to gather ALL input/output informations using the API.

Re: LuaFlowStatistics and coal

Posted: Mon Jul 04, 2016 4:04 pm
by Ranakastrasz
Not surprising. Coal usage for power production, I don't think is really registered properly.

Re: [0.13.4] LuaFlowStatistics and coal/water missing

Posted: Wed Jul 06, 2016 3:20 pm
by Rseding91
Fixed for 0.13.6.

Re: [0.13.4] LuaFlowStatistics and coal/water missing

Posted: Wed Jul 06, 2016 3:26 pm
by binbinhfr
Rseding91 wrote:Fixed for 0.13.6.
Thx ! It would be nice for my new Stats mod :-)

Re: [0.13.4] LuaFlowStatistics and coal/water missing

Posted: Wed Jul 06, 2016 10:11 pm
by binbinhfr
I confirm that its was corrected in 0.13.6
thx