Dwarf Fortress Bug Tracker - Dwarf Fortress
View Issue Details
0006117Dwarf FortressCreaturespublic2012-07-21 08:322014-07-23 10:11
Quietust 
Toady One 
normalminorhave not tried
resolvedfixed 
0.34.11 
0.40.05 
0006117: Vermin can only escape from artifact animal traps
Part of the logic for vermin attempting to escape from animal traps includes a check against whether or not the animal trap is an artifact. This check appears to be backwards, however - as a result, a trapped vermin can only escape from an artifact animal trap, and a non-artifact trap will be able to safely contain any type of vermin.

This bug appears to date back to at least version 0.23.130.23a (which is where I initially found it).
binary patch
related to 0006343resolved Toady One Caravans brings small animals/vermin that immediately escape their cages 
Issue History
2012-07-21 08:32QuietustNew Issue
2012-07-21 09:16QuietustNote Added: 0023308
2012-07-21 09:25QuietustNote Edited: 0023308bug_revision_view_page.php?bugnote_id=0023308#r8691
2012-07-21 09:25ab9rfNote Added: 0023309
2012-07-21 09:37QuietustNote Added: 0023310
2012-07-21 09:38QuietustTag Attached: binary patch
2012-07-21 10:04QuietustNote Edited: 0023310bug_revision_view_page.php?bugnote_id=0023310#r8693
2012-07-21 10:06QuietustNote Edited: 0023308bug_revision_view_page.php?bugnote_id=0023308#r8694
2012-07-21 10:08QuietustNote Added: 0023312
2012-08-08 14:15ab9rfNote Added: 0023430
2013-06-22 23:53DwarfuRelationship addedparent of 0006343
2014-01-15 14:49Kirig Stonebeard IIIssue Monitored: Kirig Stonebeard II
2014-01-17 10:03Kirig StonebeardIssue Monitored: Kirig Stonebeard
2014-03-25 13:13DwarfuAssigned To => Dwarfu
2014-03-25 13:13DwarfuStatusnew => acknowledged
2014-07-23 10:10Toady OneRelationship replacedrelated to 0006343
2014-07-23 10:11Toady OneStatusacknowledged => resolved
2014-07-23 10:11Toady OneFixed in Version => Next Version
2014-07-23 10:11Toady OneResolutionopen => fixed
2014-07-23 10:11Toady OneAssigned ToDwarfu => Toady One

Notes
(0023308)
Quietust   
2012-07-21 09:16   
(edited on: 2012-07-21 10:06)
This applies to all types of containers - in Fortress mode it's only animal traps and cages, while in Adventurer mode it also includes backpacks, quivers, waterskins, bags, barrels, and any other type of container you might find.

(0023309)
ab9rf   
2012-07-21 09:25   
I can confirm that this happens with cages; I recently had a half dozen small tame creatures escape from an artifact cage immediately upon being placed within it. I have, otherwise, never had a tame creature escape from confinement.
(0023310)
Quietust   
2012-07-21 09:37   
(edited on: 2012-07-21 10:04)
The following binary patch fixes this problem in Win32 v0.34.11 SDL:
0x329E14 : 00 -> 01

(0023312)
Quietust   
2012-07-21 10:08   
This patch could lead to hilarity with Elven caravans - they bring all sorts of vermin in wooden cages, and any with [GNAWER] would immediately escape upon arrival.
(0023430)
ab9rf   
2012-08-08 14:15   
I can confirm Quietust's prediction of hilarity: gnawing vermin brought by elven caravans escape immediately upon the caravan's entry, with this patch in place.