[2.0.55] Heavy oil output per second estimation of coal liquefaction is incorrect when using productivity

Bugs that are actually features.
fwyrl
Long Handed Inserter
Long Handed Inserter
Posts: 55
Joined: Fri Jul 01, 2016 10:54 pm
Contact:

[2.0.55] Heavy oil output per second estimation of coal liquefaction is incorrect when using productivity

Post by fwyrl »

As per title, the Heavy Oil output seems to be calculated incorrectly with Productivity for unclear reasons;

An Oil Refinery with 3x Productivity Module 3 (Base Quality) has a speed of 0.55x, and a Productivity of 1.3x
The Coal Liquefaction recipe takes 5 seconds, and yields 90 Heavy Oil.

So, the heavy oil output should be 90 Heavy/Craft / 5 Crafts/second = 18 Heavy Oil/second * 0.55 craft speed = 9.9 Heavy Oil/s * 1.3 = 12.87 Heavy Oil/s

However, the actual game shows 12.0 Heavy Oil/s in this case, rather than 12.8 or 12.9 (actual rate: 12.87)
06-07-2025, 14-55-07.png
06-07-2025, 14-55-07.png (1.44 MiB) Viewed 400 times
Strangely, the other two estimates work correctly!

In the case of 0x Productivity 3 modules, the output correctly reads 18 Heavy Oil/s
06-07-2025, 14-55-43.png
06-07-2025, 14-55-43.png (460.15 KiB) Viewed 400 times
This also happens at 1x Productivity Module; Display is 16.4, should be 16.8 (actual rate: 16.83)
06-07-2025, 15-19-21.png
06-07-2025, 15-19-21.png (297.72 KiB) Viewed 400 times
And at 2x Productivity Module; Display is 14.4, should be 15.1 (actual rate: 15.12)
06-07-2025, 15-04-26.png
06-07-2025, 15-04-26.png (339.45 KiB) Viewed 400 times
I do not see this with Advanced Oil Processing, or any other recipe in the Oil Refinery.

While the error scales with machine speed, it's not a 1:1 scaling.
While 1 Prod Mod (0.85 speed) is an error of 0.43,
06-07-2025, 15-19-21.png
06-07-2025, 15-19-21.png (297.72 KiB) Viewed 400 times
1 Prod and 1 Speed Mod (1.35 speed) is an error of 0.73.
06-07-2025, 15-20-41.png
06-07-2025, 15-20-41.png (308.95 KiB) Viewed 400 times
This means that for a speed increase of 58.8%, the error increased 69.8%.

With 2 speed mods, the error is ~0.9, for an increase of 118% in speed and a 109% in error.
06-07-2025, 15-19-55.png
06-07-2025, 15-19-55.png (332.12 KiB) Viewed 400 times
Playing around with the numbers, I can't come up with any sort of theory for what exactly is going on here, but given that the error is not confined to the last significant digit, this is probably worth looking at.
Nidan
Filter Inserter
Filter Inserter
Posts: 317
Joined: Sat Nov 21, 2015 1:40 am
Contact:

Re: [2.0.55] Heavy oil output per second estimation of coal liquefaction is incorrect when using productivity

Post by Nidan »

The productivity bonus only applies to 65 heavy oil (90 output - 25 input). When you take this catalyst into account, the numbers will match:
90 Heavy Oil/Craft / 5 second/Craft * 0.55 craft speed * (1 + 0.3 prod bonus * (90-25)/90 output without catalyst) = 12.045 Heavy Oil/second

Not a Bug.
fwyrl
Long Handed Inserter
Long Handed Inserter
Posts: 55
Joined: Fri Jul 01, 2016 10:54 pm
Contact:

Re: [2.0.55] Heavy oil output per second estimation of coal liquefaction is incorrect when using productivity

Post by fwyrl »

Ah, ok, that tracks with Kovarex Enrichment. Any chance some marker for catalysts could get added to recipe pages in factoriopedia (ie. 60 Heavy Oil + 25 Catalyst)?
Post Reply

Return to “Not a bug”