View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0013497 | Dwarf Fortress | Dwarf Mode -- Interface, Unit Profiles | public | 2026-04-14 13:38 | 2026-11-12 12:35 |
| Reporter | NilusBavarius | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | N/A |
| Status | new | Resolution | open | ||
| Platform | PC | OS | Windorf 11 | ||
| Product Version | 53.11 | ||||
| Summary | 0013497: Military gear erroneously assignet to nothing | ||||
| Description | Certain 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 Reproduce | N/A | ||||
| Additional Information | Affected Save uploaded to the DFFD: https://dffd.bay12games.com/download.php?id=17790&f=Pageboars.7z | ||||
| Tags | 53.11 | ||||
|
|
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. |
|
|
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 |
| 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 |