[Genhis][2.0.23] recipe.results[].ignored_by_stats gets ignored when a different quality gets produced

Bugs that are actually features.
Quezler
Long Handed Inserter
Long Handed Inserter
Posts: 75
Joined: Fri Mar 25, 2016 6:37 pm
Contact:

[Genhis][2.0.23] recipe.results[].ignored_by_stats gets ignored when a different quality gets produced

Post by Quezler »

in my latest mod i wanted to hide an internal item from the production stats, so i marked it as ignored_by_stats = 1 on the recipe prototype,
however when the machine uses quality modules and the quality upgrades an instance of the higher quality is visible under production and the lower quality under consumption, the expected behavior is that the item _never_ shows up on either side of the chart.

Code: Select all

quality_holmium_solution_recipe.results = {
  {type = "item", name="holmium-solution-quality-based-productivity", amount = 1, ignored_by_stats = 1},
  {type = "fluid", name="holmium-solution", amount = 100},
}
to reproduce:

- install https://mods.factorio.com/mod/quality-h ... m-solution version 1.0.0 (the version number is important)
- place this blueprint in a fresh 50x50 world

Code: Select all

0eNqFVO1ymzAQfBf9ljKGgh38KpkOI8RBNBES1Uca6uHdewJCY1tO+Yfu2L3bXXEhjQowWqk9OV+IFEY7cn65ECd7zVU803wAcibOG8t7YJ7rNzJTInULH+SczTTR/GrUIMPAxCsMUnDFRsWRgZJfgSvpJ2xR0INuuZ2+gOXzT0pAe+klrGMsL1Otw9CARTb6yQAKhLdSMNBg+4nhAmA7LgBJRuMQweg4EKKyrKIEKVmBTE3oOrC1k38QJTvsT1zjhizfyaTupMZS3Mf5FMPpqVw58qdy2Wf9oHbgvdS9i40WBvMOdcCawmGhraWHAUsdVw4oWY/Xvf+JruFKNhilwANhQnTsRMlg2kWPDy68msi1MTd2GPsdWFY+RkNn5oREP3aJXGic54smjw3I50cJuEMuduQmqDe014FFdb7VPkPtE1AlTWb4HinPNqRDGuhI/5vvu+Gev0BS0kqLsV3qRVoKijERcowkW5l9kjmjwibw2lPfOJkY+XSf4TGiJyY9bpNmjxO8Qf3mmxNgBfKhosvNxDDjCffBwlWYuGcKON6bOV7vmPno6v7boeQdU79MUh7zqqiqsqjy52NxmOe/rJGLCw==
- wait till the quality modules do their thing and notice the item with the tech modifyer showing up on both sides of the graph

strigweasel pointed out the existance of 120132 that describes that this was intentionally added, but this prevents me from actually *ignoring* and item from the stats, and there is no item prototype flag or anything to blacklist an item from showing up in the production stats.
Attachments
Screenshot 2024-11-28 at 21.50.42.png
Screenshot 2024-11-28 at 21.50.42.png (493.37 KiB) Viewed 146 times
11-28-2024, 21-47-09.png
11-28-2024, 21-47-09.png (118.92 KiB) Viewed 146 times
Genhis
Factorio Staff
Factorio Staff
Posts: 694
Joined: Wed Dec 24, 2014 8:19 am
Contact:

Re: [Genhis][2.0.23] recipe.results[].ignored_by_stats gets ignored when a different quality gets produced

Post by Genhis »

Thanks for the report. This logic is done in the same way as products with probability which has the following documented behavior:
If ignored_by_stats is larger than the amount crafted (for instance due to probability) it will instead show as consumed.
Because of this, I think this is not a bug. Feel free to make a modding interface request on this topic.
Post Reply

Return to “Not a bug”