Bay 12 Games Forum

Please login or register.

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

Author Topic: A crash in description of a transformed creature (bug?) [fixed]  (Read 4575 times)

trees

  • Bay Watcher
  • [MUNDANE]
    • View Profile
Re: A crash in description of a transformed creature (bug?)
« Reply #15 on: February 19, 2012, 05:24:36 pm »

It seems this bug may also happen if you transform into a default creature.

I assume you mean something like this:

Code: [Select]
[CE_BODY_TRANSFORMATION:START:0]
[CE:CREATURE:WOLF:DEFAULT]

The string after WOLF should refer to a caste - there's no caste of wolves called DEFAULT so the game probably freaks out a bit. Replace it with FEMALE or MALE and it should be okay.

I had similar issues with transformed beings causing crashes when their description was viewed, but it went away once I added a caste to the creature and made the interaction target that caste. I didn't do anything with the description, though.
Logged
I am often bad at phrasing things - don't hesitate to ask for clarification if something I said doesn't make sense.

RadHazard

  • Bay Watcher
  • Beware their adorable guns!
    • View Profile
Re: A crash in description of a transformed creature (bug?) [fixed]
« Reply #16 on: February 19, 2012, 10:15:51 pm »

Perhaps I should have been more clear :)
By "default" I was referring to creatures included in vanilla DF. The interaction does have [CE:CREATURE:WOLF:MALE] in it.  The problem is that wolves don't have caste-specific descriptions, as far as I know.
Logged
To make magma-proof, set melting/boiling temperature higher than 12000. To make magma proof, set magma to be brewable.

Custom transformations got you down?
Here, have some ‼Science‼

Xangi

  • Bay Watcher
  • ɛkzændʒiː
    • View Profile
Re: A crash in description of a transformed creature (bug?) [fixed]
« Reply #17 on: March 07, 2012, 10:46:54 pm »

I know this is a HUUUUUUGE necro, and I'm sorry, but I'm having this same issue, and moving CASTE_NAME and DESCRIPTION to the caste is not helping. Here is code for the creature

Code: [Select]

