What?
The graph doesn't show the production values when you use on_flow to insert values to the statistics flow if you have no previous machine production of that item. And then when I try again the graph does work, but the values are incorrect in the table above instead!So yes, here's 2 different bugs that occur together.
It's one report because the reproduction steps, evidence, savefile and code is the same.
Reproduction and screenshots
If you start a new world produce some automation-science-pack in an assembler and runCode: Select all
game.player.force.item_production_statistics.on_flow('automation-science-pack', 10000)
Code: Select all
game.player.force.item_production_statistics.on_flow('logistic-science-pack', 10000)
I ran the command for logistic-science-pack again: Now I get a bump in the graph, but the table shows 8.7k instead instead of the 10k I wrote in my command!
And here with military science (11k) and I get no graph again but correct table value: So again first flow without production gives correct table values but incorrect graphs.
All time stats are correct: