kam_remake icon indicating copy to clipboard operation
kam_remake copied to clipboard

Serfs prefer to bring all the required building materials to a site except the last one needed

Open Kromster80 opened this issue 9 years ago • 7 comments

I think it is caused by serfs' priority. A serf "examines" a build sites to see what they need. There is only one: A coal mine with 3(timber)/1(stone). However, by time time he goes to deliver the last needed stone, another coal mine is ready to be made and it has 0/0 wares. Since this coalmine "needs" more timber and stone, it has a higher priority and thus gets the wares! Serfs won't delivery building materials to the first coal mine until the second one gets 3/1, and then they usually end up bringing the last stone to the first one anyway. This is ridiculous as buildings aren't worth anything until they are finished.

You can see four coal mines (and an iron mine that recently had the problem) that aren't finished. I didn't even build them at the same time. There was quite some time between starting them. Yet it matters not, my serfs screw me over. This caused coal problems in my base for the next 20 minutes or so...

image

Reported by Ben at http://www.knightsandmerchants.net/forum/viewtopic.php?f=26&t=2654

Kromster80 avatar Apr 29 '15 06:04 Kromster80

Well AI got flip on this too soo many times it run out of the gold because of waiting for the coal.

TehPlayer14 avatar Apr 29 '15 15:04 TehPlayer14

Had this issue as well today, it is always with the last stone, and mainly right after finishing the about 10-15 buildings.

LauraRozier avatar Apr 29 '15 20:04 LauraRozier

I have reproduced it - occurs mostly when serfs are busy and are moving into delivery to building site. Contrary to this when they are "unemployed" they do it in a good manner.

vqw avatar Aug 13 '15 13:08 vqw

Could be due to serfs preferring sites with less materials in. Can you check with code?

Kromster80 avatar Aug 13 '15 15:08 Kromster80

Someone should make a 10 tests with the KaM TPR and see the results

TehPlayer14 avatar Nov 28 '15 13:11 TehPlayer14

TPR has nothing to do with this.

Kromster80 avatar Nov 28 '15 14:11 Kromster80

I've checked through the code via Notepad++ haven't found any not but Im pretty sure that's the rule of closest Deliver distance aka Get BetterDeliver thing

I can confirm that it happens in TPR aswell

TehPlayer14 avatar Jul 08 '17 19:07 TehPlayer14