Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Hair descriptor problem  (Read 477 times)

Musashi

  • Bay Watcher
  • cancels Work: distracted by Dwarf Fortress.
    • View Profile
Hair descriptor problem
« on: January 12, 2011, 06:26:45 am »

Hi, I modded in a new mostly humanoid creature. In-game, I can see its size, its voice, its eye colour and the colour of its skin... but NOT of its hair.
What am I doing wrong? For information, all members of this species are supposed to have only one hairstyle, and it is straight, very long hair.
Code: [Select]
creature_standard

[OBJECT:CREATURE]


[CREATURE:APSARA]
[DESCRIPTION:A haunting humanoid thought to be born from ghostly possessions, its body twisted beyond recognition over time. It has three eyes, arms that migrated to the side of its head, incredibly long hair, and waxy colourful skin. Normally hostile towards sentient creatures, it can however become a priceless source of inspiration for any artist.]
[NAME:apsara:apsaras:apsarian]
[CASTE_NAME:apsara:apsaras:apsarian]
[PREFSTRING:many hypnotic eyes]
[PREFSTRING:otherwordly gestures]
[CREATURE_TILE:'a'][COLOR:0:0:1]
[BIOME:ANY_LAND]
[NATURAL]
[LARGE_ROAMING][FREQUENCY:75]
[MEANDERER]
[LOOSE_CLUSTERS]
[MISCHIEVIOUS]
[NO_SLEEP]
[DIURNAL]
[NOFEAR]
[PET]
[TRAINABLE_WAR]
[COMMON_DOMESTIC]
[PETVALUE:200]
[CAN_SPEAK]
[UTTERANCES]
[POWER]
[SPEED:2500]
[BODY:APSARA:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:SPINE:5FINGERS:5TOES:RIBCAGE]
[BODY_APPEARANCE_MODIFIER:HEIGHT:50:75:88:100:112:115:125]
[APP_MOD_IMPORTANCE:500]
[SET_BP_GROUP:BY_CATEGORY:THROAT]
[BP_APPEARANCE_MODIFIER:DEEP_VOICE:0:70:90:100:110:130:200]
[BP_APPEARANCE_MODIFIER:RASPY_VOICE:0:70:90:100:110:130:200]
[SET_BP_GROUP:BY_CATEGORY:LIP]
[BP_APPEARANCE_MODIFIER:THICKNESS:50:70:90:100:110:130:200]
[APP_MOD_NOUN:lips:PLURAL]
[BODY_DETAIL_PLAN:STANDARD_MATERIALS]
[BODY_DETAIL_PLAN:STANDARD_TISSUES]
[BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:SKIN:FAT:MUSCLE:BONE:CARTILAGE]
[USE_MATERIAL_TEMPLATE:NAIL:NAIL_TEMPLATE]
[USE_TISSUE_TEMPLATE:NAIL:NAIL_TEMPLATE]
[USE_MATERIAL_TEMPLATE:HAIR:HAIR_TEMPLATE]
[USE_TISSUE_TEMPLATE:HAIR:HAIR_TEMPLATE]
[TISSUE_LAYER:BY_CATEGORY:FINGER:NAIL:FRONT]
[TISSUE_LAYER:BY_CATEGORY:TOE:NAIL: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]
[USE_MATERIAL_TEMPLATE:PUS:PUS_TEMPLATE]
[PUS:LOCAL_CREATURE_MAT:PUS:LIQUID]
[CREATURE_CLASS:GENERAL_POISON]
[GETS_WOUND_INFECTIONS]
[GETS_INFECTIONS_FROM_ROT]
[BODY_SIZE:0:0:70000]
[ATTACK:PUNCH:BODYPART:BY_TYPE:GRASP]
[ATTACK_SKILL:GRASP_STRIKE]
[ATTACK_VERB:punch:punches]
[ATTACK_CONTACT_PERC:100]
[ATTACK_FLAG_WITH]
[ATTACK_PRIORITY:MAIN]
[ATTACK:KICK:BODYPART:BY_TYPE:STANCE]
[ATTACK_SKILL:STANCE_STRIKE]
[ATTACK_VERB:kick:kicks]
[ATTACK_CONTACT_PERC:100]
[ATTACK_FLAG_WITH]
[ATTACK_PRIORITY:SECOND]
[ATTACK:SCRATCH:CHILD_TISSUE_LAYER_GROUP:BY_TYPE:GRASP:BY_CATEGORY:FINGER:NAIL]
[ATTACK_SKILL:GRASP_STRIKE]
[ATTACK_VERB:scratch:scratches]
[ATTACK_CONTACT_PERC:100]
[ATTACK_PENETRATION_PERC:100]
[ATTACK_FLAG_EDGE]
[ATTACK_PRIORITY:SECOND]
[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:SECOND]
[ATTACK_FLAG_CANLATCH]
[CASTE:FEMALE]
[FEMALE]
[MULTIPLE_LITTER_RARE]
[CASTE:MALE]
[MALE]
[SELECT_CASTE:ALL]
[SET_TL_GROUP:BY_CATEGORY:ALL:HAIR]
[TL_COLOR_MODIFIER:BLACK:1:BROWN:1:WHITE:1:GRAY:1:LIGHT_BROWN:1:DARK_BROWN:1:TAN:1:AUBURN:1:CHESTNUT:1:SLATE_GRAY:1:CREAM:1:CINNAMON:1:BUFF:1:BEIGE:1:CHOCOLATE:1:CHARCOAL:1:ASH_GRAY:1:RUSSET:1:IVORY:1:FLAX:1:PUMPKIN:1:GOLD:1:GOLDEN_YELLOW:1:GOLDENROD:1:COPPER:1:SAFFRON:1:AMBER:1:MAHOGANY:1:OCHRE:1:PALE_BROWN:1:RAW_UMBER:1:BURNT_SIENNA:1:BURNT_UMBER:1:SEPIA:1:DARK_TAN:1:PALE_CHESTNUT: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N:1:IRIS_EYE_TAUPE_DARK:1:IRIS_EYE_FUCHSIA_AND_ORANGE:1:IRIS_EYE_BLUE_AND_GREEN:1:IRIS_EYE_RED_AND_YELLOW:1:IRIS_EYE_BLACK_AND_YELLOW:1:IRIS_EYE_PURPLE_AND_GRAY:1:IRIS_EYE_TURQUOISE:1]
[TLCM_NOUN:eyes:PLURAL]
[SET_TL_GROUP:BY_CATEGORY:ALL:SKIN]
[TL_COLOR_MODIFIER:ASH_GRAY:1:BLACK:1:MIDNIGHT_BLUE:1:EMERALD:1:MAROON:1:SCARLET:1:AMBER:1:FERN_GREEN:1:TAN:1:GREEN:1:JADE:1:LIME:1:ECRU:1:PALE:1:SAPPHIRE:1:PINE_GREEN:1:SEA_GREEN:1:DARK_RED:1:BRONZE:1:DARK_BROWN:1:TEAL:1:DARK_PURPLE:1:DARK_PINK:1]
[TLCM_NOUN:skin:SINGULAR]
Code: [Select]
body_apsara

