Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0005768Dwarf FortressDwarf Mode -- Militarypublic2012-04-03 15:172015-03-29 18:58
brucemo 
Footkerchief 
normalcrashalways
confirmedunable to reproduce 
Windows 7
0.34.06 
 
0005768: Crash when assigning a dwarf to the fortress guard (which doesn't exist)
I can crash DF in a couple of keystrokes by trying to add a dwarf to the fortress guard, when there is no fortress guard.

34.06, created under 34.06.
1. Boot DF, load save. In my save I have one squad already, and it is possible for me to create a captain of the guard, but I do not have one. I suspect this will reproduce easily in any fortress that has been going for a few years, has a squad, but doesn't have a captain of the guard, i.e probably your current game. I can give you this save if you want it though.

2. m (military screen).

3. down-arrow once to get off "captain of the guard" and on to previously existing squad.

4. l (create squad appointed by this leader).

5. Select a uniform (doesn't seem to matter which) and press enter.

6. Notice that "captain of the guard" is selected, the "squad positions" list is for the first squad (not the fortress guard, which doesn't exist), and the "candidates" are the rest of the dwarves.

7. right-arrow twice to select the first candidate, and press enter.

8. GP fault.

Essentially this exploded when I tried to add a dwarf to a new squad without selecting the new squad first. If you have no captain of the guard, it is normally impossible to add dwarves to the palace guard, but if you have just created a squad, it becomes possible.
No tags attached.
Issue History
2012-04-03 15:17brucemoNew Issue
2012-08-28 00:16brucemoNote Added: 0023498
2015-01-08 08:53FootkerchiefNote Added: 0031766
2015-01-08 08:53FootkerchiefAssigned To => Footkerchief
2015-01-08 08:53FootkerchiefStatusnew => needs feedback
2015-03-29 08:18FootkerchiefNote Added: 0032444
2015-03-29 08:18FootkerchiefStatusneeds feedback => resolved
2015-03-29 08:18FootkerchiefResolutionopen => unable to reproduce
2015-03-29 18:58FootkerchiefNote Added: 0032462
2015-03-29 18:58FootkerchiefStatusresolved => confirmed

Notes
(0023498)
brucemo   
2012-08-28 00:16   
This is repro in 34.11 and is a giant pain in the ass. I don't make a palace guard, and I often ending up crashing while making new squads.
(0031766)
Footkerchief   
2015-01-08 08:53   
Is this problem still present in the latest version? If so, please upload a save that reproduces the problem to http://dffd.wimbli.com/ [^] and post the link here.
(0032444)
Footkerchief   
2015-03-29 08:18   
If anyone has a save that reproduces this problem in the latest version, please upload it to http://dffd.bay12games.com/ [^] and PM a manager on the forums (or reopen the report).
(0032462)
Footkerchief   
2015-03-29 18:58   
Reopening with a save from Detros: http://dffd.bay12games.com/file.php?id=10717 [^]