Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Some modding questions/ I need help  (Read 543 times)

Megaman3321

  • Bay Watcher
  • I'm everywhere but this Universe
    • View Profile
Some modding questions/ I need help
« on: March 20, 2011, 02:47:49 pm »

So, I'm doing my first modding project. It's a single creature called a "Nellisome," and I want it to 1) be hairless, 2)have claws that expand in wounds and 3)grow very quickly, 4) have multiple redundant organs, and 5) be really, really tough to kill and get in wars all the time.

I've completed all of those except 1, 3, and I don't know if I achieved 4). Also, it glitches in a way that prevents attacks from landing, and the description is glitched to crash the game. Could someone proofread the raw entry for errors?

Here's the raw (please note that I copy-pasta'd alot of stuff from the dwarf entry. Like I said, baby's first modding project :P )

Code: [Select]
[CREATURE:NELLIMOSOME]
[DESCRIPTION:A large hairless evil monster. It is horrifically cultured and seeks only to destroy all in its path.]
[NAME:nellim:nellims:nellismian]
[CREATURE_TILE:3][COLOR:1:2:1]
[CREATURE_SOLDIER_TILE:3]

[INTELLIGENT]
[SEVERONBREAKS]
[TRANCES]
[NOPAIN][NOEXERT]
[CAN_LEARN][CAN_SPEAK]
[CANOPENDOORS][LIKES_FIGHTING][BUILDINGDESTROYER:1]
[PREFSTRING:destructive might]
[BODY:HUMANOID:4EYES:8EARS:4LUNGS:3HEARTS:7LUNGS:GUTS:ORGANS:HUMANOID_JOINTS:THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:7TOES:MOUTH:FACIAL_FEATURES:TEETH:RIBCAGE]

[BODY_DETAIL_PLAN:STANDARD_MATERIALS]
[REMOVE_MATERIAL_HAIR]
[BODY_DETAIL_PLAN:STANDARD_TISSUES]
[REMOVE_MATERIAL:HAIR]
[BODY_DETAIL_PLAN:VERTEBRAE_TISSUE_LAYERS:SKIN:MUSCLE:BONE:CARTILAGE]

[USE_MATERIAL_TEMPLATE:NAIL:NAIL_TEMPLATE]
[USE_TISSUE_TEMPLATE:NAIL:NAIL_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:300]
[LIGAMENTS:LOCAL_CREATURE_MAT:SINEW:300]

[PHYS_ATT_RANGE:STRENGTH:850:1050:1250:1350:1550:1750:2650]             ++
[PHYS_ATT_RANGE:AGILITY:700:900:1000:1200:1500:2000:2500]               ++
[PHYS_ATT_RANGE:TOUGHNESS:400:500:600:700:1000:1900:2000]               +
[MENT_ATT_RANGE:ANALYTICAL_ABILITY:600:800:1000:1100:1250:1450:2050]    -
[MENT_ATT_RANGE:FOCUS:300:600:900:1000:1500:1600:2500]                  +
[MENT_ATT_RANGE:CREATIVITY:200:400:600:900:1000:1050:1100]              --
[MENT_ATT_RANGE:PATIENCE:0:10:100:110:120:300:500]                      --
[MENT_ATT_RANGE:MEMORY:450:950:1150:1250:1350:1550:2250]                +
[MENT_ATT_RANGE:SPATIAL_SENSE:300:500:700:1000:1200:1400:1600]          +

[USE_MATERIAL_TEMPLATE:BLOOD:BLOOD_TEMPLATE]
[BLOOD:LOCAL_CREATURE_MAT:BLOOD:LIQUID]

[BODY_APPEARANCE_MODIFIER:HEIGHT:100:200:203:300:400:405:500]
[APP_MOD_IMPORTANCE:500]
[BODY_APPEARANCE_MODIFIER:BROADNESS:100:120:130:150:164:189]
[APP_MOD_IMPORTANCE:500]

[SET_BP_GROUP:BY_CATEGORY:EYE]
[BP_APPEARANCE_MODIFIER:CLOSE_SET:0:70:90:100:110:130:200]
[APP_MOD_NOUN:eyes:PLURAL]
[BP_APPEARANCE_MODIFIER:DEEP_SET:0:70:90:100:110:130:200]
[APP_MOD_NOUN:eyes:PLURAL]
[BP_APPEARANCE_MODIFIER:ROUND_VS_NARROW:0:70:90:100:110:130:200]
[APP_MOD_NOUN:eyes:PLURAL]
[BP_APPEARANCE_MODIFIER:LARGE_IRIS:25:70:90:100:110:130:200]
[APP_MOD_NOUN:eyes:PLURAL]
[APP_MOD_DESC_RANGE:30:60:90:110:150:190]



