Ingredient_Scrap

by yokmp

Automatically adds scrap byproducts to recipes based on their ingredients and lets you recycle them back into useful materials. Supports recipe-chain resolving, mixed scrap fallbacks, fluid-aware material matching, and compatibility with Space Age, Quality, Krastorio 2, Bob's Mods, and Angel's Mods (so far).

Content
9 days ago
0.18 - 2.1
378
Mining Fluids Manufacturing

b Runtime crash

10 days ago

Hi, I wanted to try your mod, but it crashes at runtime, regardless of what other mods are installed. I am on the 2.1 experimental branch of Factorio (to be exact, 2.1.20). The error message I get is this:

The mod Ingredient Scrap (2.1.1) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event Ingredient_Scrap::on_nth_tick(120)
__Ingredient_Scrap__/control.lua:132: attempt to call global 'is_debug_runtime_enabled' (a nil value)
stack traceback:
    __Ingredient_Scrap__/control.lua:132: in function 'flush_pending_debug_inventory'
    __Ingredient_Scrap__/control.lua:157: in function <__Ingredient_Scrap__/control.lua:156>
9 days ago

seems like i forgot to include the flush_pending_debug_inventory() function ino the debug region

9 days ago

Just tried v2.1.2 and it seems to work at first glance. Will try out the mod properly later. Thank you!

New response