[2.0.15] Mining coal and stone from huge-rock does not show up in get_item_production_statistics

Bugs that are actually features.
_Peter_
Inserter
Inserter
Posts: 25
Joined: Wed Aug 17, 2016 7:50 pm
Contact:

[2.0.15] Mining coal and stone from huge-rock does not show up in get_item_production_statistics

Post by _Peter_ »

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.
Attachments
factorio-current.log
(31.85 KiB) Downloaded 34 times
_Peter_
Inserter
Inserter
Posts: 25
Joined: Wed Aug 17, 2016 7:50 pm
Contact:

Re: [2.0.15] Mining coal and stone from huge-rock does not show up in get_item_production_statistics

Post by _Peter_ »

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.
EustaceCS
Filter Inserter
Filter Inserter
Posts: 285
Joined: Tue Dec 15, 2020 5:41 am
Contact:

Re: [2.0.15] Mining coal and stone from huge-rock does not show up in get_item_production_statistics

Post by EustaceCS »

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?
Rseding91
Factorio Staff
Factorio Staff
Posts: 15784
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.15] Mining coal and stone from huge-rock does not show up in get_item_production_statistics

Post by Rseding91 »

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.
Post Reply

Return to “Not a bug”