Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0008188Dwarf FortressDwarf Mode -- Buildings, Machinespublic2014-08-30 02:052014-09-01 14:48
furl 
Footkerchief 
normalminorhave not tried
resolvedduplicate 
Windows 7 x64
0.40.10 
 
0008188: Cannot select from all avaliable weapons when buliding a weapon trap.
Cannot select from all avaliable weapons when buliding a weapon trap. The game only gives me a limited choice. When a wepon is selected a Weapon trap is not built.

Savegame:

https://yadi.sk/d/lT2H1Z-XagWV5 [^]
Build a weapon trap inside a fortress on Sand level near other Cage traps.
No tags attached.
duplicate of 0005992resolved Toady One Conflict between hauling jobs (i.e. filling containers) and other jobs using items in those containers 
Issue History
2014-08-30 02:05furlNew Issue
2014-08-30 07:24LociNote Added: 0029797
2014-08-30 12:08furlNote Added: 0029805
2014-08-31 13:59LociNote Added: 0029835
2014-08-31 14:01LociNote Edited: 0029835bug_revision_view_page.php?bugnote_id=0029835#r11550
2014-09-01 14:48FootkerchiefNote Added: 0029875
2014-09-01 14:48FootkerchiefRelationship addedduplicate of 0005992
2014-09-01 14:48FootkerchiefStatusnew => resolved
2014-09-01 14:48FootkerchiefResolutionopen => duplicate
2014-09-01 14:48FootkerchiefAssigned To => Footkerchief

Notes
(0029797)
Loci   
2014-08-30 07:24   
It's not a bug; it's a feature. The building-material selection menu is sorted by distance. A natural result of that is items with infinite distance (i.e. unreachable items) are not included on the list. You have somehow managed to isolate a section of your fortress, and the game is only allowing you to construct a weapon trap using items inside the disconnected section. This also explains why the trap never gets built (no mechanic can make it to the build site).

I haven't checked the save, but I'd guess either a ramp misunderstanding or one of the known ramp bugs. If the location of the disconnect is non-obvious, you can order a military unit to station at different distances along the path until you see the "(unreachable location)" status in the job menu.
(0029805)
furl   
2014-08-30 12:08   
Maybe you're right, but I somehow managed to build a trap after the first try failed (it showed only 3 weapons avaliable, I tried to build a trap using one of these "reachable" weapons, it failed; just after that I tried the same thing again and it worked as intended - all the weapons were listed, the trap was built).

I have no ramps in my fortress, only stairways, all workshops and stockpiles are inside, so I guess this isn't the case.
(0029835)
Loci   
2014-08-31 13:59   
(edited on: 2014-08-31 14:01)
Sorry for the mis-diagnosis. I looked at the save and in region 3 several dwarves are using bins with 50+ weapons to pick up other weapons. Items in bins which have been tasked for hauling are unavailable for any other job (0005992) and dwarves frequently carry large numbers of items for extended periods of time (0005964). The three available "weapons" were in two other, nearly empty, bins. When I canceled the hauling tasks (by forbidding the bins, then unforbidding the bins while paused) the weapons became available for installation in a trap.

However, when I ordered the three available weapons to be placed into a trap a mechanic began construction immediately, so I was unable to reproduce any problems with trap construction.

(0029875)
Footkerchief   
2014-09-01 14:48   
Thanks for checking the save, Loci.