[Solved] Use of LuaRecipePrototype::hidden_from_player_crafting?

Place to get help with not working mods / modding interface.
Post Reply
Schallfalke
Fast Inserter
Fast Inserter
Posts: 162
Joined: Sun Oct 28, 2018 7:57 am
Contact:

[Solved] Use of LuaRecipePrototype::hidden_from_player_crafting?

Post by Schallfalke »

0.17.57 has introduced LuaRecipePrototype::hidden_from_player_crafting.
What does it do actually?

I set this flag = true to some recipes in my mod.
I expected those recipes will be hidden by "E" key player crafting GUI, but still selectable in assembling machines.

BUT I have not found it to be of any effects. Those recipes still show on player crafting GUI and clickable.
Last edited by Schallfalke on Tue Jul 23, 2019 7:52 pm, edited 1 time in total.

Bilka
Factorio Staff
Factorio Staff
Posts: 3123
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [>= 0.17.57] Use of LuaRecipePrototype::hidden_from_player_crafting?

Post by Bilka »

How did you set it?
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Schallfalke
Fast Inserter
Fast Inserter
Posts: 162
Joined: Sun Oct 28, 2018 7:57 am
Contact:

Re: [>= 0.17.57] Use of LuaRecipePrototype::hidden_from_player_crafting?

Post by Schallfalke »

In my Schall Alien Loot mod, I modify the recipe prototypes like:

Code: Select all

  {
    type = "recipe",
    name = "coal-from-alien-ore-1",
    icons = { {icon = "__base__/graphics/icons/mip/coal.png"},
              {icon = "__SchallAlienLoot__/graphics/icons/from-alien-ore-1.png"} },
    icon_size = 64,
    icon_mipmaps = 4,
    order = "a[coal]-1[from-alien-ore-1]",
    enabled = true,
    category = "advanced-crafting",
    energy_required = 5,
    ingredients = {{ "alien-ore-1", 1}},
    result = "coal",
    hidden_from_player_crafting = true,  <------------
    allow_decomposition = false
  },

Bilka
Factorio Staff
Factorio Staff
Posts: 3123
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: [>= 0.17.57] Use of LuaRecipePrototype::hidden_from_player_crafting?

Post by Bilka »

The property is called hide_from_player_crafting in the data stage: https://wiki.factorio.com/Prototype/Rec ... r_crafting

Recommendation: launch factorio with the --check-unused-prototype-data command line parameter and it will log properties that the game doesn't use, such as that.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.


Post Reply

Return to “Modding help”