[2.0.28] 99%/fractional science packs left over after research complete

We are aware of them, but they have low priority. We have more important things to do. They go here in order not to take space in the main bug thread list.
User avatar
GreyFoxx
Burner Inserter
Burner Inserter
Posts: 12
Joined: Sun Jun 04, 2023 7:06 am
Contact:

[2.0.28] 99%/fractional science packs left over after research complete

Post by GreyFoxx »

When using inserters to move science packs between labs, sometimes research will complete with an extra 99% science pack left over. The act of moving a science pack while research is ongoing causes some of the science pack to be consumed without contributing credit to the in-progress research. This leads to the situation where a technology that would normally require 20 red science packs will not complete after 20 packs have been consumed, requiring an additional pack to be added to a lab, of which only 1% of the pack is consumed (leaving a 99% pack). This is most noticeable in the early game when resources are limited. What should happen is that for every amount of a science pack consumed, the corresponding amount of research credit is added to the in-progress research, regardless of whether the pack is moved in the next tick.

One possible fix is to adjust the lab system to be more like the assembly machines, where the appropriate research progress is added all at once after the lab has "crafted" the research in some amount of time, moving science packs into a hidden buffer prior and only actually consuming it once the "crafting" is done, entirely eliminating science pack durability.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14896
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.28] 99%/fractional science packs left over after research complete

Post by Rseding91 »

Thanks for the report however we will not likely be changing any of this. Science used to work as you describe and it was changed to how it works now because overall people like it better.
If you want to get ahold of me I'm almost always on Discord.
User avatar
GreyFoxx
Burner Inserter
Burner Inserter
Posts: 12
Joined: Sun Jun 04, 2023 7:06 am
Contact:

Re: [2.0.28] 99%/fractional science packs left over after research complete

Post by GreyFoxx »

Fair enough. However, I'm sure the part about the packs being consumed without contributing research credit can be fixed.
Jap2.0
Smart Inserter
Smart Inserter
Posts: 2429
Joined: Tue Jun 20, 2017 12:02 am
Contact:

Re: [2.0.28] 99%/fractional science packs left over after research complete

Post by Jap2.0 »

GreyFoxx wrote: Wed Dec 25, 2024 8:53 am Fair enough. However, I'm sure the part about the packs being consumed without contributing research credit can be fixed.
This is a result of inaccuracy and rounding in floating-point math, especially when moving partially used science packs between labs; see e.g. 13674.
There are 10 types of people: those who get this joke and those who don't.
Post Reply

Return to “Minor issues”