Transport Drones

by Klonan

Adds transport drones and transport depots

Content
11 months ago
0.18 - 1.1
77.4K
Logistics

i hide_from_player_crafting?

3 years ago
(updated 3 years ago)

hide_from_player_crafting should be hidden_from_player_crafting, shouldn't it?

Excerpt from Transport_Drones_1.0.4\data\make_request_recipes.lua:

local make_recipe = function(item)
if not item then return end
if not item.name then
return
end
if util.has_flag(item, "not-stackable") or util.has_flag(item, "hidden") then return end
local recipe =
{
type = "recipe",
name = "request-"..item.name,
icon = item.dark_background_icon or item.icon,
icon_size = item.icon_size,
icons = item.icons,
ingredients =
{
{type = "item", name = "transport-drone", amount = 1},
{type = "fluid", name = fuel, amount = 5000}
},
results =
{
{type = "item", name = item.name, amount = 65000, show_details_in_recipe_tooltip = false},
{type = "item", name = item.name, amount = 65000, show_details_in_recipe_tooltip = false},
{type = "item", name = item.name, amount = 65000, show_details_in_recipe_tooltip = false},
{type = "item", name = item.name, amount = 65000, show_details_in_recipe_tooltip = false},
{type = "item", name = item.name, amount = 65000, show_details_in_recipe_tooltip = false},
{type = "item", name = item.name, amount = 65000, show_details_in_recipe_tooltip = false},
{type = "item", name = item.name, amount = 65000, show_details_in_recipe_tooltip = false},
},
category = category,
order = item.order,
subgroup = get_subgroup(item),
overload_multiplier = 100,
hide_from_player_crafting = true,
main_product = item.name,
allow_decomposition = false,
allow_as_intermediate = false,
allow_intermediates = true,
allow_inserter_overload = false,
energy_required = 2 ^ 50
}
data:extend{recipe}
end

3 years ago
(updated 3 years ago)

hide_from_player_crafting is for recipes during the data stage, while hidden_from_player_crafting is part of LuaRecipePrototype (edit:corrected) in control stage. This code looks to be from data stage so it is correct.

3 years ago

So than in control stage I can use hidden_from_player_crafting to filter it?
Thanks.
Where is this documented?

New response