Production Rates Calculator Extreme

by SWeini

Almighty rate calculator, the only one you'll ever need.

Utilities
a month ago
2.0 - 2.1
4.10K

b Error with a specific advanced oil cracking blueprint

a month ago

Hi,

Just got this error while attempting to calculate production rates of this blueprint:
https://www.factoriocodex.com/blueprints/267

Error message:
The mod Production Rates Calculator Extreme (0.4.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event sw-rates-calc-extreme::on_player_selected_area (ID 58)
sw-rates-lib/scripts/generated-temperatures.lua:125: attempt to index local 'fluid' (a nil value)
stack traceback:
sw-rates-lib/scripts/generated-temperatures.lua:125: in function 'get_generated_fluid_temperatures'
sw-rates-lib/configurations/pump.lua:16: in function 'analyze_flow'
sw-rates-lib/scripts/configuration.lua:662: in function 'analyze_flow'
sw-rates-lib/scripts/flow-fluid.lua:157: in function 'create_fluid_segment'
sw-rates-lib/scripts/flow-analyzer.lua:454: in function 'trace_backwards'
sw-rates-lib/scripts/flow-analyzer.lua:627: in function 'analyze_full'
sw-rates-calc-extreme/scripts/sheet.lua:87: in function 'build_from_entities'
sw-rates-calc-extreme/control.lua:48: in function <sw-rates-calc-extreme/control.lua:19>

a month ago

I couldn't reproduce with Factorio 2.1.10 SpaceAge + PRCE mod. Can you provide a savegame or at least a full modlist. Also please provide this information:
- Was this blueprint ghosts or fully built or a mix?
- Was the blueprint connected to something else or completely isolated?
- What exactly did you select for rate calculation?

a month ago
(updated a month ago)

Sorry for the lack of info in my original post.

Here's my modlist: https://www.pastebin.fr/019f621f-d43b-71fc-9cdf-c5774ad40847
And here's my save (link expires in 7 days) : https://fromsmash.com/2026-07-14-Crash-PRCE

  • Fully built,
  • Yes, the 3 oil inputs of the blueprint are connected to the nearby oil pumps to the east; the water input is also connected; the lubricant + sulfuric acid + petroleum gas outputs are also connected to pipes going to the south, and to other pumps on the way too,
  • Everything from the blueprint with maybe the water pump to the north.

However, I noticed PRCE is crashing when selecting the entire fully built blueprint WHILE its input and output pumps are connected to something...
No crash when doing the same while these pumps are not connected to the blueprint's content.

Hope this helps.
Thank you!

a month ago
(updated a month ago)

I think I found the issue from looking at the code and I could reproduce the crash with a much simpler case. I have released a new version of the library mod, please update and report back whether the bug is fixed.

a month ago

I can confirm the issue is solved now, thanks a lot!

New response