Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0000647Dwarf FortressDwarf Mode -- Roomspublic2010-04-06 11:432014-09-14 09:43
Folly 
Toady One 
lowminoralways
resolvedfixed 
Windows XP
0.31.01 
0.40.11 
0000647: Uninjured dwarves sleep in hospital instead of dormitory, and other bedroom/sleeping issues
Uninjured dwarves seem inclined to sleep in the hospital, even though perfectly good dormitories are available. This can be problematic when actual injured dwarves show up and have no place to settle down.
1. Build a set of beds and declare them as dormitories.
2. Build a hospital zone, build beds in said zone.
3. Watch as healthy dwarves sleep in both.
No tags attached.
related to 0000034resolved Toady One Assigned rooms not respected 
related to 0003237resolved Toady One Beds still not 100% functional -- some dwarves still prefer to sleep in dormitory instead of claiming bedrooms 
related to 0003767resolved Toady One Dwarf leaves burrow to sleep in dorm, sleeps on floor in dorm 
related to 0001955acknowledged Dwarfu dwarves rest outside of the hospital zone 
related to 0002442new  Spouse room assignments behave strangely when spouses have different burrow assignments 
related to 0004763new  Nobles with multiple bedrooms gain unhappy though from sleeping in inferior one 
related to 0005821new  Military dwarves all sleep in dormitory instead of barracks if barracks is created from armor stand 
Issue History
2010-04-06 11:43FollyNew Issue
2010-04-06 11:48Logical2uNote Added: 0001546
2010-04-06 11:50FootkerchiefRelationship addedrelated to 0000034
2010-04-19 04:13NimblewrightNote Added: 0004213
2010-05-29 23:02Khym ChanurIssue Monitored: Khym Chanur
2010-06-25 07:06ReddIssue Monitored: Redd
2010-06-25 07:10ReddNote Added: 0009082
2010-06-25 09:31hyndisNote Added: 0009088
2010-07-10 19:11clc02Issue Monitored: clc02
2010-07-22 14:26slinkNote Added: 0010850
2010-07-22 14:59Rafal99Note Added: 0010851
2010-07-22 14:59Rafal99Note Edited: 0010851bug_revision_view_page.php?bugnote_id=0010851#r4216
2010-10-25 12:31sarpadeonNote Added: 0013510
2010-10-26 03:37Malibu StaceyNote Added: 0013517
2010-12-02 08:51FootkerchiefRelationship addedhas duplicate 0003767
2010-12-02 09:59FootkerchiefRelationship replacedparent of 0003767
2010-12-03 22:48FootkerchiefRelationship replacedrelated to 0003767
2011-02-28 21:19FootkerchiefSummaryUninjured Dwarves sleep in hospital => Uninjured dwarves sleep in hospital instead of dormitory, and other bed/sleeping issues
2011-02-28 21:20FootkerchiefRelationship addedparent of 0003237
2011-02-28 21:20FootkerchiefRelationship addedrelated to 0001955
2011-02-28 21:21FootkerchiefSummaryUninjured dwarves sleep in hospital instead of dormitory, and other bed/sleeping issues => Uninjured dwarves sleep in hospital instead of dormitory, and other bedroom/sleeping issues
2011-02-28 21:21FootkerchiefRelationship addedrelated to 0002442
2011-02-28 21:22FootkerchiefRelationship replacedrelated to 0003237
2011-02-28 21:22FootkerchiefSticky IssueNo => Yes
2011-07-28 11:13FootkerchiefRelationship addedrelated to 0004763
2012-04-21 16:54FootkerchiefRelationship addedrelated to 0005821
2014-02-03 06:41smjjamesNote Added: 0024489
2014-02-03 06:41smjjamesNote Edited: 0024489bug_revision_view_page.php?bugnote_id=0024489#r9132
2014-02-03 10:58FootkerchiefIssue Monitored: smjjames
2014-02-03 10:58FootkerchiefNote Added: 0024494
2014-02-04 12:32WimopyNote Added: 0024495
2014-02-05 03:21WimopyNote Edited: 0024495bug_revision_view_page.php?bugnote_id=0024495#r9136
2014-02-05 08:31smjjamesNote Added: 0024497
2014-07-27 10:45KanddakIssue Monitored: Kanddak
2014-08-27 11:14Toady OneStatusnew => resolved
2014-08-27 11:14Toady OneFixed in Version => Next Version
2014-08-27 11:14Toady OneResolutionopen => fixed
2014-08-27 11:14Toady OneAssigned To => Toady One
2014-08-27 13:25KanddakIssue End Monitor: Kanddak
2014-08-27 20:24smjjamesIssue End Monitor: smjjames
2014-09-14 09:43lethosorSticky IssueYes => No

