Rigor Module


New type of module: Rigor modules. Rigor modules increase the probability of a recipe returning its most valuable product.

Content
12 hours ago
2.0
1.45K
Manufacturing
Owner:
thremtopod
Source:
https://gitlab.com/jfletcher94/factorio-mods
Homepage:
https://discord.gg/y7N623WuCP
License:
GNU LGPLv3
Created:
14 days ago
Latest Version:
0.2.5 (12 hours ago)
Factorio version:
2.0
Downloaded by:
1.45K users

Rigor Module

Compatibility Mode

You can enable "compatibility mode" in Rigor Module's mod settings to help with mod compatibility and clutter, especially with many mods installed. Compatibility mode disables rigor modules and the rigor effect for all recipes unless explicitly whitelisted by another mod.

At present, compatibility-mode-whitelisted recipes come from:

  • Vanilla Factorio: Space Age (configurable in Rigor Module's mod settings).
  • Planet Crucible.

Rigor

Rigor is a new module effect, provided by rigor modules. Rigor increases the odds a recipe will produce its most valuable output. Rigor can only affect a product with a probabilistic output; for example, rigor increases the odds of getting uranium-235 from uranium processing, and holmium ore from scrap recycling.

Rigor modules scale from +30% rigor for common-quality tier 1 modules, to +200% rigor for legendary-quality tier 3 modules. Filling a recycler with tier 1 commons will boost holmium ore yield from 1% to 2.22%. Filling it with tier 3 legendaries will boost the yield to 8.33%.

Notes

  • Rigor only affects a single output per recipe.
  • Rigor cannot be used on asteroid processing or recycling recipes (except for scrap-recycling).
  • Rigor increases the odds of a recipe producing the given output. To convert to probability: for probability p, odds = p/(1-p); for probability p and rigor r, probability is scaled using the formula: rp/(rp - p + 1).
  • I designed rigor modules for my modded planet, Crucible, and Crucible's recipes are designed to utilize rigor. However, it also works as a standalone mod.

Compatibility

If you encounter compatibility issues with other mods, you can try enabling compatibility mode in the mod settings (also, please let me know).

Rigor modules should generally integrate smoothly with other mods; however, that does not mean they are balanced!

Tested compatible and balanced mods:

Mods with compatibility adjustments:

  • Voidcraft: Void recipes do not accept rigor modules.

Known Issues

Works in Progress:

  • Multiplayer is not yet well-tested.
  • Rigor modules can cause crafting machines to not be valid for fast-replacing.
  • Crafting machines with rigor modules inserted don't work with the upgrade planner.
  • The bonuses GUI is cluttered with copies of crafting machines.

Fix Not Feasible or Not Planned:

  • Due to how this mod has to be implemented, a crafting machine's total rigor has to be rounded to the nearest 25%.
  • The mod can behave inconsistently in editor mode.

For Other Modders

  • I've done my best to make this mod as robust and easily compatible as possible.
  • This mod should be able to handle everything automatically; there's also an API for customization.
  • For recipes with multiple probabilistic products, you can specify which product should be affected by rigor.
  • You can exclude recipes and recipe categories from using rigor modules.
  • See prototypes/mod-data.lua for details on how to configure and customize compatibility.