I'm working on some changes to a project I have where I'm extracting bulk amounts of data (on intervals) from a scenario designed to test a blueprint. The implementation of statistics for quality seems to be lacking, as LuaFlowStatistics.output_counts and LuaFlowStatistics.input_counts don't really have any quality variants or options. They just provide a sum of all quality types for a given item.
I would love to have 2 new LuaFlowStatistics attributes called output_quality_counts/input_quality_counts which could provide a grouped object as such:
{
"normal": /*filtered output_counts/input_counts for only normal quality*/
"uncommon": /*filtered output_counts/input_counts for only uncommon quality*/
etc etc
}
Otherwise, I'm looking at needing to call get_output_count hundreds of times based on a specified list of items+qualities I need to track. I'm really hoping I don't need to do some hacky solution like that - I know this is niche but would help me out significantly.
TLDR: Can't update https://github.com/CharacterOverflow/fa ... andbox.lua to extract quality statistics without significant looping over get_output_count() and get_input_count().
Lua Request - LuaFlowStatistics output_counts/input_counts needs quality equivalents.
-
- Manual Inserter
- Posts: 2
- Joined: Wed Feb 21, 2024 2:12 pm
- Contact:
Re: Lua Request - LuaFlowStatistics output_counts/input_counts needs quality equivalents.
Ok, I've updated added input_quality_counts, output_quality_counts, and storage_quality_counts read to LuaFlowStatistics for 2.1.
If you want to get ahold of me I'm almost always on Discord.