- 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.
Difference between revisions of "40d:Cat cancels Store Item in Stockpile: Too injured"
(Adding missing quality template tags (0696/2921)) |
(correction - what's really happening) |
||
Line 8: | Line 8: | ||
:It realizes it has no hands, cries out "My hands! My beautiful hands! Someone has chopped off my beautiful han... wait, I'm a cat, I don't have hands. Right," and then continues on with its business. | :It realizes it has no hands, cries out "My hands! My beautiful hands! Someone has chopped off my beautiful han... wait, I'm a cat, I don't have hands. Right," and then continues on with its business. | ||
+ | This error {{L|announcement}} is actually caused by an old bug in the system which was reintroduced in 40d. When a {{L|pet}} {{L|cat}} kills a {{L|vermin}}, it picks it up with its mouth and carries it to its owner, to bask in the display of gratitude that every cat owner shows upon being gifted small dead animals. | ||
− | + | Once it gets to its owner, it realizes that it needs to get rid of the vermin and decides that the best way to do this is to haul it to a refuse stockpile. However, the cat's mouth does not possess the <tt>[GRASP]</tt> tag, so it generates this error message and drops the vermin on the ground (which it was supposed to do in the first place). | |
− | |||
− | However the cat's mouth does not possess the <tt>[GRASP]</tt> tag, so it | ||
== Fixing the bug ==<!-- NOTE - this fix is NOT a "modification", in the user-sense. It is a line of code that got deleted between versions, and so is, in fact, "authorized".--> | == Fixing the bug ==<!-- NOTE - this fix is NOT a "modification", in the user-sense. It is a line of code that got deleted between versions, and so is, in fact, "authorized".--> | ||
Line 58: | Line 57: | ||
− | Note that you don't have to edit the <tt>[ATTACK]</tt> line, even though it contains a <tt>MOUTH</tt> too. This is because the "mouth" in this case is referring to | + | Note that you don't have to edit the <tt>[ATTACK]</tt> line, even though it contains a <tt>MOUTH</tt> too. This is because the "mouth" in this case is referring to the [MOUTH] body part token, not the body part itself (you'll note that our <tt>CAT_MOUTH</tt> has this mouth tag, too). |
{{Errors FAQ}} | {{Errors FAQ}} |
Revision as of 15:53, 29 April 2011
This article is about an older version of DF. |
This article or section has been rated D for Dwarf. It may include witty humour, not-so-witty humour, bad humour, in-jokes, pop culture references, and references to the Bay12 forums. Don't believe everything you read, and if you miss some of the references, don't worry. It was inevitable. |
- Your cat kills a Template:L.
- It reaches down to pick it up.
- It realizes it has no hands, cries out "My hands! My beautiful hands! Someone has chopped off my beautiful han... wait, I'm a cat, I don't have hands. Right," and then continues on with its business.
This error Template:L is actually caused by an old bug in the system which was reintroduced in 40d. When a Template:L Template:L kills a Template:L, it picks it up with its mouth and carries it to its owner, to bask in the display of gratitude that every cat owner shows upon being gifted small dead animals.
Once it gets to its owner, it realizes that it needs to get rid of the vermin and decides that the best way to do this is to haul it to a refuse stockpile. However, the cat's mouth does not possess the [GRASP] tag, so it generates this error message and drops the vermin on the ground (which it was supposed to do in the first place).
Fixing the bug
As your cat and vermin population expands this message becomes more and more common, but it is easy enough to fix by Template:L (the exact steps are explained below). You don't even have to Template:L.
Step One
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. Specifically, a mouth which can pick things up. Now we need to attach this body part to the cat!
Step Two
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]
And you're done.
Noted Error: Once a cat adopts a dwarf, this no longer works
Note that you don't have to edit the [ATTACK] line, even though it contains a MOUTH too. This is because the "mouth" in this case is referring to the [MOUTH] body part token, not the body part itself (you'll note that our CAT_MOUTH has this mouth tag, too).