Page 1 of 1

[2.1] RecipePrototype::requires_ingredients_to_unlock_results

Posted: Tue Jun 23, 2026 2:16 pm
by BraveCaperCat
On the 2.1 docs, for the new property requires_ingredients_to_unlock_results, the recipe prototype page says that it's of type boolean yet the page also says that it has a default value of "Value of hidden". This doesn't make sense, as the boolean and string types are generally considered to be two separate things.

Re: [2.1] RecipePrototype::requires_ingredients_to_unlock_results

Posted: Tue Jun 23, 2026 2:19 pm
by boskid
Where does it say that `hidden` is a string? https://lua-api.factorio.com/2.1.7/prot ... tml#hidden clearly shows it as being boolean.

Re: [2.1] RecipePrototype::requires_ingredients_to_unlock_results

Posted: Tue Jun 23, 2026 3:14 pm
by BraveCaperCat
boskid wrote: Tue Jun 23, 2026 2:19 pm Where does it say that `hidden` is a string? https://lua-api.factorio.com/2.1.7/prot ... tml#hidden clearly shows it as being boolean.
I'm talking about the requires_ingredients_to_unlock_results property, which is a boolean as described on the page, but with a default value of hidden.
The same issue appears to be present on the hidden_in_factoriopedia property right below the hidden property on the page.

Re: [2.1] RecipePrototype::requires_ingredients_to_unlock_results

Posted: Tue Jun 23, 2026 3:18 pm
by Rseding91
"Default: Value of *hidden*" is not "Default: 'hidden'"

Re: [2.1] RecipePrototype::requires_ingredients_to_unlock_results

Posted: Wed Jun 24, 2026 9:27 am
by Therenas
Yeah what Rsed said, if it would be the literal string hidden, it'd be written as "hidden" with the quotes around it. If it's without those, it refers to the name of another member, and its value. I'll consider this solved.