[OBJECT:BODY]
[BODY:APSARA]
[BP:UB:upper body:upper bodies][UPPERBODY][THOUGHT][CATEGORY:BODY_UPPER]
[DEFAULT_RELSIZE:1000]
[BP:LB:lower body:lower bodies][CON:UB][LOWERBODY][CATEGORY:BODY_LOWER]
[DEFAULT_RELSIZE:1000]
[BP:HD:head:STP][CON:UB][CATEGORY:HEAD]
[DEFAULT_RELSIZE:300]
[BP:RUL:right upper leg:STP][CON:LB][LIMB][RIGHT][CATEGORY:LEG_UPPER]
[DEFAULT_RELSIZE:500]
[BP:LUL:left upper leg:STP][CON:LB][LIMB][LEFT][CATEGORY:LEG_UPPER]
[DEFAULT_RELSIZE:500]
[BP:RLL:right lower leg:STP][CON:RUL][LIMB][RIGHT][CATEGORY:LEG_LOWER]
[DEFAULT_RELSIZE:400]
[BP:LLL:left lower leg:STP][CON:LUL][LIMB][LEFT][CATEGORY:LEG_LOWER]
[DEFAULT_RELSIZE:400]
[BP:RF:right foot:right feet][CON:RLL][STANCE][RIGHT][CATEGORY:FOOT]
[DEFAULT_RELSIZE:120]
[BP:LF:left foot:left feet][CON:LLL][STANCE][LEFT][CATEGORY:FOOT]
[DEFAULT_RELSIZE:120]
[BP:RUA:right upper arm:STP][CON:HD][LIMB][RIGHT][CATEGORY:ARM_UPPER]
[DEFAULT_RELSIZE:200]
[BP:LUA:left upper arm:STP][CON:HD][LIMB][LEFT][CATEGORY:ARM_UPPER]
[DEFAULT_RELSIZE:200]
[BP:RLA:right lower arm:STP][CON:RUA][LIMB][RIGHT][CATEGORY:ARM_LOWER]
[DEFAULT_RELSIZE:200]
[BP:LLA:left lower arm:STP][CON:LUA][LIMB][LEFT][CATEGORY:ARM_LOWER]
[DEFAULT_RELSIZE:200]
[BP:RH:right hand:STP][CON:RLA][GRASP][RIGHT][CATEGORY:HAND]
[DEFAULT_RELSIZE:80]
[BP:LH:left hand:STP][CON:LLA][GRASP][LEFT][CATEGORY:HAND]
[DEFAULT_RELSIZE:80]
[BP:REYE:right eye:STP][CON:HD][SIGHT][EMBEDDED][SMALL][RIGHT][CATEGORY:EYE]
[DEFAULT_RELSIZE:7]
[BP:LEYE:left eye:STP][CON:HD][SIGHT][EMBEDDED][SMALL][LEFT][CATEGORY:EYE]
[DEFAULT_RELSIZE:7]
[BP:EYE:center eye:STP][CON:HD][SIGHT][EMBEDDED][SMALL][CATEGORY:EYE]
[DEFAULT_RELSIZE:7]
[BP:NOSE:nose:STP][CON:HD][SMELL][SMALL][CATEGORY:NOSE]
[DEFAULT_RELSIZE:10]
[BP:L_CHEEK:left cheek:STP][CON:HD][CATEGORY:CHEEK][SMALL][EMBEDDED]
[DEFAULT_RELSIZE:10]
[BP:R_CHEEK:right cheek:STP][CON:HD][CATEGORY:CHEEK][SMALL][EMBEDDED]
[DEFAULT_RELSIZE:10]
[BP:L_EYELID:left eyelid:STP][CON:HD][CATEGORY:EYELID][SMALL][EMBEDDED]
[DEFAULT_RELSIZE:3]
[BP:R_EYELID:right eyelid:STP][CON:HD][CATEGORY:EYELID][SMALL][EMBEDDED]
[DEFAULT_RELSIZE:3]
[BP:L_LIP:lower lip:STP][CON:HD][CATEGORY:LIP][SMALL][EMBEDDED]
[DEFAULT_RELSIZE:6]
[BP:U_LIP:upper lip:STP][CON:HD][CATEGORY:LIP][SMALL][EMBEDDED]
[DEFAULT_RELSIZE:6]
[BP:MOUTH:mouth:STP][CON:HD][MOUTH][SMALL][EMBEDDED][APERTURE][CATEGORY:MOUTH]
[DEFAULT_RELSIZE:20]
[BP:U_F_TOOTH:upper front tooth:upper front teeth][CON:HD][CATEGORY:TOOTH][NUMBER:6][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
Adding individual names tells the game what to call each individual part in a NUMBERed bodypart.  This command replaces "first upper front tooth" for example.
[INDIVIDUAL_NAME:first upper right incisor:STP]
[INDIVIDUAL_NAME:first upper left incisor:STP]
[INDIVIDUAL_NAME:second upper right incisor:STP]
[INDIVIDUAL_NAME:second upper left incisor:STP]
[INDIVIDUAL_NAME:right eye tooth:right eye teeth]
[INDIVIDUAL_NAME:left eye tooth:left eye teeth]
[BP:L_F_TOOTH:lower front tooth:lower front teeth][CON:HD][CATEGORY:TOOTH][NUMBER:6][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[INDIVIDUAL_NAME:first lower right incisor:STP]
[INDIVIDUAL_NAME:first lower left incisor:STP]
[INDIVIDUAL_NAME:second lower right incisor:STP]
[INDIVIDUAL_NAME:second lower left incisor:STP]
[INDIVIDUAL_NAME:lower right canine:STP]
[INDIVIDUAL_NAME:lower left canine:STP]
[BP:U_R_B_TOOTH:upper right back tooth:upper right back teeth][CON:HD][CATEGORY:TOOTH][NUMBER:4][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[INDIVIDUAL_NAME:first upper right premolar:STP]
[INDIVIDUAL_NAME:second upper right premolar:STP]
[INDIVIDUAL_NAME:first upper right molar:STP]
[INDIVIDUAL_NAME:second upper right molar:STP]
[BP:L_R_B_TOOTH:lower right back tooth:lower right back teeth][CON:HD][CATEGORY:TOOTH][NUMBER:4][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[INDIVIDUAL_NAME:first lower right premolar:STP]
[INDIVIDUAL_NAME:second lower right premolar:STP]
[INDIVIDUAL_NAME:first lower right molar:STP]
[INDIVIDUAL_NAME:second lower right molar:STP]
[BP:U_L_B_TOOTH:upper left back tooth:upper left back teeth][CON:HD][CATEGORY:TOOTH][NUMBER:4][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[INDIVIDUAL_NAME:first upper left premolar:STP]
[INDIVIDUAL_NAME:second upper left premolar:STP]
[INDIVIDUAL_NAME:first upper left molar:STP]
[INDIVIDUAL_NAME:second upper left molar:STP]
[BP:L_L_B_TOOTH:lower left back tooth:lower left back teeth][CON:HD][CATEGORY:TOOTH][NUMBER:4][SOCKET][SMALL]
[DEFAULT_RELSIZE:1]
[INDIVIDUAL_NAME:first lower left premolar:STP]
[INDIVIDUAL_NAME:second lower left premolar:STP]
[INDIVIDUAL_NAME:first lower left molar:STP]
[INDIVIDUAL_NAME:second lower left molar:STP]
[BP:THROAT:throat:STP][CON:HD][THROAT][EMBEDDED][SMALL][CATEGORY:THROAT]
[DEFAULT_RELSIZE:40]
[BP:NECK:upper spine:STP][CON:HD][NERVOUS][INTERNAL][SMALL][SKELETON][CONNECTOR][CATEGORY:SPINE]
[DEFAULT_RELSIZE:100]
[BP:SKULL:skull:STP]
[CON:HD]
[INTERNAL][SMALL]
[CATEGORY:SKULL]
[DEFAULT_RELSIZE:20] -- small until there's a notion of hollowness/etc.
This lets you make a totem out of the part.  The relationship between the skull and the brain is established within body detail plans or the creature itself.
[TOTEMABLE]
Logged
I don't mean to alarm you, but it appears that your Dwarves are all in fact elephants.

3

  • Bay Watcher
    • View Profile
Re: Hair descriptor problem
« Reply #1 on: January 12, 2011, 08:24:05 am »

The creature doesn't have any hair. You've defined hair, but you aren't using it anywhere.

The HEAD_HAIR_TISSUE_LAYERS detail plan should do it.
Logged

Musashi

  • Bay Watcher
  • cancels Work: distracted by Dwarf Fortress.
    • View Profile
Re: Hair descriptor problem
« Reply #2 on: January 12, 2011, 08:54:30 am »

Thanks. I'm an utter newbie when it comes to modding, I only started yesterday.  :-\
Logged
I don't mean to alarm you, but it appears that your Dwarves are all in fact elephants.