Molybdenum


A light overhaul of the oil chain: a distillation tower splits crude oil into four cuts that you clean over a molybdenum catalyst. Molybdenum and rhenium from your copper ore go into catalysts, molybdenum steel and superalloy.

Content
12 hours ago
2.1
35
Manufacturing

b Failed to load mod

a day ago

I've added this mod to my current mod selection, and got the following error messages:

Error 1:

  46.546 Error ModManager.cpp:1782: Failed to load mod "molybdenum": __molybdenum__/prototypes/graphics.lua:14: attempt to index local 'cover' (a boolean value)
stack traceback:
    __molybdenum__/prototypes/graphics.lua:14: in function 'pipe'
    __molybdenum__/integrations/core.lua:49: in function 'distillation'
    __molybdenum__/integrations/core.lua:213: in function 'apply'
    __molybdenum__/integrations/init.lua:4: in function 'apply'
    __molybdenum__/data-final-fixes.lua:11: in main chunk

It seems one of the mods I'm using added a non-table value to the pipe covers. I've locally fixed this issue by adding checks to the prototypes/graphics.lua starting on line 13 as follows, but you've been updating the mod often, and I can't keep up with fixing it every update, so I'm sharing:

  for _, cover in pairs(covers) do
    if type(cover) == "table" then
      for index = #(cover.layers or {}), 1, -1 do
        if cover.layers[index].draw_as_shadow then table.remove(cover.layers, index) end
      end
    end
  end

Error 2:

This error is similar as the one I shared for your Cadmium mod (https://mods.factorio.com/mod/cadmium/discussion/6acfbfccc80388c8d36c9ebd).
E.g. you're doing the following on line 86, without checking if result.amount isn't nill (I think a voiding / flare stack mod that outputs "none" causes this issue):

    if result.name == "lubricant" then result.amount = result.amount * 1.5 end

This same issue exists on line 98, 132.

Please let me know if you're able to implement any fixes, so I don't have to manually do it myself every update.

12 hours ago

Will take a look and will fix

12 hours ago

This should be fixed in the updated version. Please note that factorio 2.1.22 is the minimum version now

New response