(which would be a separate feature enhancement request: show the exact counts as mouse-over-popup

Anyway. I used this code, to print all my production stats:
Code: Select all
/measured-command local f = game.forces["player"]
for k, v in pairs(f.item_production_statistics.input_counts) do
if f.item_production_statistics.output_counts[k] then
log(k..": "..v.." -> "..f.item_production_statistics.output_counts[k].." ("..(v-f.item_production_statistics.output_counts[k])..")")
else
log(k..": "..v.." -> 0 ("..(v)..")")
end
end
For example:
I use bob's power mod and build a few substation mk4's, which needs one substation mk3 (plus some other stuff), which needs substation mk2 (plus some other stuff).substation-2: 13 -> 0 (13)
substation-3: 13 -> 0 (13)
substation-4: 13 -> 0 (13)
The production stats (printed/logged and the production overview 'p') would imply that I should have 39 substations and that i somehow spawned the more advanced ones, because i did not need the lower-tier ones to produce the advanced ones, while i only have 13 substation MK4's.