Page 1 of 1

Find out whether this recipe can be crafted by hand or not

Posted: Mon Mar 24, 2025 6:18 pm
by guevin1
Hello, I encountered such a problem that I can’t find a parameter that says whether it can be crafted or not in the recipes. Please tell me if there is such a parameter at all, or how else can I find it? Is it possible to craft it manually?

Re: Find out whether this recipe can be crafted by hand or not

Posted: Mon Mar 24, 2025 7:34 pm
by boskid
There may be multiple characters defined in game and each could have different crafting categories so you need to decide for which character you want to check recipes. As of right now there are 3 conditions that must be fulfilled for recipe to be considered able to craft manually:
1/ recipe must have a category that matches one of CharacterPrototype::crafting_categories of your character. (LuaRecipePrototype::category, LuaEntityProtototype::crafting_categories for character)
2/ recipe must not have any fluid ingredients or products (LuaRecipePrototype::ingredients, LuaRecipePrototype::products)
3/ recipe must not be disabled from hand crafting in LuaForce (LuaForce::get_hand_crafting_disabled_for_recipe).

Re: Find out whether this recipe can be crafted by hand or not

Posted: Mon Mar 24, 2025 7:54 pm
by guevin1
boskid wrote: Mon Mar 24, 2025 7:34 pm There may be multiple characters defined in game and each could have different crafting categories so you need to decide for which character you want to check recipes. As of right now there are 3 conditions that must be fulfilled for recipe to be considered able to craft manually:
1/ recipe must have a category that matches one of CharacterPrototype::crafting_categories of your character. (LuaRecipePrototype::category, LuaEntityProtototype::crafting_categories for character)
2/ recipe must not have any fluid ingredients or products (LuaRecipePrototype::ingredients, LuaRecipePrototype::products)
3/ recipe must not be disabled from hand crafting in LuaForce (LuaForce::get_hand_crafting_disabled_for_recipe).
What then to do with crafts like the uranium process or space age metal casting?