Hi there
Found another mod with troublesome barrels :-) https://mods.factorio.com/mod/Igrys
https://github.com/TheTaurunti/factorio-barrelfluidicons/blob/d6e18d44b645c63d57f80fafcfee58c184366228/data-updates.lua#L83 breaks since prototype_base is nil => Factorio exits when your setting "BarrelFluidIcons-fluid-icon-primary" is activated.
See their barrels here:
https://github.com/EgorexW/Igrys/blob/master/Scripts/Items/StrongBarrel.lua
I saw what you did to be compatible with other mods and tried it - when adding igrys-strong-barrel and igrys-strong-barrel-filled-magic-fluid to your NON_FLUID_BARRELS array in data-updates.lua, Factorio launches and it works.
I also looked into another mod I had installed and wondered how they do it - it's the same idea with trying to check the name strings: https://github.com/pla/barreling-group2/blob/main/data-final-fixes.lua, and there it doesn't work for the Igrys barrels, too.
Although, I will say, I have a number of other mods installed, all the others seem to follow the pattern you expect with naming the recipes relevant to your mod. I think I'll file a report at Igrys mod, maybe they can fix it and follow the kinda established convention... although I understand and like their idea of prefixing their items... can't have everything I guess.
Thanks for reading, would be lovely if you could add compatibility (or maybe the Igrys folks rename their barrels, who knows...).
(story time, irrelevant part)
- I made the mistake of thinking "but deciding on the item's name containing the string barrel, that's error-prone, there's got to be a better way, I'm a software engineer, we can do better", and I was in the mood for digging around and thought maybe something good comes out for the community
- After understanding that there's no safe way to identify the items and recipes and consulting ChatGPT whether it has some other ideas, in the end drifting into a philosophical discussion with it about humans and AIs and our perception of the world, meanwhile accepting its observation that I'm "trying to infer intent from data that's not semantically marked" (I love how that's put, credits ChatGPT), coming back after many hours and feeling like this guy https://www.reddit.com/r/ProgrammerHumor/comments/slik5/total_hours_wasted_here/ - may I suggest that you exclude the Igrys barrels, following the same path that you in your wisdom chose for other mods in the first place, and the error should disappear? :-))
(end of story time)