[CREATURE:WEREWOLF_R]
[NAME:werewolf:werewolves:werewolf]
[CHILD:1][GENERAL_CHILD_NAME:werewolf pup:werewolf pups]
[CREATURE_TILE:165][COLOR:6:0:0]
[INTELLIGENT]
[CRAZED]
[CANOPENDOORS]
[ATTACK_TRIGGER:20:0:0]
[NIGHT_CREATURE_HUNTER]
[EVIL]
[NO_UNIT_TYPE_COLOR]
[BUILDINGDESTROYER:2]
[LAIR:SIMPLE_BURROW:50]
[LARGE_PREDATOR][MEANDERER]
[LARGE_ROAMING][FREQUENCY:5]
[GRASSTRAMPLE:0][SUPERNATURAL]
[BONECARN]
[SOUND:PEACEFUL_INTERMITTENT:200:1000:VOCALIZATION:growl:growls:a growl]
[PREFSTRING:swift and deadly violence]
[PRONE_TO_RAGE:20][NOFEAR]
[NATURAL_SKILL:BITE:10]
[NATURAL_SKILL:GRASP_STRIKE:10]
[NATURAL_SKILL:STANCE_STRIKE:10]
[NATURAL_SKILL:WRESTLING:10]
[GENERAL_MATERIAL_FORCE_MULTIPLIER:1:1000] good luck using anything but silver.
[MATERIAL_FORCE_MULTIPLIER:INORGANIC:SILVER:10000:1] Silver should slice them like a hot knife through butter[BODY:HUMANOID:TAIL:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:4TOES:HUMANOID_JOINTS:MOUTH:TONGUE:GENERIC_TEETH_WITH_LARGE_EYE_TEETH:RIBCAGE]
[BODYGLOSS:PAW]
[BODY_DETAIL_PLAN:STANDARD_MATERIALS]
[BODY_DETAIL_PLAN:STANDARD_TISSUES]
[SELECT_TISSUE:HAIR]
[INSULATION:200]
[BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]
[BODY_DETAIL_PLAN:BODY_HAIR_TISSUE_LAYERS:HAIR]
[USE_MATERIAL_TEMPLATE:CLAW:NAIL_TEMPLATE]
[USE_TISSUE_TEMPLATE:CLAW:CLAW_TEMPLATE]
[TISSUE_LAYER:BY_CATEGORY:FINGER:CLAW:FRONT]
[TISSUE_LAYER:BY_CATEGORY:TOE:CLAW:FRONT]
[SELECT_TISSUE_LAYER:HEART:BY_CATEGORY:HEART]
[PLUS_TISSUE_LAYER:SKIN:BY_CATEGORY:THROAT]
[TL_MAJOR_ARTERIES]
[BODY_DETAIL_PLAN:STANDARD_HEAD_POSITIONS]
[BODY_DETAIL_PLAN:HUMANOID_HEAD_POSITIONS]
[BODY_DETAIL_PLAN:HUMANOID_RIBCAGE_POSITIONS]
[BODY_DETAIL_PLAN:HUMANOID_RELSIZES]
[USE_MATERIAL_TEMPLATE:SINEW:SINEW_TEMPLATE]
[TENDONS:LOCAL_CREATURE_MAT:SINEW:200]
[LIGAMENTS:LOCAL_CREATURE_MAT:SINEW:200]
[HAS_NERVES]
[USE_MATERIAL_TEMPLATE:BLOOD:BLOOD_TEMPLATE]
[BLOOD:LOCAL_CREATURE_MAT:BLOOD:LIQUID]
[CREATURE_CLASS:GENERAL_POISON]
[GETS_WOUND_INFECTIONS]
[GETS_INFECTIONS_FROM_ROT]
[USE_MATERIAL_TEMPLATE:PUS:PUS_TEMPLATE]
[PUS:LOCAL_CREATURE_MAT:PUS:LIQUID]
[BODY_SIZE:0:0:1100000]
[BODY_APPEARANCE_MODIFIER:HEIGHT:90:95:97:100:103:105:110]
[APP_MOD_IMPORTANCE:500]
[BODY_APPEARANCE_MODIFIER:BROADNESS:90:95:97:100:103:105:110]
[APP_MOD_IMPORTANCE:500]
[ATTACK:BITE:CHILD_BODYPART_GROUP:BY_CATEGORY:HEAD:BY_CATEGORY:TOOTH]
[ATTACK_SKILL:BITE]
[ATTACK_VERB:bite:bites]
[ATTACK_CONTACT_PERC:100]
[ATTACK_PENETRATION_PERC:100]
[ATTACK_FLAG_EDGE]
[ATTACK_PRIORITY:MAIN]
[ATTACK_FLAG_CANLATCH]
[SPECIALATTACK_INTERACTION:WEREWOLF_CURSE_R]
[ATTACK:SCRATCH:CHILD_TISSUE_LAYER_GROUP:BY_TYPE:GRASP:BY_CATEGORY:ALL:CLAW]
[ATTACK_SKILL:GRASP_STRIKE]
[ATTACK_VERB:scratch:scratches]
[ATTACK_CONTACT_PERC:300]
[ATTACK_PENETRATION_PERC:500]
[ATTACK_FLAG_EDGE]
[ATTACK_PRIORITY:MAIN]
[CV_NEW_TAG:ATTACK_VELOCITY_MODIFIER:4000]
[ATTACK:PUNCH:BODYPART:BY_TYPE:GRASP]
[ATTACK_SKILL:GRASP_STRIKE]
[ATTACK_VERB:punch:punches]
[ATTACK_CONTACT_PERC:100]
[ATTACK_FLAG_WITH]
[ATTACK_PRIORITY:SECOND]
[ATTACK:KICK:BODYPART:BY_TYPE:STANCE]
[ATTACK_SKILL:STANCE_STRIKE]
[ATTACK_VERB:kick:kicks]
[ATTACK_CONTACT_PERC:100]
[ATTACK_FLAG_WITH]
[ATTACK_PRIORITY:SECOND]
[NOCTURNAL]
[HOMEOTHERM:10070]
[SWIMS_INNATE][SWIM_SPEED:2500]
[MUNDANE]
[CASTE:FEMALE]
[FEMALE]
[SPEED:600]
[DESCRIPTION:A monster resembling a wolf that walks on two legs like a man. It drools constantly. It is said that only silver can harm the creature. Now you will know why you fear the night.]
[CASTE_NAME:werewolf:werewolves:werewolf]
[CASTE:MALE]
[MALE]
[SPEED:600]
[DESCRIPTION:A monster resembling a wolf that walks on two legs like a man. It drools constantly. It is said that only silver can harm the creature. Now you will know why you fear the night.]
[CASTE_NAME:werewolf:werewolves:werewolf]
[SELECT_CASTE:ALL]
[SET_TL_GROUP:BY_CATEGORY:ALL:HAIR]
[TL_COLOR_MODIFIER:DARK_SCARLET:1]
[TLCM_NOUN:hair:SINGULAR]
[SET_TL_GROUP:BY_CATEGORY:ALL:SKIN]
[TL_COLOR_MODIFIER:AUBURN:1]
[TLCM_NOUN:skin:SINGULAR]
[SET_TL_GROUP:BY_CATEGORY:EYE:EYE]
[TL_COLOR_MODIFIER:IRIS_EYE_ORANGE:1]
[TLCM_NOUN:eyes:PLURAL]
[SELECT_MATERIAL:ALL]
[MULTIPLY_VALUE:20]

