ptx0's Very Long Handed Inserter

by ptx0

Small mod that adds a new inserter with a 6 tile reach.

9 months ago
1.1 - 2.0
483

b error loading mod

7 months ago

this mod doesn't seem to be compatible with the space age dlc's quality addon, when i start the game with this and quality on then it says quality has to be disabled, heres the error:

"Failed to load mods: core/lualib/util.lua:803: Recipe has no results: very-long-handed-inserter
stack traceback:
[C]: in function 'error'
core/lualib/util.lua:803: in function 'normalize_recipe_products'
quality/prototypes/recycling.lua:78: in function 'add_recipe_values'
quality/prototypes/recycling.lua:204: in function 'generate_recycling_recipe'
quality/data-updates.lua:5: in main chunk

Mods to be disabled:
• quality (2.0.32)"

2 months ago

Factorio 2.0 has slight difference to how it accepts recipes for quality, we need a table, you can open data.lua and on line 18 I think you have the recipe, you can update it to this and it will work:
{
type = "recipe",
name = "very-long-handed-inserter",
enabled = false,
energy_required = 0.5, -- optional but recommended
ingredients = {
{ type = "item", name = "iron-stick", amount = 4 },
{ type = "item", name = "iron-gear-wheel", amount = 3 },
{ type = "item", name = "long-handed-inserter", amount = 1 },
},
results = {
{ type = "item", name = "very-long-handed-inserter", amount = 1 }
}
},
Difference from original recipe - ingredients are a table, "result" changed to "results" and is a table.

New response