Deadlock's Stacking Beltboxes & Compact Loaders


Adds minimalist 1x1 loaders and stacking beltboxes for 5x belt compression for ores, plates and some intermediate products

Content
2 years ago
0.17 - 1.1
90.8K
Logistics

b Inherit item localised_name if present

4 years ago
(updated 4 years ago)

In your "create_stack.lua" file you have a four places you set the "localised_name" with a deadlock version.

This is expecting the original item name to follow a naming standard of ("item-name."..item_name). This is not alway the case, DyWorld for example uses nested "localised_name"'s to build up the final name.

localised_name = {
    "looped-name.ore",
    {
      "looped-name.tin"
    }
  }

Could you update the code to first check the source item has a declared "localised_name" and use that instead of your naming convention. EG

local function get_localised_name(item_name)
    if data.raw.item[item_name] and data.raw.item[item_name].localised_name then
        return data.raw.item[item_name].localised_name
    else
        return {"item-name."..item_name}
    end
end

Then where you have the the localised_name being set do it like this

    localised_name = {"item-name.deadlock-stacking-stack", get_localised_name(item_name), stack_size},
4 years ago

Released, thanks again!

New response