Notes
(0001546)
Logical2u   
2010-04-06 11:48   
Probably related to 0000034
(0004213)
Nimblewright   
2010-04-19 04:13   
Seconded. Seen this in the same situation.
(0009082)
Redd   
2010-06-25 07:10   
The hospital is closer to the meeting area than the dorms in my fort, which might be a factor. I've also noticed that regular dwarves who decide to sleep in the hospital beds show "Unconscious" on their Wounds screen. I wonder if this is cosmetic, or is actually having some kind of effect on the quality of rest.
(0009088)
hyndis   
2010-06-25 09:31   
A sleeping dwarf is always an unconscious dwarf. This is why hunters used to die to traps on a regular basis due to them falling asleep on the floor where they happen to be rather than going to a bed to sleep. Any unconscious creature will trigger a trap, even a trap avoid creature.
(0010850)
slink   
2010-07-22 14:26   
This persists even when the entire hospital area is set to Restricted Traffic and the Restricted Traffic Cost is set to maximum (100). With the cost of Normal Traffic being 2, and the beds being 10 steps into a Restricted Traffic Area, the next best bed would have to be more than 500 squares away in order for the hospital beds to be closer. The entire map is only a little less than 200 squares wide. Nobody's bed is anywhere near 500 squares away from the hospital entrance. 60 to 80 squares is my guess.
(0010851)
Rafal99   
2010-07-22 14:59   
Dwarves doesn't take traffic designations into account when searching for closest <whatever>.

(0013510)
sarpadeon   
2010-10-25 12:31   
i noticed that only the beds that originate the dorm are used if a hospital is designated, if i individually make every bed in the dorm area a room and set it to dorm then the dwarves no longer sleep in the hospital.
(0013517)
Malibu Stacey   
2010-10-26 03:37   
I've also found that creating a load of bedrooms stops the dwarves sleeping in the hospital beds. They will happily claim an unassigned bedroom for themselves when they need to sleep & then use that from that point onwards.
I think the way it works is that if they don't have their own assinged room the dwarves first check for a bed in a bedroom which is available (as in either unassigned or a dormitory). If they can't find one they then just find the nearest unoccupied bed. The bug here is that the beds in a room designated as a dormitory aren't being checked as part of the room, only the bed which is used to define the room. As sarpadeon says the workaround is to use every bed in the dormitory to define a dormitory however this will substantially reduce the value of the dormitory & has no benefit over carving out individual bedrooms & allowing them to acquire them themselves.

Summary should be updated to reflect that the bug is actually with dwarves not sleeping in beds inside a dormitory.
(0024489)
smjjames   
2014-02-03 06:41   
I have a dormitory style communual bedroom with PLENTY of beds and I've caught them sleeping in the hospital on occasion. They don't do it real often in my fort though.

Edit: version 0.34.11

(0024494)
Footkerchief   
2014-02-03 10:58   
Reminder sent to: smjjames

Please upload a save demonstrating this problem to http://dffd.wimbli.com/ [^] and post the link here.
(0024495)
Wimopy   
2014-02-04 12:32   
(edited on: 2014-02-05 03:21)
Encountered the problem myself in both Masterwork DF and the LNP. Will see if I can reproduce it in vanilla DF without DFhack. I'll post the outcome when done. (Tomorrow, in 12-14 hours)

EDIT: Set up a quick test for the bug, but failed to conclusively reproduce. Dwarves did use hospital beds but only when dorm beds were occupied (had to remove a few). Might be worth switching things around, seeing if they prefer to walk shorter distances, I haven't been able to test that with fewer beds (with many beds designated as hospital, they used that but the designating as hospital may have been too late to change their minds).
The save if needed for further testing: http://dffd.wimbli.com/file.php?id=8399 [^]

It's a quick setup, not a real fort, but it should be self-sufficient enough to test the bug.

(0024497)
smjjames   
2014-02-05 08:31   
@ footkerchief: I will the next time I spot it. I think it may partially have something to do with crowdedness, but that's my guess. I have LOTS of beds in the dormitory style bedroom, so I don't see it happening often.