Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0002534Dwarf FortressDwarf Mode -- Militarypublic2010-07-01 08:562010-07-02 07:31
krythorne 
 
normalminoralways
newopen 
0.31.08 
 
0002534: Barracks don't clear up properly when [F]ree'd
When a barracks is [F]ree'd the flags specifying it as a barracks AND the flags specifying which squads are training there don't get cleared - Recreate the room and it'll start with barracks as 'Y' and all squads that were set to train there before are still set up for such.

Toggling the [B]arrack flag to 'N' will also not cause the room to stop squads training there, the 'T' next to the squad name will still be there when the room is set to being a barracks again.
Build bedroom
Set up as barracks
Set a squad to train there, so that the 'T' appears next to the squad.
Free the room
Set the room up again, it'll immediately be set as a barracks and the 'T' is still there.
This could be intentional, but given squads can just be set off duty to stop training it seems unlikely and it seems a potential cause of several other bugs if the squad is still 'remembering' the freed room as a place to train.
barracks, Intentional/Expected?, Military
related to 0000461new  Squads don't respect reassigned barracks if not active 
Issue History
2010-07-01 08:56krythorneNew Issue
2010-07-01 08:57krythorneTag Attached: Intentional?
2010-07-01 08:57krythorneTag Attached: barracks
2010-07-01 08:57krythorneTag Attached: Military
2010-07-01 11:45hyndisNote Added: 0009468
2010-07-02 04:57krythorneNote Added: 0009507
2010-07-02 07:31FootkerchiefRelationship addedrelated to 0000461
2010-07-12 12:03FootkerchiefTag RenamedIntentional? => Intentional/Expected?
2018-04-13 12:39HuntthetrollIssue Monitored: Huntthetroll

Notes
(0009468)
hyndis   
2010-07-01 11:45   
Do they continue to do individaul training there?

I've had about 40 dwarves doing individual training in a barracks. I needed them to haul some roasts urgently so I freed up the barracks. With the barracks freed the dwarves all ran off to haul the roasts.

This is in 31.08. They no longer get stuck doing individual training, problem seems fixed.
(0009507)
krythorne   
2010-07-02 04:57   
Sorry, I should have clarified that free'ing the room does stop training but, as stated, toggling the [B]arrack flag doesn't.

This is bug is also about the code not clearing the relevant properties/flags like it should, not about whether they get stuck doing individual training. :)

Not clearing up properly may relate to some of the other 'hiccups' in the military system or may help track them down.