Parallel Module


A powerful new module: Parallel modules cause machines to run multiple copies of their recipe simultaneously, at the cost of a heavy speed penalty.

Content
a day ago
2.1
25
Manufacturing
Owner:
notnotmelon
Source:
https://github.com/notnotmelon/parall...
Homepage:
https://github.com/notnotmelon/parall...
License:
GNU LGPLv3
Created:
2 days ago
Latest Version:
1.0.3 (a day ago)
Factorio version:
2.1
Downloaded by:
25 users


Parallel

Parallel is a powerful new module effect provided by parallel modules. Parallel causes recipes to run multiple copies of their recipe at the same time. For example, a machine crafting iron gears with +300% parallel will craft four gears each cycle using four times the iron.

This comes at a massive speed penalty, meaning most setups will need a careful balance between speed and parallel for maximum effect. Unlike other module penalties, this speed penalty scales with quality. A legendary tier 3 parallel module will reduce speed by -330%.

Parallel modules cannot be used in labs, beacons, mining drills, the recycler, or agricultural towers.


Recipe limit

The parallel module works by creating many hidden recipe prototypes in the engine. You can expect that the number of recipes in your save will increase by roughly 3-5x. Unfortunately, the Factorio engine cannot support more than 65536 recipes loaded at the same time.

If you are near the limit, this mod prints a warning in the chat. It will also stop adding parallel recipes and start banning parallel modules from some machines until you are under the limit again. This ensures that the game will at least always load.
Additionally, there are several startup settings to reduce the number of recipes added by this mod.

For context, with the full pY modpack and parallel module installed there are 49523 recipes on default parallel settings.


Compatibility

This mod has extensive compatibility with the rest of the Factorio ecosystem.

  • Space age: Full compatibility. Module t3 is unlocked on Aquilo with cryogenic science.
  • Space exploration: Full compatibility. Modules up to t9 are added in the Space Exploration art style. Recipes are integrated into the naquium chain.
  • Secretas & Frozeta: Full compatibility. Module t4 is added and crafted from Frozeta gold.
  • Bobs, Angels, Seablock: Partial compatibility. Module graphics do not match with the Bobs Module graphics style. Otherwise fully functional.
  • Pyanodons: Full compatibility.
  • Ultracube: Not compatible.
  • Tier 4 Modules: Full compatibility. t4 parallel module is added, requiring quantum processors.
  • Krastorio 2: Full compatibility.
  • Rigor Module: Partial compatibility. You cannot use parallel modules and rigor modules in the same machine. Otherwise fully functional.

Additionally, this mod will attempt to detect changes to the speed module recipes and apply those changes to the parallel module recipe.


For modders

The API for this mod is designed to be intuitive. In general any speed, productivity, or effectivity prototype property can be replaced with a parallel property and parallel modules will use that definition.

You cannot allow parallel modules within labs, beacons, agricultural towers, or mining drills. This is because the module effect is handled completely by runtime scripting. If you require this feature, please submit a pull request.

For more details, see API.md


Credits

This mod is largely inspired by Rigor Module.
Huge thanks for thremtopod for pioneering this space!