Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004973Dwarf FortressReactionspublic2011-11-30 13:072015-03-01 09:19
Assigned Tolethosor 
PrioritynormalSeverityminorReproducibilityhave not tried
PlatformOSOS Version
Product Version0.31.25 
Target VersionFixed in Version 
Summary0004973: Vermin reactions do not recognize caste
DescriptionWhen using custom reactions which deal with items of type VERMIN and PET, the material type is interpreted as a creature ID, but the material subtype is ignored (e.g. "VERMIN:NONE:ANT:SOLDIER" gets treated as "VERMIN:NONE:ANT:NONE"); as a result, any reaction which attempts to create a vermin will make them using a nonexistent caste (and it will not behave correctly, the most readily observable effect being that it roams around at maximum speed when dropped).

The underlying item code itself returns the caste ID when requesting the material subtype (and the same for setting it), so this seems like something that ought to work better than it does right now - indeed, if I edit the 'reaction_product_item' structure in-memory and put the proper caste ID in the field normally used for material subtype, then the reaction will produce the vermin using the correct caste (it'll show up as a "live ant" in my inventory, but once I drop it it'll become a slowly roaming "soldier ant" instead of a super-fast "ant").
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
Quietust (reporter)
2011-12-01 20:32

Further analysis suggests that items of type REMAINS, FISH, FISH_RAW, and EGG may also be affected by this.
Quietust (reporter)
2012-03-02 13:26

A quick test confirms that this is still the case in version 0.34.04.
Quietust (reporter)
2014-09-15 14:12

Disassembly analysis against 0.40.12 confirms that this is still the case - for the above listed item types, the first token of the material is parsed as a Creature ID and the second token is discarded (instead of being interpreted as a caste for that creature).
chaosvolt (reporter)
2015-03-01 09:19

No idea whether defining a fallback caste titled NONE would avoid this issue or not. Anyone tried !!SCIENCE!! on that?

- Issue History
Date Modified Username Field Change
2011-11-30 13:07 Quietust New Issue
2011-12-01 20:32 Quietust Note Added: 0019060
2012-03-02 13:26 Quietust Note Added: 0021000
2014-09-15 14:05 lethosor Assigned To => lethosor
2014-09-15 14:05 lethosor Status new => confirmed
2014-09-15 14:12 Quietust Note Added: 0030204
2015-03-01 09:19 chaosvolt Note Added: 0032296

Copyright © 2000 - 2010 MantisBT Group
Powered by Mantis Bugtracker