[2.0.76] Several inconsistent behaviours for QualityPrototype.draw_sprite_by_default
Posted: Sat Mar 21, 2026 7:58 am
When enabling rendering of the default/null/"normal" qualityprototype's icon / disabling rendering of other, non-"normal" QualityPrototype instances, I've collated quite a few odd behaviours:
Here's a mod-file that reproduces, as minimal as I could make it; and a save-file using that mod, same as the screenshots: Apologies if this should have been multiple reports - each individual behaviour seemed tiny; they all seem interrelated; and creating separate reproduction-mods/savefiles would have been prohibitive. (Also for the huge images, I couldn't figure out how to resize [attachment] in BBcode.
)
Code: Select all
data.raw.quality.normal.draw_sprite_by_default = true
data.raw.quality.customquality.draw_sprite_by_default = false
- Enabling draw_sprite_by_default for "normal" will make the "quality-comparison-mode: any quality" option in filters/icon-selectors/comparators/etc, appear with a miniature 'normal quality' icon underneath it:
- If additional custom qualities are present, so that the widget switches from the 5-select row to a drop-down, this happens to every quality icon in the drop-down:
- While enabling draw_sprite_by_default for "normal" will make its tag appear on entities on the ground, and in alt-mode filter-icons, it still doesn't appear for items on belts, nor for items in chests, the filter-list in the chest GUI, nor the hover-listing on the right side of the screen in-world:
- However, the inverse is true for non-"normal" qualities - creating a custom quality, then disabling draw_sprite_by_default, causes the quality-icon to disappear everywhere except belts:
- Indicators on buildings placed in the world, too, are unaffected by the setting: all non-null qualities are drawn in-world; and "normal" is never drawn in-world:
Here's a mod-file that reproduces, as minimal as I could make it; and a save-file using that mod, same as the screenshots: Apologies if this should have been multiple reports - each individual behaviour seemed tiny; they all seem interrelated; and creating separate reproduction-mods/savefiles would have been prohibitive. (Also for the huge images, I couldn't figure out how to resize [attachment] in BBcode.