Amator Phasma's Recycling

This is a simple modification that adds up to two by-products to the intermediate products: scrap metal with a probability of 5% for one or 2.5% for two scrap metal types. This scrap metal can be collected and later processed in a recycler and then smelted into plates again. It's very simple, but it adds a small layer of complexity to your transport-belt layout. In the early game you can easily solve this with splitters or filter-inserters. Later in high-production areas, you have a dedicated transport-belt.
a day ago
0.17
1406
Owner: AmatorPhasma
Source: N/A
Homepage: https://forums.factorio.com/viewtopic...
License: GNU GPLv3
Created: a month ago
Latest Version: 0.17.21 (a day ago)
Factorio version: 0.17
Downloaded: 1406 times

Amator Phasma's Recycling

Languages:
English, Deutsch


About this mod:

This is a simple modification that adds up to two by-products to the intermediate products: scrap metal with a probability of 5% for one or 2.5% for two scrap metal types. This scrap metal can be collected and later processed in a recycler and then smelted into plates again.

It's very simple, but it adds a small layer of complexity to your transport-belt layout. In the early game you can easily solve this with splitters or filter-inserters. Later in high-production areas, you have a dedicated transport-belt.

This mod supports all Bob and Angel metals if you habe one or both of them.

With version 0.17.20 of this mod the recipes are steady state: this means I will not change the recipes or technology any further, only for bug fixing, for balance purpose and/or for compatibillity with other mods.

This mod is tested with vanilla factorio, with Bob's and/or Angel's mods.

For Modders:

You can easily add scrap metal to products in the data-updates phase with:
apm.lib.utils.recycling.scrap.add(recipe_name, scrap_metal, probability)
- Example: apm.lib.utils.recycling.scrap.add('pipe', 'iron', 0.05)
- Example: apm.lib.utils.recycling.scrap.add('rocket-engine', 'tungsten', 0.05)

or delete the scrap metal output with:
apm.lib.utils.recycling.scrap.remove(recipe_name)
- Example: apm.lib.utils.recycling.scrap.add('pipe', 'iron', 0.05)

To define your one scrap metal you need a bit more:
apm.lib.utils.recycling.metal.add(name, tint, output, output_category, wight, output_probability, t_catalysts, t_output_byproducts, b_own_tech, t_tech_prerequisites)
- Example: apm.lib.utils.recycling.metal.add('iron', {r= 0.75, g = 0.76, b = 0.77}, 'iron-plate', nil, 1, 0.25, nil, nil, false, nil)
- Example: apm.lib.utils.recycling.metal.add('tin', {r= 0.33, g = 0.49, b = 0.36}, 'liquid-molten-tin', 'induction-smelting', 2, 0.25, nil, nil, true, {'angels-tin-smelting-1'})

If you add an Metal thats not defines in my ./prototypes/recycling/generate.lua you need to add an local string for translations:
- Example: apm_metal_type_iron=iron
- Example: apm_metal_type_copper=Kupfer
apm_metal_type_(your_name)

If you want look in the code: you need go into my library mod to ./apm_lib_0.17.37.zip/lib/utils/recycling.lua

Important: You have to create the metal type BEFORE you can add scrap metal to a recipe, this means you should prepare the load order to load your data-updates phase after this mod, to use the "defaults" defined in ./prototypes/recycling/generate.lua

Known problem:

Future?

  • nothing serious at the moment...

Problems?

Report them on the forum thread or here on this site under disscussion.

Ideas?

Please tell me on the forum thread.

Dependencies:

Amator Phasma's Library

Known incompatibility:

Tested compatibility:

AAI Industry
ScienceCostTweaker Mod (mexmer)
Angel's Addons - Warehouses by Arch666Angel
Angel's Addons - Pressure Tanks
Angel's Infinite Ores by Arch666Angel
Angel's Petro Chemical Processing by Arch666Angel
Angel's Refining by Arch666Angel
Angel's Smelting by Arch666Angel
Bob's Assembling machines by Bobingabout
Bob's Electronicsby Bobingabout
Bob's Enemies by Bobingabout
Bob's Adjustable Inserters by Bobingabout
Bob's Functions Library mod by Bobingabout
Bob's Logistics mod by Bobingabout
Bob's Mining by Bobingabout
Bob's Modules by Bobingabout
Bob's Ores by Bobingabout
Bob's Metals, Chemicals and Intermediates by Bobingabout
Bob's Power by Bobingabout
Bob's Revamp mod by Bobingabout
Bob's Tech by Bobingabout
Bob's Warfare by Bobingabout

My thread in the forum.