[SET_BP_GROUP:BY_CATEGORY:LIP]
[BP_APPEARANCE_MODIFIER:THICKNESS:50:70:90:100:110:130:200]
[APP_MOD_NOUN:lips:PLURAL]
[APP_MOD_DESC_RANGE:55:70:90:110:150:190]

[SET_BP_GROUP:BY_CATEGORY:NOSE]
[BP_APPEARANCE_MODIFIER:BROADNESS:25:70:90:100:110:130:200]
[APP_MOD_DESC_RANGE:30:60:90:110:150:190]
[BP_APPEARANCE_MODIFIER:LENGTH:25:70:90:100:110:130:200]
[APP_MOD_DESC_RANGE:30:60:90:110:150:190]
[BP_APPEARANCE_MODIFIER:UPTURNED:0:70:90:100:110:130:200]
[BP_APPEARANCE_MODIFIER:CONVEX:0:70:90:100:110:130:200]
[APP_MOD_NOUN:nose bridge:SINGULAR]

[SET_BP_GROUP:BY_CATEGORY:EAR]
[BP_APPEARANCE_MODIFIER:SPLAYED_OUT:0:70:90:100:110:130:200]
[APP_MOD_NOUN:ears:PLURAL]
[BP_APPEARANCE_MODIFIER:HANGING_LOBES:0:70:90:100:110:130:200]
[APP_MOD_NOUN:ears:PLURAL]
[BP_APPEARANCE_MODIFIER:BROADNESS:90:95:98:100:102:105:110]
[APP_MOD_IMPORTANCE:700]
[APP_MOD_NOUN:ears:PLURAL]
[APP_MOD_DESC_RANGE:91:94:98:102:106:109]
[BP_APPEARANCE_MODIFIER:HEIGHT:90:95:98:100:102:105:110]
[APP_MOD_IMPORTANCE:700]
[APP_MOD_NOUN:ears:PLURAL]
[APP_MOD_DESC_RANGE:91:94:98:102:106:109]

[SET_BP_GROUP:BY_CATEGORY:TOOTH]
[BP_APPEARANCE_MODIFIER:GAPS:0:70:90:100:110:130:200]
[APP_MOD_NOUN:teeth:PLURAL]

[SET_BP_GROUP:BY_CATEGORY:SKULL]
[BP_APPEARANCE_MODIFIER:HIGH_CHEEKBONES:0:70:90:100:110:130:200]
[BP_APPEARANCE_MODIFIER:BROAD_CHIN:0:70:90:100:110:130:200]
[BP_APPEARANCE_MODIFIER:JUTTING_CHIN:0:70:90:100:110:130:200]
[BP_APPEARANCE_MODIFIER:SQUARE_CHIN:0:70:90:100:110:130:200]

[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:HEAD]
[BP_APPEARANCE_MODIFIER:BROADNESS:90:95:98:100:102:105:110]
[APP_MOD_IMPORTANCE:700]
[APP_MOD_DESC_RANGE:91:94:98:102:106:109]
[BP_APPEARANCE_MODIFIER:HEIGHT:90:95:98:100:102:105:110]
[APP_MOD_IMPORTANCE:700]
[APP_MOD_DESC_RANGE:91:94:98:102:106:109]

[MAXAGE:100:170]

[ATTACK:PUNCH:BODYPART:BY_TYPE:GRASP]
[ATTACK_SKILL:GRASP_STRIKE]
[ATTACK_VERB:punch:punches]

[ATTACK_CONTACT_PERC:150]
[ATTACK_FLAG_WITH]
[ATTACK_PRIORITY:MAIN]

[ATTACK:KICK:BODYPART:BY_TYPE:STANCE]
[ATTACK_SKILL:STANCE_STRIKE]
[ATTACK_VERB:kick:kicks]
[ATTACK_CONTACT_PERC:150]
[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:50]
[ATTACK_PENETRATION_PERC:300]
[ATTACK_FLAG_EDGE]
[ATTACK_PRIORITY:MAIN]
[ATTACK_FLAG_CANLATCH]

[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]

[BABY:1]
[GENERAL_BABY_NAME:dwarven baby:dwarven babies]
[BABYNAME:dwarven baby:dwarven babies]
[CHILD:1]
[GENERAL_CHILD_NAME:nellismian child:nellismian children]
[CHILDNAME:nellismian youngling:nellismian younglings]
[EQUIPS]
[DIURNAL]

