Factorio-Access / FactorioAccess

An accessibility mod for the video game Factorio, making the game accessible to the blind and visually impaired.
Other
14 stars 8 forks source link

Crafting list is flooded with modded recipes that are not craftable by hand #150

Open LevFendi opened 1 month ago

LevFendi commented 1 month ago

Other mods add custom machine recipes to the game, sometimes hundreds of them. These recipes cannot be crafted by hand but they end up on the player crafting menu anyway, especially if they are categorized the same as vanilla recipes. Install Flare Stack for an extreme example with its incinerator recipes.

This can be fixed by running this check for every recipe when loading the player crafting menu. Doing so will perhaps remove a few vanilla recipes like the "engine unit" or fluid recipes, depending on how the checks are done. Different checks can be used perhaps. Some exploring is needed.

EphDoering commented 3 weeks ago

https://lua-api.factorio.com/latest/classes/LuaRecipePrototype.html#hidden_from_player_crafting

ahicks92 commented 3 weeks ago

Quick look at vanilla shows that engine unit uses none of the hidden properties. We probably need both though: hidden and hidden_from_player (former also hides from crafting machine menus).