[2.0.38] Productivity bar not reset after recipe change
Posted: Wed Mar 05, 2025 7:49 pm
by Hares
Background
IDK if this is a bug or not, but I suppose this should be reported. The reason I'm reporting this is the fact normally, after a recipe change, productivity bar is reset.
I have a circuit that reads if a higher-quality module can be crafted, and if it is, sets recipe for the EM plant. However, in the initial design there was a error, which caused to recipe not being actually set in the assembler, so the ingredients backed up so that 1xQ4 and 1xQ5 can both be crafted. I fixed the circuitry and it started working - Legendary one was crafted first, and immediately after it recipe was changed to Epic. Then I noticed I got second Q4 module for free (I saw productivity bar filling up) while crafting it which should be impossible since EM plant have only +50% prod bonus which is enough for "buy 2 get 1 free", not "buy 1 get 1 free", which means the prod bar was not reset.
03-05-2025, 22-49-02.png (547.79 KiB) Viewed 269 times
I will try providing steps-to-reproduce later, currently that's all what I have.
Re: [2.0.38] Productivity bar not reset after recipe change
Posted: Wed Mar 05, 2025 10:31 pm
by Rseding91
Thanks for the report however without a save file and way to reproduce this, there’s nothing I can do. All code paths I can find properly reset the productivity bar when the recipe changes.
Re: [2.0.38] Productivity bar not reset after recipe change
Posted: Thu Mar 06, 2025 10:57 am
by Hares
Rseding91 wrote: Wed Mar 05, 2025 10:31 pm
Thanks for the report however without a save file and way to reproduce this, there’s nothing I can do. All code paths I can find properly reset the productivity bar when the recipe changes.
I imported BP above to the sandbox mode, deployed it, put ingredients for exactly 2 Q4 and exactly 2 Q5 modules (upon inspection, I discovered the circuitry requires 2+ full sets of ingredients), and...
Here is the result
03-06-2025, 13-51-06.png (25.13 KiB) Viewed 186 times
At first, I was shocked. Then came the realization. It's not the prod bar fault - I forgot about 5x T3Q3 Quality modules installed in the EM plant. I accidentally high-rolled quality upgrade twice in a row - this time and during the initial report time.
You may close this as not-a-bug.
Sorry for the disturbance.