[PROFESSION_NAME:CRAFTSMAN:craftsman:craftsmen]
[PROFESSION_NAME:FISHERMAN:fisherman:fishermen]
[PROFESSION_NAME:HAMMERMAN:hammerman:hammermen]
[PROFESSION_NAME:SPEARMAN:spearmen:spearmen]
[PROFESSION_NAME:CROSSBOWMAN:marksman:marksmen]
[PROFESSION_NAME:AXEMAN:axeman:axemen]
[PROFESSION_NAME:SWORDSMAN:sworman:men]
[PROFESSION_NAME:MACEMAN:maceman:macemen]
[PROFESSION_NAME:PIKEMAN:pikeman:pikemen]
[PROFESSION_NAME:BOWMAN:bowman:bowmen]
[PROFESSION_NAME:MASTER_CROSSBOWMAN:Elite Marksdwarf:Elite Marksdwarves]
[PROFESSION_NAME:MASTER_BOWMAN:Elite Bowdwarf:Elite Bowdwarves]
[SPEECH:dwarf.txt]
[HOMEOTHERM:10067]
[SWIMS_INNATE][SWIM_SPEED:4000]
[PERSONALITY:IMMODERATION:0:55:100]
[PERSONALITY:VULNERABILITY:0:45:100]
[PERSONALITY:STRAIGHTFORWARDNESS:0:55:100]
[MANNERISM_FINGERS:finger:fingers]
[MANNERISM_NOSE:nose]
[MANNERISM_EAR:ear]
[MANNERISM_HEAD:head]
[MANNERISM_EYES:eyes]
[MANNERISM_MOUTH:mouth]
[MANNERISM_HAIR:hair]
[MANNERISM_KNUCKLES:knuckles]
[MANNERISM_LIPS:lips]
[MANNERISM_CHEEK:cheek]
[MANNERISM_NAILS:nails]
[MANNERISM_FEET:feet]
[MANNERISM_ARMS:arms]
[MANNERISM_HANDS:hands]
[MANNERISM_TONGUE:tongue]
[MANNERISM_LEG:leg]
[MANNERISM_LAUGH]
[MANNERISM_SMILE]
[MANNERISM_WALK]
[MANNERISM_SIT]
[MANNERISM_BREATH]
[MANNERISM_POSTURE]
[MANNERISM_STRETCH]
[MANNERISM_EYELIDS]
[SPOUSE_CONVERSION_TARGET]

[CASTE:FEMALE]
[FEMALE]
[CASTE:MALE]
[MALE]

[TL_COLOR_MODIFIER:AMBER:1:AUBURN:1:BLACK:1:BROWN:1:BUFF:1:BURNT_SIENNA:1:BURNT_UMBER:1:CHARCOAL:1:CHESTNUT:1:CHOCOLATE:1:CINNAMON:1:COPPER:1:DARK_BROWN:1:DARK_CHESTNUT:1:DARK_TAN:1:ECRU:1:FLAX:1:GOLD:1:GOLDEN_YELLOW:1:GOLDENROD:1:LIGHT_BROWN:1:MAHOGANY:1:OCHRE:1:PALE_BROWN:1:PALE_CHESTNUT:1:PUMPKIN:1:RAW_UMBER:1:RUSSET:1:SAFFRON:1:SEPIA:1:TAN:1:TAUPE_DARK:1:TAUPE_GRAY:1:TAUPE_MEDIUM:1:TAUPE_PALE:1:TAUPE_SANDY:1]
[TLCM_NOUN:hair:SINGULAR]
[TL_COLOR_MODIFIER:GRAY:1]

SET_TL_GROUP:BY_CATEGORY:FINGER:NAIL]
PLUS_TL_GROUP:BY_CATEGORY:TOE:NAIL]
TISSUE_LAYER_APPEARANCE_MODIFIER:LENGTH:100:100:100:100:100:100:100]
APP_MOD_RATE:1:DAILY:0:1000:0:0:NO_END]
APP_MOD_NOUN:nails:PLURAL]

Here all of the skin is selected and various colors are listed.

[SET_TL_GROUP:BY_CATEGORY:ALL:SKIN]
[TL_COLOR_MODIFIER:BROWN:1:BURNT_UMBER:1:CINNAMON:1:COPPER:1:DARK_BROWN:1:DARK_PEACH:1:DARK_TAN:1:ECRU:1:PALE_BROWN:1:PALE_CHESTNUT:1:PALE_PINK:1:PEACH:1:PINK:1:RAW_UMBER:1:SEPIA:1:TAN:1:TAUPE_PALE:1:TAUPE_SANDY:1]
[TLCM_NOUN:skin:SINGULAR]

