View Issue Details

IDProjectCategoryView StatusLast Update
0013497Dwarf FortressDwarf Mode -- Interface, Unit Profilespublic2026-11-12 12:35
ReporterNilusBavarius Assigned To 
PrioritynormalSeverityminorReproducibilityN/A
Status newResolutionopen 
PlatformPCOSWindorf 11 
Product Version53.11 
Summary0013497: Military gear erroneously assignet to nothing
DescriptionCertain parts of existing military gear are marked as "assigned" but without actual position or sqad, thus blocked from new assignment and upgrades for positions.
Steps To ReproduceN/A
Additional InformationAffected Save uploaded to the DFFD:

https://dffd.bay12games.com/download.php?id=17790&f=Pageboars.7z
Tags53.11

Activities

brunni

2026-11-11 17:21

reporter   ~0043308

Last edited: 2026-11-11 17:22

I think I am encountering this. I noticed that soldiers often equip lower grade metal or non-metal gear with "partial match", so I made a fresh steel uniform with exact match and replace clothing. Lots of red exclamation marks on the equipment after a certain squad position with tons of matching gear in bins. Selecting a specific item for the broken slot shows all matching items are either actually used by another soldier or "assigned" - but they are not actually owned. gui/gm-editor on "assigned" items shows nothing immediataly suspicious - e.g. no flags are set except in_inventory. Manually assigning an already "assigned" item works and makes the slot green. Moreover, reassigning the uniform to the whole squad does not make the speficic slot red again (and other green ones don't switch to red).

Will provide save if neeed. My second and third squad is completely non-functional due to this and I cannot manually select each specific armor item for them.

brunni

2026-11-12 11:10

reporter   ~0043310

Last edited: 2026-11-12 12:35

I got help from Claude fixing this with diagnostic scripts and a cleanup script for DFHack in lua. Here is its summary, which seeems to correctly describe everything:

Adding details from my fortress (DF 53.17, DFHack 53.17-r1). I think this is the same problem, and I found what looks like the underlying data issue.

In my fort, red uniform slots had item=-1 in the position’s uniform spec, so the position held no item even though many matching items sat in bins. The blocked items were not claimed by any squad position. I checked every position’s assigned items across all 342 squads.

The “assigned” mark appears to live in df.global.plotinfo.equipment.items_assigned. Before cleanup, 243 of 424 entries there (across armor, helms, gloves, pants, shoes, shields and backpacks) were not claimed by any squad position, so the game treated them as taken while nobody owned them.

Moving those orphaned entries back to items_unassigned and pressing “Update Equipment” fixed my squads. Manually assigning an “assigned” item also works, which fits this.

I’m not sure what creates the orphans. DFHack’s uniform-unstick (“Try to resolve conflicts”) made some steel armor orphaned again for me, so it may be one source, but I haven’t ruled out vanilla behavior.

See also https://github.com/DFHack/dfhack/issues/6044

Add Note

Note

Issue History

Date Modified Username Field Change
2026-04-14 13:38 NilusBavarius New Issue
2026-04-14 13:38 NilusBavarius Tag Attached: 53.11
2026-11-11 17:21 brunni Note Added: 0043308
2026-11-11 17:22 brunni Note Edited: 0043308
2026-11-12 11:10 brunni Note Added: 0043310
2026-11-12 11:12 brunni Note Edited: 0043310
2026-11-12 12:35 brunni Note Edited: 0043310