[2.0.42] Incorrect production rate in machine tooltip
Posted: Sun Mar 23, 2025 10:28 am
Hi. Encountered a bug with rate calculation for pentanoid egg. Tooltip says it's 0.33:
For catalytic recipes we also can substract input rate of same ingredient (as pentanoid egg):
Pentaniod egg recipe: 1 egg + 30 food = 2 eggs
Productivity of machine: 50%
If my calculations correct:
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:
Looks like a bug in formula for catalytic recipes
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
Code: Select all
Rate (1/sec) = (result_amount / (recipe_time / machine_speed)) * productivity - (input_amount / (recipe_time / machine_speed))
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
Code: Select all
Rate (catalytic, incorrect) = (2 / (15 / 2)) * 1.5 - 1 / 15 = 0.33333