[TISSUE_LAYER_APPEARANCE_MODIFIER:WRINKLY:0:0:0:0:0:0:0]
[APP_MOD_RATE:1:YEARLY:0:100:60:0:NO_END]
[APP_MOD_NOUN:skin:SINGULAR]
[APP_MOD_DESC_RANGE:0:0:0:1:25:50]

Now we do the eyes, using the somewhat clunky eye color patterns.

[SET_TL_GROUP:BY_CATEGORY:EYE:EYE]
[TL_COLOR_MODIFIER:IRIS_EYE_AMETHYST:1:IRIS_EYE_AQUAMARINE:1:IRIS_EYE_BRASS:1:IRIS_EYE_BRONZE:1:IRIS_EYE_COBALT:1:IRIS_EYE_COPPER:1:IRIS_EYE_EMERALD:1:IRIS_EYE_GOLD:1:IRIS_EYE_HELIOTROPE:1:IRIS_EYE_JADE:1:IRIS_EYE_OCHRE:1:IRIS_EYE_RAW_UMBER:1:IRIS_EYE_RUST:1:IRIS_EYE_SILVER:1:IRIS_EYE_SLATE_GRAY:1:IRIS_EYE_TURQUOISE:1]
[TLCM_NOUN:eyes:PLURAL]

[BODYSIZE:0:0:300]
[BODYSIZE:1:0:300000]
Logged
Glacial on dwarves being assigned socks:
Quote
You see, here's how I think this works:
Overseer: Welcome to the military! You need to wear socks! Dorf: Oh, I should get military socks. My socks are civilian socks. Dorf discards socks Dorf: You know, I need a whole lot of gear now. I should get socks... last. Oh, but these steel boots with the white goo on them are nice!
I know you can pick up water, then throw said water, while underwater, to kill a fish -He_Silent_H

3

  • Bay Watcher
    • View Profile
Re: Some modding questions/ I need help
« Reply #1 on: March 20, 2011, 03:01:06 pm »

Code: [Select]
[BODY:HUMANOID:4EYES:8EARS:4LUNGS:3HEARTS:7LUNGS:GUTS:ORGANS:HUMANOID_JOINTS:THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:7TOES:MOUTH:FACIAL_FEATURES:TEETH:RIBCAGE]

This is not how bodyparts work. You have to create the new entries (called "8EARS", "4LUNGS", etc.) in a body file. This is a candidate for the crashing description screen.

Code: [Select]
[BODY_DETAIL_PLAN:STANDARD_TISSUES]
[REMOVE_MATERIAL:HAIR]
      
Should be "REMOVE_TISSUE:HAIR".

Code: [Select]
[TL_COLOR_MODIFIER:AMBER:1:AUBURN:1:[...]:TAUPE_SANDY:1]
[TLCM_NOUN:hair:SINGULAR]
[TL_COLOR_MODIFIER:GRAY:1]
         
An even better candidate for the crashing description screen. These lines are telling the game how to describe hair... hair that doesn't exist on the creature. In fact, the lines aren't even pointing at anything. They're currently just telling the game to describe some undefined matter as whatever colour.

Code: [Select]
   [CASTE:FEMALE]
      [FEMALE]
   [CASTE:MALE]
      [MALE]
    
You need a SELECT_CASTE:ALL after these lines. The way it is now, everything after the caste definition is only affecting the males (which means females have no defined size).

Also, it glitches in a way that prevents attacks from landing

Might be something to do with the previous bodypart errors.

In future, check if there's a generated errorlog.txt in the DF folder and see if you can figure out what's wrong from that.
« Last Edit: March 20, 2011, 03:05:10 pm by 3 »
Logged

Megaman3321

  • Bay Watcher
  • I'm everywhere but this Universe
    • View Profile
Re: Some modding questions/ I need help
« Reply #2 on: March 20, 2011, 03:32:07 pm »

Whew, I did a lot wrong. Thanks for telling me :D I'll get to work on that right away.

Also, thanks for the info about the errorlog.txt. I'll use that from now on.
Logged
Glacial on dwarves being assigned socks:
Quote
You see, here's how I think this works:
Overseer: Welcome to the military! You need to wear socks! Dorf: Oh, I should get military socks. My socks are civilian socks. Dorf discards socks Dorf: You know, I need a whole lot of gear now. I should get socks... last. Oh, but these steel boots with the white goo on them are nice!
I know you can pick up water, then throw said water, while underwater, to kill a fish -He_Silent_H