I am trying to see how much coal and stone has been mined manually and I cannot see these resources in LuaForce.get_item_production_statistics if they are mined by deconstructing a huge-rock. I can see them if they are mined from a regular mining patch.
I can see the deconstruction of the huge-rock in LuaForce.get_entity_build_count_statistics but I cannot see the mined resources there either.
I would expect all mined resources to appear in some statistics of LuaForce - not important where.
This is always reproducible. I am using space-age.
[2.0.15] Mining coal and stone from huge-rock does not show up in get_item_production_statistics
[2.0.15] Mining coal and stone from huge-rock does not show up in get_item_production_statistics
- Attachments
-
- factorio-current.log
- (31.85 KiB) Downloaded 34 times
Re: [2.0.15] Mining coal and stone from huge-rock does not show up in get_item_production_statistics
I found a probably related bug report [1] which is marked as not a bug, however the first reply states that "handcrafted production is not reflected in the stats, which is a bug".
[1] viewtopic.php?f=23&t=58487 [16.28] Production stats seem incorrect
Maybe this is not related, because it is something like "production of manual mining" and not "production of handcrafting". Also, "consumption of manual mining" is nicely reflected in the stats, and production of manual mining of ore patches is reflected in the stats as well.
So I still believe this is a bug in the current version - I just reproduced it in 2.0.20 build 80511.
[1] viewtopic.php?f=23&t=58487 [16.28] Production stats seem incorrect
Maybe this is not related, because it is something like "production of manual mining" and not "production of handcrafting". Also, "consumption of manual mining" is nicely reflected in the stats, and production of manual mining of ore patches is reflected in the stats as well.
So I still believe this is a bug in the current version - I just reproduced it in 2.0.20 build 80511.
Re: [2.0.15] Mining coal and stone from huge-rock does not show up in get_item_production_statistics
Drops from rocks (and Gleba's spoilage trees, and Fulgoran vaults, and other entities not affected by resource richness worldgen settings) are classified as loot, not as mining/crafting/otherwise ledger'able output, no?
Re: [2.0.15] Mining coal and stone from huge-rock does not show up in get_item_production_statistics
Thanks for the report. Items produced from mining an entity are not counted as production because they do not match the definition of production in Factorio. Production is only ever from mining resource entities or crafting something using other items. Rocks are not resource entities (same as trees) and so they don't show in the production statistics.
If you want to get ahold of me I'm almost always on Discord.