Tom's Byproducts


This mod enhances common recipes with valuable byproducts, encouraging intricate designs and circuit system use. Addressing the simplicity of base game outputs, it stays close to vanilla gameplay. Toggleable byproducts in settings allow customization and compatibility with other mods. Examples and uses include Slag for bricks or trace minerals, Plastic Waste for plastic/fuel, Spent Etchant for copper reclamation, Copper Sulfate for copper/sulfur/lubricant, and Plutonium for long-lasting fuel.

Content
1 year, 8 months ago
1.1
91
Fluids Manufacturing

g Error loading mods when combined with tom's byproducts

1 year, 7 months ago
(updated 1 year, 7 months ago)

Loading the game with aai-industry and toms-byproducts, I get the followig error:

   0.676 Error ModManager.cpp:1625: Failed to load mod "toms-byproducts": __toms-byproducts__/recipe_overrides.lua:23: attempt to get length of field 'results' (a nil value)
stack traceback:
    __toms-byproducts__/recipe_overrides.lua:23: in function 'add_byproduct'
    __toms-byproducts__/recipe_overrides.lua:131: in main chunk
    [C]: in function 'require'
    __toms-byproducts__/data-updates.lua:5: in main chunk

it seems, aai-industry leaves the military-science recipe in a state that is not what toms-byproducts expects - the recipe has neither result nor results. According to the API docs, that is valid, when the recipe lists its results in the normal and expensive attributes instead. toms-byproducts does not account for that.

Edit: title should mention aai-industry instead, sorry.

New response