[2.1] RecipePrototype::requires_ingredients_to_unlock_results

User avatar
BraveCaperCat
Filter Inserter
Filter Inserter
Posts: 520
Joined: Mon Jan 15, 2024 10:10 pm
Contact:

[2.1] RecipePrototype::requires_ingredients_to_unlock_results

Post 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.
If you want to see the mods I've made, press one. If you need me to update a mod to 2.0, press two. If you're looking for QA, press three. If you've been waiting over 1 and a half years for Digital Age, bad luck.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4651
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.1] RecipePrototype::requires_ingredients_to_unlock_results

Post 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.
User avatar
BraveCaperCat
Filter Inserter
Filter Inserter
Posts: 520
Joined: Mon Jan 15, 2024 10:10 pm
Contact:

Re: [2.1] RecipePrototype::requires_ingredients_to_unlock_results

Post 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.
If you want to see the mods I've made, press one. If you need me to update a mod to 2.0, press two. If you're looking for QA, press three. If you've been waiting over 1 and a half years for Digital Age, bad luck.
Rseding91
Factorio Staff
Factorio Staff
Posts: 17091
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.1] RecipePrototype::requires_ingredients_to_unlock_results

Post by Rseding91 »

"Default: Value of *hidden*" is not "Default: 'hidden'"
If you want to get ahold of me I'm almost always on Discord.
User avatar
Therenas
Factorio Staff
Factorio Staff
Posts: 346
Joined: Tue Dec 11, 2018 2:10 pm
Contact:

Re: [2.1] RecipePrototype::requires_ingredients_to_unlock_results

Post 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.
Post Reply

Return to “Resolved Requests”