Stockpile thingy

Started by failedJr, March 21, 2017, 12:36:58 PM

Previous topic - Next topic

failedJr

I have a worker doing some work. He needed 25 wood for a door. He goes to the 1x3 stockpile, only for wood. He sees that stockpile has 75+75+24. He goes to the closest one, the 24. In the mean time, a colonist gets there and replenish the stockpile, making it full 75+75+75. When my builders got there, he took 25 from the first one, and then another one from the next one, in total of 26. He got to the door he has to built and throw down the extra wood and continue building.

I know it's a problem in the code probably, so will be easy to fix. I think that in the code is write for the colonist to take all of a stockpile whenever it has the goods, or else go to the next closest spot. But this is probably in a contradiction. I think he got the path premtevely and know he has to take "all" that he need from the 24 stock and then get another extra one. And then he took "all" that he need, that means 25 when it was updated, and got an extra one.

DanielCoffey

An interesting corner case.

I was under the impression that any colonist interacting with a stack in a stockpile (whether picking up or dropping off) effectively reserved the entire stack until their hauling task was complete. Maybe it is handled differently if it is the last stack in the stockpile that can be used.
Caselabs S8 : Intel 7700K 5.0GHz 1.30V / 32Gb DDR4 3000 / ASUS 780 Ti 3Gb 1274 boost, 7800 mem / Samsung 850 Pro 256Gb, 2x Samsung 840 Pro 256Gb / Dell U2715H 27" 2560x1440 / Corsair AX860I / APC SMT1000I / Linux Mint 18.1 64-bit

ison


Tynan

Tynan Sylvester - @TynanSylvester - Tynan's Blog