Deadlock Stacked Recipes


This mod makes recipes using stacked ingredients to produce stacked output. The reason for this mod is I have found some mod packs can end up with major speed boost that even loaders are unable to provide the resources fast enough

7 months ago
0.18 - 1.1
6.98K

b Disappeared science/module/other recipes

2 years ago

When I upgraded this mod today (to v1.4.3), my on-going game said a pile of recipes were removed.
- Any Science
- Any Module
- A few others like grenades.

I reverted back to v1.3.5 and all was good again.

2 years ago
(updated 2 years ago)

Same here. So I looked at change log and the only record with word "science" was:
Version: 0.2.2
Date: 2020-02-22
Features:
- Added more vanilla recipes, enough that science packs can all be crafted in stacks

So it looks like a bug. Then I looked into code and found it. The fix was easy:

  1. open file /utils/deadlock.lua
  2. locate local function format(ingredient, result_count)
  3. just before this function put the following code:
    local item_types = {
    "item",
    "fluid",
    "ammo",
    "tool",
    "module",
    "capsule",
    "gun",
    "repair-tool",
    "armor",
    "rail-planner",
    "item-with-entity-data",
    }

local function find_item(name)
for _, t in ipairs(item_types) do
local protos = data.raw[t]
local proto = protos and protos[name]
if proto then return proto end
end
end
4. in the function local function format(ingredient, result_count) locate the line:
local item = data.raw.item[ingredient]
and replace it with:
local item = find_item(ingredient)

and enjoy ...

2 years ago

@hnougher can I get a save so I can test this fix

2 years ago

Should have been fixed in 1.4.4

2 years ago

Thanks. It is working good now.