Configurable Scrap Recycling

by Rykon_

Set the drop chance of every possible output of the Fulgoran scrap recycling recipe individually via startup settings.

Tweaks
a month ago
2.0 - 2.1
34
Owner:
Rykon_
Source:
https://github.com/Rykon00/configurab...
Homepage:
N/A
License:
MIT
Created:
2 months ago
Latest Version:
1.1.1 (a month ago)
Factorio version:
2.0 - 2.1
Downloaded by:
34 users

Makes Fulgora's scrap recycling probabilities fully configurable via mod settings, instead of the fixed vanilla values.

What it does

Adds one startup setting per scrap recycling output (csr-chance-<item>), each a 0-100% chance. The chance of each output is always exactly its setting.

Since Factorio 2.1 the vanilla recipe rolls once per scrap and gives at most one item (shared_probability ranges). The mod keeps that while all chances add up to 100% or less: each output gets a range as wide as its chance. Above 100% in total every output is rolled independently, so one scrap can yield several items (as in Factorio 2.0).

Defaults match vanilla (about 0.60 items per scrap on average):

  • Gear wheel: 20%
  • Solid fuel: 7%
  • Concrete: 6%
  • Ice: 5%
  • Steel plate: 4%
  • Battery: 4%
  • Stone: 4%
  • Advanced circuit: 3%
  • Copper cable: 3%
  • Processing unit: 2%
  • Low density structure: 1%
  • Holmium ore: 1%

Setting every chance to 0 is safe and simply results in no outputs from recycling.

Tested against the vanilla scrap-recycling recipe of Factorio 2.1.23 (Space Age): with the default settings the recipe stays exactly the vanilla one. Compatible with adjustable_recycler (different recipe category, no conflict).

Notes

  • A settings change requires a restart to take effect.
  • Requires Factorio 2.1 and Space Age. Version 1.0.0 is the last one for Factorio 2.0.