Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0006098Dwarf FortressDwarf Mode -- Trapspublic2012-07-16 22:312015-03-25 09:50
Coolthulhu 
Dwarfu 
normalminorhave not tried
resolvedduplicate 
0.34.11 
 
0006098: Can't build weapon trap, says "Needs item".
My mechanic canceled a weapon trap with the generic "item lost" message. Attempting to construct any weapon trap anywhere after that results in enigmatic "needs item" error (similar to the error when attempting to build in a cut-off area).
It might be related to me designating a woodcutter dwarf - probably "stole" one of the axes. If so, that's another bug.
Save here:
http://dffd.wimbli.com/file.php?id=6676 [^]
0.40.24, traps
duplicate of 0008755acknowledged lethosor Items in bins (coins, thread, mechanisms, ammo) are sometimes not found for tasks 
Issue History
2012-07-16 22:31CoolthulhuNew Issue
2015-02-19 11:51EdrinNote Added: 0032259
2015-02-19 11:52EdrinTag Attached: traps
2015-02-19 11:52EdrinTag Attached: 0.40.24
2015-02-19 13:05lethosorProduct Version => 0.34.11
2015-02-19 13:06lethosorNote Added: 0032260
2015-02-19 13:07lethosorNote Edited: 0032260bug_revision_view_page.php?bugnote_id=0032260#r12942
2015-02-23 12:25EdrinNote Added: 0032279
2015-02-23 12:25EdrinIssue Monitored: Edrin
2015-02-23 15:56DetrosNote Added: 0032280
2015-02-24 14:49EdrinIssue End Monitor: Edrin
2015-03-25 09:47DwarfuNote Added: 0032410
2015-03-25 09:47DwarfuRelationship addedduplicate of 0008755
2015-03-25 09:47DwarfuStatusnew => resolved
2015-03-25 09:47DwarfuResolutionopen => duplicate
2015-03-25 09:47DwarfuAssigned To => Dwarfu
2015-03-25 09:47DwarfuNote Deleted: 0032410
2015-03-25 09:48DwarfuRelationship deleted0008755
2015-03-25 09:49DwarfuRelationship addedduplicate of 0008755
2015-03-25 09:50DwarfuNote Added: 0032411

Notes
(0032259)
Edrin   
2015-02-19 11:51   
I have the very same bug on version 40.24. If the original poster forgot to mension that the "need item" message is displayed even before I get to choose were to put the said trap. The other kinds of trap work fine.
I had build something like 150 cage traps, and then one weapon trap with a giant axe blade, and then nothing.
Dismantling that trap did nothing.
I have several trap components and many mechanisms available and stored in piles.
From this bug my 15-ish hours game is lost. I wouldn't call this a minor bug.
(0032260)
lethosor   
2015-02-19 13:06   
(edited on: 2015-02-19 13:07)
(The "severity" field is not used at all to prioritize issues, aside from crashes.)

A current save would be very helpful in this case, as replicating this bug by building 150+ traps isn't easy.

(0032279)
Edrin   
2015-02-23 12:25   
It seems I was a bit too dramatic when I said my game was broken and lost. After a while, the problem disappeared then reappeared, and so on. I studied it a bit and found out what was going on.

It all turns around the bin. It seems that, when a task exists to store an item in that bin, all items in the bin are unavailable to anything else, which seems not very logical. So the items are there, but are unavailable. I did not check if it occurred with any other kind of bins.
While the bin is the destination target of an item, you cannot order construction to be made with its content, but also, you cannot bring the bin to the trade depot (which makes sense, even if it would be preferable to make the hauling job target a new destination instead) and jobs needing these items while no other is available are canceled (in my case, smelting jobs, for which I did not understand why they were sometime canceled).
This problem occurred to me when I started a massive effort on magma smelting. I had a magma glass furnace and a few forge both producing weapon traps an a bunch of smelter taking care of the badly made weapons, among other things. And I had only one bin, hence the problem, and original report.
In the, I changed my mind, and now find the “minor” severity appropriate.

And, yes, I may be a bit slow, but I have only two weapon traps in my save (if hundreds of easy-to-make cage traps).

With this new regard on the problem, it looks a lot like this report, about coin bins and coins unavailable to smelt:
http://www.bay12games.com/dwarves/mantisbt/view.php?id=8755 [^]

I uploaded this save as an example:
http://dffd.bay12games.com/file.php?id=10615 [^]
(0032280)
Detros   
2015-02-23 15:56   
Issues with only storage being in currently hauled bin sometimes happens with gems; before multipick in 40.24 (that "Hauling jobs that used to need a held container now allow the dwarf to carry many items without a container) it was more around.
(0032411)
Dwarfu   
2015-03-25 09:50   
I'm resolving this as a duplicate of 0008755 as that report covers the bin hauling tasks entirely. Please continue discussion and upload saves there.