Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: [40d] Cat "cancels Store Item in Stockpile: Too injured"  (Read 3752 times)

Great Cthulhu

  • Bay Watcher
  • Likes metal for its screaming guitars.
    • View Profile
[40d] Cat "cancels Store Item in Stockpile: Too injured"
« on: September 21, 2008, 05:11:15 pm »

I get a lot of messages saying things like "Atis Cattendolek, Cat (tame) cancels Store Item in Stockpile: Too injured".

Both of the cats in my fortress (both are pets) do this. Both are uninjured and only one has an owner with an injury. Also, I didn't expect a cat to haul stuff. Would be funny if it was moving balls of thread around though. :)
Logged

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: [40d] Cat "cancels Store Item in Stockpile: Too injured"
« Reply #1 on: September 21, 2008, 06:26:51 pm »

Do any of you people actually check reported bugs before you post?!?

Sorry for the outburst, but this is like the sixth time that this bug has been reported. Cats will currently carry slain vermin again but what happens is that the game checks to see if the cat can carry anything with a grasp token and says, no it can't, so it displays an injured message. It then immediately realizes that the cat can carry the corpse in its mouth and continues on its way. You can fix this by giving cats a [GRASP] token on their mouth body part, as this will solve the problem with the least amount of side effects.
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

Great Cthulhu

  • Bay Watcher
  • Likes metal for its screaming guitars.
    • View Profile
Re: [40d] Cat "cancels Store Item in Stockpile: Too injured"
« Reply #2 on: September 22, 2008, 03:19:20 am »

Sorry for causing you frustration. I did in fact search for this bug, but couldn't find anything. (I guess my search query was too specific.)

Anyway, thanks for the analysis and workaround.
Logged

axus

  • Bay Watcher
  • Axe Murderer
    • View Profile
Re: [40d] Cat "cancels Store Item in Stockpile: Too injured"
« Reply #3 on: September 22, 2008, 08:13:55 am »

I think my cat at home has a [GRASP] token for his mouth
Logged

Tormy

  • Bay Watcher
  • I shall not pass?
    • View Profile
Re: [40d] Cat "cancels Store Item in Stockpile: Too injured"
« Reply #4 on: September 22, 2008, 09:29:37 am »

Do any of you people actually check reported bugs before you post?!?

Sadly most of the people just won't use the search feature.  ::)
Logged

foop

  • Bay Watcher
    • View Profile
Re: [40d] Cat "cancels Store Item in Stockpile: Too injured"
« Reply #5 on: September 24, 2008, 02:33:56 pm »

Sadly most of the people just won't use the search feature.  ::)

I do.  So I won't tell you that my cats are refusing to carry vermin briefly because they think they're injured (I've just upgraded to 40d).
Logged

ERoberts

  • Bay Watcher
    • View Profile
Re: [40d] Cat "cancels Store Item in Stockpile: Too injured"
« Reply #6 on: September 26, 2008, 07:23:17 pm »

I want to add [grasp] to my cat.

here is my cat:
Code: [Select]
[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: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]

where exactly do I add the [grasp] tag?
Logged

Neoskel

  • Bay Watcher
  • Read or the owl will eat you.
    • View Profile
Re: [40d] Cat "cancels Store Item in Stockpile: Too injured"
« Reply #7 on: September 26, 2008, 07:38:54 pm »

I want to add [grasp] to my cat.

here is my cat:
Code: [Select]
[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: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]

where exactly do I add the [grasp] tag?

To the body, not the creature. You'll have to add another thing in the body raws like
Code: [Select]
[BODY:CAT_MOUTH]
[BP:CAT_MOUTH:mouth][CONTYPE:HEAD][MOUTH][SMALL][EMBEDDED][APERTURE][GRASP]
And replace MOUTH in the cat creature raws with CAT_MOUTH under [BODY:]

This is just an example, feel free to add [GRASP] to whatever you like.

Heck, an easier way would be to just add PINCERS under [BODY:] in the cat creature raws. That would result in a cat/crab hybrid, but it gets the job done.
« Last Edit: September 26, 2008, 07:41:16 pm by Neoskel »
Logged
Urist Mcsurvivalist has been accosted by edible vermin lately.

Goblins: The fourth iron ore.

Yanlin

  • Bay Watcher
  • Legendary comedian.
    • View Profile
Re: [40d] Cat "cancels Store Item in Stockpile: Too injured"
« Reply #8 on: September 27, 2008, 02:59:23 pm »

Quote
Heck, an easier way would be to just add PINCERS under [BODY:] in the cat creature raws. That would result in a cat/crab hybrid, but it gets the job done.

http://www.youtube.com/watch?v=vydhv_p7Jxs

Excellent solution though. You should Email Today One.
Logged
WE NEED A SLOGAN!

Alopix

  • Bay Watcher
    • View Profile
Re: [40d] Cat "cancels Store Item in Stockpile: Too injured"
« Reply #9 on: October 08, 2008, 05:38:02 am »

OK. I'm trying the grasp suggestion now. I added the following line to /raws/body_default.txt:
Code: [Select]
[BODY:PETMOUTH][CONTYPE:HEAD][MOUTH][SMALL][EMBEDDED][APERTURE][GRASP]and replaced the MOUTH tag in creature_domestic.txt with PETMOUTH.
I've also added verminhunter and petmouth to dogs, we'll see if that works.
Logged
Nothing like a romantic dinner of raw mushrooms in the glow of pure hate and destruction

Pilsu

  • Bay Watcher
    • View Profile
Re: [40d] Cat "cancels Store Item in Stockpile: Too injured"
« Reply #10 on: October 09, 2008, 12:39:03 pm »

I added the new part called CAT_MOUTH into the body raws now but do I need to adjust the bite attack of the cat? I mean, it has CAT_MOUTH now, that might interfere with MOUTH being used for biting right?
Logged

Footkerchief

  • Bay Watcher
  • The Juffo-Wup is strong in this place.
    • View Profile
Re: [40d] Cat "cancels Store Item in Stockpile: Too injured"
« Reply #11 on: October 09, 2008, 04:30:59 pm »

No.  It's a little confusing here because MOUTH is both a body part name, and a tag that can be applied to body parts.  The MOUTH in ATTACK:MAIN:BYTYPE:MOUTH refers to the [MOUTH] tag which PETMOUTH also has. 
Logged

Alopix

  • Bay Watcher
    • View Profile
Re: [40d] Cat "cancels Store Item in Stockpile: Too injured"
« Reply #12 on: October 09, 2008, 06:28:55 pm »

I tested it today. It doesn't work. Well, At least I didn't see it on cats, because on embark my cat found a herd of bats and decided to spend an entire season killing ~50 of them. But the dog I added verminhunter to still did it constantly. BTW, verminhunter also generates the behavior where it automatically chooses its own owner, it would seem. Haven't tested the pincers yet.
Logged
Nothing like a romantic dinner of raw mushrooms in the glow of pure hate and destruction

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: [40d] Cat "cancels Store Item in Stockpile: Too injured"
« Reply #13 on: October 11, 2008, 09:01:39 am »

BTW, verminhunter also generates the behavior where it automatically chooses its own owner, it would seem. Haven't tested the pincers yet.
Yep, already on the wiki.
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

Time Kitten

  • Bay Watcher
  • Evil Spirit
    • View Profile
Re: [40d] Cat "cancels Store Item in Stockpile: Too injured"
« Reply #14 on: October 11, 2008, 03:34:35 pm »

My unmodded cats seem to be able to take the vermin partway.  How is it they are able to do this?
Logged
Pages: [1] 2