Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004938Dwarf FortressDwarf Mode -- Jobs, Healthcarepublic2011-10-25 22:372011-10-25 23:21
ReporterGrumbledwarfskin 
Assigned ToDwarfu 
PrioritynormalSeverityminorReproducibilityrandom
StatusresolvedResolutionduplicate 
PlatformOSOS Version
Product Version0.31.25 
Target VersionFixed in Version 
Summary0004938: Multiple dwarves pick same bed in hospital, one dies of thirst
DescriptionI've had this bug happen twice in two different forts:

Multiple dwarves get injured, some of them are hauled to the hospital by a "recover wounded" task, some of them go to the hospital themselves.

Two of them pick the same bed in the hospital. One of them is listed as "resting". The other is listed as "no job", and eventually dies of thirst.

In the most recent occurrence of this bug, one walked to the hospital themselves, and took a bed in a corner position (the rightmost of three side-by-side beds in the small hospital). I had three injured dwarves, the first bed was occupied, second bed remained free, third bed got two dwarves.

I'm not 100% certain, but I believe this was the sequence:

The first injured dwarf was brought to rest in the first bed.

The second injured dwarf came on their own and picked the third bed. (Could it be an off-by-one error in the code intended to keep the beds exclusive, and the walk-in was supposed to claim the second bed? I should note that I was building additional beds into the hospital at the same time as dwarves were going to the hospital, so that could have caused confusion, if the code matching dwarves with beds doesn't account for what happens if a new bed is added to the hospital.)

The third injured dwarf was then brought to rest in the third bed.

The second dwarf is no longer listed as resting, they're listed as "no job", and are ignored by everyone. Nobody does a "recover wounded" task for them (perhaps because they're already in the hospital), and nobody brings them water or food. They have no entry in their medical history, presumably because they're a walk-in, and never got a diagnosis.

I suspect one part of the code thinks they're properly registered with the hospital (so no job, and no recover wounded task), but the hospital itself lost track of them when another patient took away their bed (and that's why there's no diagnosis task, and no bring food/water tasks,).
TagsNo tags attached.
Attached Files

- Relationships
duplicate of 0004553new Extra dwarves stuck in hospital beds 

-  Notes
(0018910)
Dwarfu (manager)
2011-10-25 23:21

Please continue discussion in 0004553.

- Issue History
Date Modified Username Field Change
2011-10-25 22:37 Grumbledwarfskin New Issue
2011-10-25 23:20 Dwarfu Relationship added duplicate of 0004553
2011-10-25 23:20 Dwarfu Status new => resolved
2011-10-25 23:20 Dwarfu Resolution open => duplicate
2011-10-25 23:20 Dwarfu Assigned To => Dwarfu
2011-10-25 23:21 Dwarfu Note Added: 0018910


Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker