Page 1 of 1

[Kovarex] [2.0.15] Spoiled priority of inserters based on time not percentage

Posted: Tue Nov 05, 2024 6:15 pm
by valneq
The tooltip for "spoiled priority" of an inserter:
> Selects items based on spoiled percentage. Only takes effect when taking items from an inventory.

When you set an inserter to take "spoiled first" and make it choose between a 40% spoiled agricultural science pack with many minutes remaining and some 90% fresh iron bacteria with less than a minute remaining it will in fact take the iron bacteria. Irrespective of the ordering of the item in the source inventory. That means the priority is based on time (or ticks?) remaining rather than the spoiled percentage. Contrary to what the tooltip says.

Re: [2.0.15] Spoiled priority of inserters based on time not percentage

Posted: Mon Dec 16, 2024 4:30 pm
by Rseding91
Thanks for the report. I don't actually know what the intent was with how this should work. The spoil percent logic was written in mind for one item type existing in the source chest. I'll have to talk with the person who wrote it to see how they want it to work with mixed items.

Re: [Kovarex] [2.0.15] Spoiled priority of inserters based on time not percentage

Posted: Tue Dec 17, 2024 6:15 am
by IsaacOscar
Personally I think doing it based on time is more useful, as you might want to use more spoiled things up quickly before they spoil.

At least that's the only thing I've been using the spoiled priority for.

Re: [Kovarex] [2.0.15] Spoiled priority of inserters based on time not percentage

Posted: Sun Jan 12, 2025 4:31 am
by tinker9
But if you're trying to make minimally spoiled agricultural science packs, you'll want it to choose the freshest (percentage) items, because that's how the spoilage of the result is calculated.

In that case you might prefer to let the old bioflux and eggs just spoil on Gleba, rather than having the packs spoil in transit.