Toxic Waste


Every recipe now also produces 1 additional Scrap which you must sequester. Be careful not to turn your base into a toxic waste dump because only 1 thing can purify a Sacrifice Zone- fresh blood!

Overhaul
2 years ago
1.1
182

g Compatibility

3 years ago

So would it work with with all major mods that add recipes? (Like Bobs, angels, krastorio2 ... )

3 years ago

I can make no promises at the moment, as I have seen cross-compatibility issues with other mods. HOWEVER, I don't think it's insurmountable. It's my goal that EVERY physical recipe, vanilla or mod, produces +1 Scrap. (Someday, fluids recipes will produce similar Sludge)

3 years ago
(updated 3 years ago)

It's my goal that EVERY physical recipe, vanilla or mod, produces +1 Scrap. (Someday, fluids recipes will produce similar Sludge)

Technically, that shouldn't be too hard: Just loop over data.raw.recipe in data-updates.lua or data-final-fixes.lua and add your scrap to their results. However, there's a catch.

While I like the idea that you can't produce things without consequences, I would limit that to recipes that actually have recipe.result or recipe.results. In Bio Industries, for example, we have recipes that produce absolutely nothing -- but while the machines crafting them are running, they create negative pollution (i.e., they absorb it). Letting such recipes create scrap would be entirely contrary to the purpose of these recipes: to reduce pollution.

I also wonder if the production of seeds, seedlings, and trees, of biomass, or of burning wood/woodpulp to charcoal (and coal etc. after more advanced research) should produce scrap. The ingredients are naturally grown; adding scrap makes sense for things that have ingredients made from processing ores (metal plates, steel, copper, modded ores etc.).

Perhaps you could add a way for other mods to blacklist their recipes with yours? All you can do is making wild guesses, at best, simply because it is impossible to know about every recipe created or modified by other mods. The authors of those mods will know, however, whether adding scrap to their recipes' output is reasonable.

3 years ago
(updated 3 years ago)

Technically, that shouldn't be too hard: Just loop over data.raw.recipe in data-updates.lua or data-final-fixes.lua and add your scrap to their results.

Yes, this how it is accomplished.

While I like the idea that you can't produce things without consequences, I would limit that to recipes that actually have recipe.result or recipe.results.

I agree, recipes without results should not make scrap. However, the air filtering mods I use require air-filters and output used air-filters, so I for my purposes this is not true. But for other recipes without results, yes, I can make that change.

I think I can add support for blacklisting recipes. It's against the spirit of the mod but if it encourages more use, then I am for it.

3 years ago

Hey thanks for the answers!
So if i understand correctly, yeah it overrides the recipe and produces a scrap even for mods. (aside some possible cross-compatibility issues) Is this correct?

I think I can add support for blacklisting recipes. It's against the spirit of the mod but if it encourages more use, then I am for it.

I do argee that it's against the spirit of the mod. However I think it would be good for certain mods and probably will encourage more use. ;)

3 years ago

I agree, recipes without results should not make scrap. However, the air filtering mods I use require air-filters and output used air-filters, so I for my purposes this is not true. But for other recipes without results, yes, I can make that change.

Our air-filtering machines are disguised as gardens, with trees inside. They just need to be fed fertilizer and water, so lore-wise scrap really doesn't make sense there. :-)

I think I can add support for blacklisting recipes. It's against the spirit of the mod but if it encourages more use, then I am for it.

Thanks, that would be great!

3 years ago

Thank you for your feedback.

Please post mods and recipes which you would like to see un-scrap-ified while I come up with a strategy that supports all these cases.

New response