Lua Request - LuaFlowStatistics output_counts/input_counts needs quality equivalents.

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
CharacterOverflow
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Feb 21, 2024 2:12 pm
Contact:

Lua Request - LuaFlowStatistics output_counts/input_counts needs quality equivalents.

Post by CharacterOverflow »

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

Return to “Modding interface requests”