v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

40d Talk:Cat cancels Store Item in Stockpile: Too injured

From Dwarf Fortress Wiki
Jump to navigation Jump to search

Okay, this is really starting to irritate me. The various links to info both here and on the forums require you to fully comprehend modding in order to fix this bug. Can someone please post step-by-step instructions? --RomeoFalling 20:02, 6 November 2008 (EST)

Open raw/objects/body_default.txt and add a new entry:
[BODY:CAT_MOUTH]
[BP:CAT_MOUTH:mouth][CONTYPE:HEAD][MOUTH][SMALL][EMBEDDED][APERTURE][GRASP]
This creates a new body part in your dwarf universe. Now we need to attach this body part to the cat! So open raw/objects/creature_domestic.txt and edit the cat to:
[CREATURE:CAT]
       [NAME:cat:cats:cat]
       [TILE:'c'][COLOR:0:0:1]
       [VERMINHUNTER]
       [PETVALUE:20]
       [CARNIVORE][NATURAL][PET]
       [LARGE_ROAMING]
       [COMMON_DOMESTIC][BENIGN]
       [PREFSTRING:aloofness]
       [BODY:QUADRUPED:TAIL:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:THROAT:NECK:SPINE:BRAIN:CAT_MOUTH]
       [BODYGLOSS:PAW]
       [SIZE:3]
       [MAXAGE:10:20]
       [ATTACK:MAIN:BYTYPE:MOUTH:bite:bites:1:6:GORE][ATTACKFLAG_CANLATCH]
       [CHILD:1][CHILDNAME:kitten:kittens]
       [FAT:1]
       [DIURNAL]
       [STANDARD_FLESH]
       [HOMEOTHERM:10070]
       [LAYERING:100]
       [SWIMS_INNATE][SWIM_SPEED:2500]
       [MUNDANE]
Note that it can still attack with a normal mouth (you don't need to edit the ATTACK line) - in this case "Mouth" is referring to a Tag, not a Body-part (you'll note that our CAT_MOUTH has a mouth tag, too).
I'm unsure whether you have to generate a new world for this to apply.
I haven't tried it, so if someone can verify that the above instructions actually work, then feel free to copy it to the main article. --Juckto 21:59, 6 November 2008 (EST)
Thanks! Works like a charm. You do not have to create a new world for this to work. --RomeoFalling 02:19, 7 November 2008 (EST)

Actual Trigger[edit]

This doesn't actually trigger when the cat brings the vermin to its owner, since the owner isn't a stockpile - when the cat reaches its owner, there seems to be a chance that the owner will tell the cat to get rid of the vermin, at which point the cat is assigned a "Store item in stockpile" task associated with an appropriate Refuse stockpile, resulting in said task being cancelled due to "too injured". --Quietust 06:25, 15 November 2009 (UTC)