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

4 months ago
0.18 - 1.1
7.60K

b Crash

3 years ago
(updated 3 years ago)

Recent crash when updating a number of mods in this pack:

  98.334 Script @__deadlock_stacked_recipes__/data-final-fixes.lua:9: DSR___START,DensityOverride
  98.383 Error ModManager.cpp:1555: Failed to load mod "deadlock_stacked_recipes": __deadlock_stacked_recipes__/utils/deadlock.lua:274: attempt to index field 'localised_name' (a nil value)
stack traceback:
    __deadlock_stacked_recipes__/utils/deadlock.lua:274: in function 'DensityOverride'
    __deadlock_stacked_recipes__/data-final-fixes.lua:10: in main chunk
3 years ago
(updated 3 years ago)

Did a touch of debugging, found out that of the indicated line of data.raw.item[k].localised_name[3] = deadlock_stack_size that it crashes on, the data.raw.item[k] is:

{
  flags = {
    "hidden"
  },
  icon = "__logicarts__/graphics/sticker-icon.png",
  icon_size = 32,
  localised_description = {
    "description.stack-size",
    "1"
  },
  name = "logicarts-item-deadlock-stack-empty-barrel",
  order = "logicarts-z",
  stack_size = 1,
  type = "item"
}

So it's caused by the logicarts mod, which has no localised_name, only a localised_description, and even its localised_description has only two entries, not 3, so it seems like that line just needs a nil check or two since it is accepted by the engine.

3 years ago

Try 1.2.2 ... I dont know enough about "logicarts" to really test it