Is it the TL_COLOR modifiers? I'm about ready to just give up on this.
Logged
A spooky ghost.

Previous mod (34.11):
<<Fear The Night!>>
http://www.bay12forums.com/smf/index.php?topic=103747.0

Meph

  • Bay Watcher
    • View Profile
    • worldbicyclist
Re: A crash in description of a transformed creature (bug?) [fixed]
« Reply #18 on: March 07, 2012, 10:49:44 pm »

Quote
Is it the TL_COLOR modifiers?

I say yes, they conflict if the new creature has the same color modifiers, but with different colors. If the orig. creature has blue eyes, the newly transformed one has red eyes, and you open the description, the game just gives up, since it does not know if it should display red or blue. I fixed my crashed by removing the color modifiyers from the original creature.

Hope that helps, It took me about 5 hours to figure that out, working on my slaves...
Logged
::: ☼Meph Tileset☼☼Map Tileset☼- 32x graphic sets with TWBT :::
::: ☼MASTERWORK DF☼ - A comprehensive mod pack now on Patreon - 250.000+ downloads and counting :::
::: WorldBicyclist.com - Follow my bike tours around the world - 148 countries visited :::

Xangi

  • Bay Watcher
  • ɛkzændʒiː
    • View Profile
Re: A crash in description of a transformed creature (bug?) [fixed]
« Reply #19 on: March 07, 2012, 10:51:59 pm »

Quote
Is it the TL_COLOR modifiers?

I say yes, they conflict if the new creature has the same color modifiers, but with different colors. If the orig. creature has blue eyes, the newly transformed one has red eyes, and you open the description, the game just gives up, since it does not know if it should display red or blue. I fixed my crashed by removing the color modifiyers from the original creature.

Hope that helps, It took me about 5 hours to figure that out, working on my slaves...
Ok, thanks so much, I'll try that and see.

EDIT: Seems to be working, for the scorps at least. I'll try with the wolves after.
« Last Edit: March 07, 2012, 11:04:16 pm by Xangi »
Logged
A spooky ghost.

Previous mod (34.11):
<<Fear The Night!>>
http://www.bay12forums.com/smf/index.php?topic=103747.0

Courtesy Arloban

  • Bay Watcher
  • This isn't a fortress... ...It's also not a map.
    • View Profile
Re: A crash in description of a transformed creature (bug?) [fixed]
« Reply #20 on: March 08, 2012, 02:30:12 am »

Keeping it up so more people can get a look at it.
Quote
Is it the TL_COLOR modifiers?

I say yes, they conflict if the new creature has the same color modifiers, but with different colors. If the orig. creature has blue eyes, the newly transformed one has red eyes, and you open the description, the game just gives up, since it does not know if it should display red or blue. I fixed my crashed by removing the color modifiyers from the original creature.

Hope that helps, It took me about 5 hours to figure that out, working on my slaves...
I was doing the same thing after I saw a posting why the colors were broke but some of my extracted werebeasts were crashing anyways, so I thought why not just copy the color modifiers to the new creature and make them match up?  Also doesn't work 100% because some creatures could have color modifiers for materials the other's don't have, but they can be added as something different on the other creature.
Logged
Maybe that the dwarves never died and everyone is just shunning them.
"Wait, what are you doing?  I don't want to go in there!  No, I'm still alive, you can't do this to me!  Is Anybody listening?  Hello... Can someone let me out?  Help me!  Is anyone there?  I'm running out of air!"

SethCreiyd

  • Bay Watcher
  • [VESPERTINE]
    • View Profile
Re: A crash in description of a transformed creature (bug?) [fixed]
« Reply #21 on: March 18, 2012, 10:44:25 am »

Keeping it up so more people can get a look at it.
Quote
Is it the TL_COLOR modifiers?

I say yes, they conflict if the new creature has the same color modifiers, but with different colors. If the orig. creature has blue eyes, the newly transformed one has red eyes, and you open the description, the game just gives up, since it does not know if it should display red or blue. I fixed my crashed by removing the color modifiyers from the original creature.

Hope that helps, It took me about 5 hours to figure that out, working on my slaves...
It's a great help, thanks a bunch.
Logged
Pages: 1 [2]