[2.0.42] Incorrect production rate in machine tooltip

Bugs that are actually features.
iassasin
Manual Inserter
Manual Inserter
Posts: 4
Joined: Fri Dec 29, 2023 1:54 pm
Contact:

[2.0.42] Incorrect production rate in machine tooltip

Post by iassasin »

Hi. Encountered a bug with rate calculation for pentanoid egg. Tooltip says it's 0.33:
изображение.png
изображение.png (14.07 KiB) Viewed 162 times
But I can't recognize formula this result was calculated. My calculations is:

Code: Select all

Rate (1/sec) = (result_amount / (recipe_time / machine_speed)) * productivity
For catalytic recipes we also can substract input rate of same ingredient (as pentanoid egg):

Code: Select all

Rate (1/sec) = (result_amount / (recipe_time / machine_speed)) * productivity - (input_amount / (recipe_time / machine_speed))
Pentaniod egg recipe: 1 egg + 30 food = 2 eggs
Productivity of machine: 50%

If my calculations correct:

Code: Select all

Rate = (2 / (15 / 2)) * 1.5 = 0.4
Rate (catalytic) = (2 / (15 / 2)) * 1.5 - 1 / (15 / 2) = 0.26666
But none of this on the tooltip. The only way I can get 0.33 is do not take in account machine speed for input rate in catalytic recipe, like this:

Code: Select all

Rate (catalytic, incorrect) = (2 / (15 / 2)) * 1.5 - 1 / 15 = 0.33333
Looks like a bug in formula for catalytic recipes
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3753
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.42] Incorrect production rate in machine tooltip

Post by boskid »

Thanks for the report. This is Not a bug.

Productivity of 50% only applies to the excess above the catalyst amount. This means for each 1 egg consumed (0.13/s) you get on average a 2.5 eggs produced (0.33/s). 2.5 = 1 (catalyst) + 1 (normal output) + 1*0.5 (productivity applied to normal output)
iassasin
Manual Inserter
Manual Inserter
Posts: 4
Joined: Fri Dec 29, 2023 1:54 pm
Contact:

Re: [2.0.42] Incorrect production rate in machine tooltip

Post by iassasin »

Ah, forgot about this. There is 5 output per 2 cycles, not 6. Now I see my calculations was incorrect. Thank you for fast reply!
Post Reply

Return to “Not a bug”