Rseding91 wrote: ↑
Wed May 29, 2019 9:15 pm
The naming follows "input == add", "output == remove". You "add" by storing positive values to "input" and "remove" by storing negative values to "output". Again, the names are mostly meaningless. I would change them but I consider braking every mod that uses those functions a stupid idea and so the names stay.
Well, at least they aren't named with the intention
of causing maximal Qonfusion
I can appreciate both good names that are well documented and
not getting my mods broken so I understand a bit of reluctance to change it.
Bilka wrote: ↑
Thu May 30, 2019 8:09 am
I took the liberty to see this as a documentation bug, and fixed the documentation for the next version. In short, the easiest way to find out what input and what output is, is to look at the GUI for the statistics. Input is on the left, output on the right. I documented it as such, including some examples.
Is this true for electric networks also, or did I misunderstand Rseding91?
Rseding91 wrote: ↑
Wed May 29, 2019 7:16 pm
Thanks for the report however that's working as intended: "input" is positive values (items produce) and output is negative values (things consumed). Except for power which is the other way around.
So is "input = negative, on the left" or is "input = negative, on the right". Or maybe it is "input = positive, on the right" because production is on the right for electric networks (my current guess)?
And why is production on the right in the GUI for electric networks when it is on the left for everything else?
Also, am I correct to assume that this documentation fix will appear at https://lua-api.factorio.com/latest/Lua ... stics.html
? Are there other places where this will be documented, like `game.pollution_statistics` (which links to LuaFlowStatistics) if different flow stat usage has it "the other way around" (depending on what that means)?