Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Help Needed  (Read 1269 times)

Raxor

  • Bay Watcher
    • View Profile
Help Needed
« on: May 13, 2013, 04:42:59 am »

Hello, I am new to Dwarf Fortress, and I need help adding a new race that is playable in adventurer mode, but is not playable in fortress mode (similar to Elves or Humans) but I don't know exactly how to, help would be highly appreciated. thank you!
Logged

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: Help Needed
« Reply #1 on: May 13, 2013, 04:49:49 am »

So how much do you know about modding? Do you know about raw files? Do you have some raws for your race already?
Logged

Raxor

  • Bay Watcher
    • View Profile
Re: Help Needed
« Reply #2 on: May 13, 2013, 08:07:41 am »

I only know about what's written on the Dwarf Fortress wiki "Modding guide" page, but it confused me. I do know about raw files, and I've made attempted to make a raw for my race, and for the civilization, but the creature didn't show up on the list as a playable race...

Here's the raw files if you want to take a look at them, I'm not even sure if I have made them correctly:
Spoiler (click to show/hide)
Logged

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: Help Needed
« Reply #3 on: May 13, 2013, 08:31:26 am »

First, you need to change the name of the entity to one that hasn't been used yet, since the entity that humans belong to is called "PLAINS" already. Second, you need to change the [ADVENTURE_TIER:1] entity tag to [ADVENTURE_TIER:4], since every adv mode playable entity needs a unique number for this token and tiers 1 to 3 are already occupied. Third, it's easier if you move these things to their own files (entity_phantonian.txt and creature_phantonian.txt respectively), and don't forget to add the first line "entity_phantonian" or "creature_phantonian" respectively to these files. Finally, unless you defined a new language yourself, you should probably stick to one of the established languages and change your [TRANSLATION:PHANTONIAN] back to [TRANSLATION:HUMAN] or similar.
Logged

Raxor

  • Bay Watcher
    • View Profile
Re: Help Needed
« Reply #4 on: May 14, 2013, 02:29:07 am »

I can't seem to find any of their settlements on the world map, and for some reason I still can't play as them, this is after I changed the entity name to "PHANTONIAN", and made a new world, does the name of the entity have to be the same as the name of a certain biome? (Such as desert, glacier, forest, etc.) Also, can the ADVENTURE_TIER entity tag be 5? This is just in case I want to create another race. thanks. :)
« Last Edit: May 14, 2013, 02:51:40 am by Raxor »
Logged

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: Help Needed
« Reply #5 on: May 14, 2013, 03:12:27 am »

I can't seem to find any of their settlements on the world map, and for some reason I still can't play as them, this is after I changed the entity name to "PHANTONIAN", and made a new world, does the name of the entity have to be the same as the name of a certain biome? (Such as desert, glacier, forest, etc.) Also, can the ADVENTURE_TIER entity tag be 5? This is just in case I want to create another race. thanks. :)
The entity name can be arbitrary, but it has to be unique. The ADVENTURE_TIER can be any positive integer, as long as it is unique too. Would you mind posting the entire contents of your modded files? Post them in [code][/code] tags.
Logged

Raxor

  • Bay Watcher
    • View Profile
Re: Help Needed
« Reply #6 on: May 14, 2013, 03:48:06 am »

OK, here you go.
Code: [Select]
[ENTITY:WETLANDS]
[INDIV_CONTROLLABLE]
[CREATURE:PHANTONIAN]
[TRANSLATION:ELF]
[DIGGER:ITEM_WEAPON_PICK]
[WEAPON:ITEM_WEAPON_WHIP]
[WEAPON:ITEM_WEAPON_AXE_BATTLE]
[WEAPON:ITEM_WEAPON_HAMMER_WAR]
[WEAPON:ITEM_WEAPON_SWORD_SHORT]
[WEAPON:ITEM_WEAPON_SPEAR]
[WEAPON:ITEM_WEAPON_MACE]
[WEAPON:ITEM_WEAPON_CROSSBOW]
[AMMO:ITEM_AMMO_BOLTS]
[WEAPON:ITEM_WEAPON_BOW]
[AMMO:ITEM_AMMO_ARROWS]
[WEAPON:ITEM_WEAPON_PIKE]
[WEAPON:ITEM_WEAPON_HALBERD]
[WEAPON:ITEM_WEAPON_SWORD_2H]
[WEAPON:ITEM_WEAPON_SWORD_LONG]
[WEAPON:ITEM_WEAPON_MAUL]
[WEAPON:ITEM_WEAPON_AXE_GREAT]
[WEAPON:ITEM_WEAPON_FLAIL]
[WEAPON:ITEM_WEAPON_MORNINGSTAR]
[WEAPON:ITEM_WEAPON_SCIMITAR]
[WEAPON:ITEM_WEAPON_AXE_TRAINING]
[WEAPON:ITEM_WEAPON_SWORD_SHORT_TRAINING]
[WEAPON:ITEM_WEAPON_SPEAR_TRAINING]
[ARMOR:ITEM_ARMOR_BREASTPLATE:COMMON]
[ARMOR:ITEM_ARMOR_MAIL_SHIRT:COMMON]
[ARMOR:ITEM_ARMOR_LEATHER:COMMON]
[ARMOR:ITEM_ARMOR_COAT:COMMON]
[ARMOR:ITEM_ARMOR_SHIRT:COMMON]
[ARMOR:ITEM_ARMOR_CLOAK:COMMON]
[ARMOR:ITEM_ARMOR_TUNIC:COMMON]
[ARMOR:ITEM_ARMOR_TOGA:UNCOMMON]
[ARMOR:ITEM_ARMOR_CAPE:COMMON]
[ARMOR:ITEM_ARMOR_VEST:COMMON]
[ARMOR:ITEM_ARMOR_DRESS:COMMON]
[ARMOR:ITEM_ARMOR_ROBE:COMMON]
[HELM:ITEM_HELM_HELM:COMMON]
[HELM:ITEM_HELM_CAP:COMMON]
[HELM:ITEM_HELM_HOOD:COMMON]
[HELM:ITEM_HELM_TURBAN:UNCOMMON]
[HELM:ITEM_HELM_MASK:RARE]
[HELM:ITEM_HELM_VEIL_HEAD:UNCOMMON]
[HELM:ITEM_HELM_VEIL_FACE:RARE]
[HELM:ITEM_HELM_SCARF_HEAD:UNCOMMON]
[GLOVES:ITEM_GLOVES_GAUNTLETS:COMMON]
[GLOVES:ITEM_GLOVES_GLOVES:COMMON]
[GLOVES:ITEM_GLOVES_MITTENS:COMMON]
[SHOES:ITEM_SHOES_SHOES:COMMON]
[SHOES:ITEM_SHOES_BOOTS:COMMON]
[SHOES:ITEM_SHOES_BOOTS_LOW:COMMON]
[SHOES:ITEM_SHOES_SANDAL:COMMON]
[SHOES:ITEM_SHOES_CHAUSSE:UNCOMMON]
[SHOES:ITEM_SHOES_SOCKS:COMMON]
[PANTS:ITEM_PANTS_PANTS:COMMON]
[PANTS:ITEM_PANTS_GREAVES:COMMON]
[PANTS:ITEM_PANTS_LEGGINGS:COMMON]
[PANTS:ITEM_PANTS_LOINCLOTH:COMMON]
[PANTS:ITEM_PANTS_THONG:UNCOMMON]
[PANTS:ITEM_PANTS_SKIRT:COMMON]
[PANTS:ITEM_PANTS_SKIRT_SHORT:COMMON]
[PANTS:ITEM_PANTS_SKIRT_LONG:COMMON]
[PANTS:ITEM_PANTS_BRAIES:UNCOMMON]
[SHIELD:ITEM_SHIELD_SHIELD]
[SHIELD:ITEM_SHIELD_BUCKLER]
[SIEGEAMMO:ITEM_SIEGEAMMO_BALLISTA]
[TRAPCOMP:ITEM_TRAPCOMP_GIANTAXEBLADE]
[TRAPCOMP:ITEM_TRAPCOMP_ENORMOUSCORKSCREW]
[TRAPCOMP:ITEM_TRAPCOMP_SPIKEDBALL]
[TRAPCOMP:ITEM_TRAPCOMP_LARGESERRATEDDISC]
[TRAPCOMP:ITEM_TRAPCOMP_MENACINGSPIKE]
[TOY:ITEM_TOY_PUZZLEBOX]
[TOY:ITEM_TOY_BOAT]
[TOY:ITEM_TOY_HAMMER]
[TOY:ITEM_TOY_AXE]
[INSTRUMENT:ITEM_INSTRUMENT_FLUTE]
[INSTRUMENT:ITEM_INSTRUMENT_TRUMPET]
[INSTRUMENT:ITEM_INSTRUMENT_HARP]
[INSTRUMENT:ITEM_INSTRUMENT_DRUM]
[INSTRUMENT:ITEM_INSTRUMENT_PICCOLO]
[TOOL:ITEM_TOOL_CAULDRON]
[TOOL:ITEM_TOOL_LADLE]
[TOOL:ITEM_TOOL_BOWL]
[TOOL:ITEM_TOOL_MORTAR]
[TOOL:ITEM_TOOL_PESTLE]
[TOOL:ITEM_TOOL_KNIFE_CARVING]
[TOOL:ITEM_TOOL_KNIFE_BONING]
[TOOL:ITEM_TOOL_KNIFE_SLICING]
[TOOL:ITEM_TOOL_KNIFE_MEAT_CLEAVER]
[TOOL:ITEM_TOOL_FORK_CARVING]
[TOOL:ITEM_TOOL_NEST_BOX]
[TOOL:ITEM_TOOL_JUG]
[TOOL:ITEM_TOOL_LARGE_POT]
[TOOL:ITEM_TOOL_HIVE]
[TOOL:ITEM_TOOL_POUCH]
[TOOL:ITEM_TOOL_WHEELBARROW]
[CLOTHING]
[CURRENCY:COPPER:1]
[CURRENCY:SILVER:5]
[CURRENCY:GOLD:15]
[SELECT_SYMBOL:WAR:NAME_WAR]
[SUBSELECT_SYMBOL:WAR:VIOLENT]
[SELECT_SYMBOL:BATTLE:NAME_BATTLE]
[SUBSELECT_SYMBOL:BATTLE:VIOLENT]
[SELECT_SYMBOL:SIEGE:NAME_SIEGE]
[SUBSELECT_SYMBOL:SIEGE:VIOLENT]
[SELECT_SYMBOL:ROAD:NAME_ROAD]
[SELECT_SYMBOL:TUNNEL:NAME_TUNNEL]
[SELECT_SYMBOL:BRIDGE:NAME_BRIDGE]
[SELECT_SYMBOL:WALL:NAME_WALL]
[CULL_SYMBOL:ALL:SUBORDINATE]
[CULL_SYMBOL:ALL:EVIL]
[CULL_SYMBOL:ALL:NEGATIVE]
[CULL_SYMBOL:ALL:UGLY]
[CULL_SYMBOL:ALL:NEGATOR]
[SELECT_SYMBOL:CIV:NAME_ENTITY_kINGDOM]
[SELECT_SYMBOL:SITE:NAME_ENTITY_TOWN_FOUNDER]
[RIVER_PRODUCTS]
[OCEAN_PRODUCTS]
[METAL_PREF]
[GEM_PREF]
[STONE_PREF]
[OUTDOOR_WOOD]
[OUTDOOR_FARMING]
[USE_ANIMAL_PRODUCTS]
[COMMON_DOMESTIC_PACK]
[COMMON_DOMESTIC_PULL]
[COMMON_DOMESTIC_MOUNT]
[COMMON_DOMESTIC_PET]
[USE_MISC_PROCESSED_WOOD_PRODUCTS]
[EQUIPMENT_IMPROVEMENTS]
[SPHERE_ALIGNMENT:WAR:512]
[ART_FACET_MODIFIER:FANCIFUL:640]
[ART_FACET_MODIFIER:OWN_RACE:512]
[ADVENTURE_TIER:4]
[FRIENDLY_COLOR:7:0:1]
[DEFAULT_SITE_TYPE:CITY]
[LIKES_SITE:CITY]
[TOLERATES_SITE:CITY]
[TOLERATES_SITE:TREE_CITY]
[TOLERATES_SITE:CAVE_DETAILED]
[START_BIOME:ANY_GRASSLAND]
[START_BIOME:ANY_SAVANNA]
[START_BIOME:ANY_SHRUBLAND]
[BIOME_SUPPORT:ANY_WETLAND:1]
[BIOME_SUPPORT:ANY_DESERT:1]
[BIOME_SUPPORT:ANY_FOREST:2]
[BIOME_SUPPORT:ANY_OCEAN:12]
[BIOME_SUPPORT:ANY_LAKE:3]
[BIOME_SUPPORT:ANY_GRASSLAND:3]
[BIOME_SUPPORT:ANY_SAVANNA:2]
[BIOME_SUPPORT:ANY_SHRUBLAND:2]
[BIOME_SUPPORT:ANY_RIVER:4]
[MERCHANT_NOBILITY]
[DIPLOMAT_BODYGUARDS]
[MERCHANT_BODYGUARDS]
[PROGRESS_TRIGGER_TRADE:1]
[PROGRESS_TRIGGER_POP_SIEGE:3]
[PROGRESS_TRIGGER_PROD_SIEGE:0]
[PROGRESS_TRIGGER_TRADE_SIEGE:0]
[ACTIVE_SEASON:SUMMER]
[SIEGER]
[MAX_STARTING_CIV_NUMBER:100]
[MAX_POP_NUMBER:10000]
[MAX_SITE_POP_NUMBER:120]
[RELIGION:PANTHEON]
[WANDERER]
[BEAST_HUNTER]
[SCOUT]
[PERMITTED_JOB:MINER]
[PERMITTED_JOB:CARPENTER]
[PERMITTED_JOB:BOWYER]
[PERMITTED_JOB:WOODCUTTER]
[PERMITTED_JOB:ENGRAVER]
[PERMITTED_JOB:MASON]
[PERMITTED_JOB:ANIMAL_CARETAKER]
[PERMITTED_JOB:ANIMAL_TRAINER]
[PERMITTED_JOB:HUNTER]
[PERMITTED_JOB:TRAPPER]
[PERMITTED_JOB:ANIMAL_DISSECTOR]
[PERMITTED_JOB:FURNACE_OPERATOR]
[PERMITTED_JOB:WEAPONSMITH]
[PERMITTED_JOB:ARMORER]
[PERMITTED_JOB:BLACKSMITH]
[PERMITTED_JOB:METALCRAFTER]
[PERMITTED_JOB:GEM_CUTTER]
[PERMITTED_JOB:GEM_SETTER]
[PERMITTED_JOB:WOODCRAFTER]
[PERMITTED_JOB:STONECRAFTER]
[PERMITTED_JOB:LEATHERWORKER]
[PERMITTED_JOB:BONE_CARVER]
[PERMITTED_JOB:WEAVER]
[PERMITTED_JOB:CLOTHIER]
[PERMITTED_JOB:GLASSMAKER]
[PERMITTED_JOB:FISHERMAN]
[PERMITTED_JOB:FISH_DISSECTOR]
[PERMITTED_JOB:FISH_CLEANER]
[PERMITTED_JOB:CHEESE_MAKER]
[PERMITTED_JOB:MILKER]
[PERMITTED_JOB:SHEARER]
[PERMITTED_JOB:SPINNER]
[PERMITTED_JOB:COOK]
[PERMITTED_JOB:THRESHER]
[PERMITTED_JOB:MILLER]
[PERMITTED_JOB:BUTCHER]
[PERMITTED_JOB:TANNER]
[PERMITTED_JOB:DYER]
[PERMITTED_JOB:PLANTER]
[PERMITTED_JOB:HERBALIST]
[PERMITTED_JOB:BREWER]
[PERMITTED_JOB:SOAP_MAKER]
[PERMITTED_JOB:POTASH_MAKER]
[PERMITTED_JOB:LYE_MAKER]
[PERMITTED_JOB:WOOD_BURNER]
[PERMITTED_JOB:MECHANIC]
[PERMITTED_JOB:SIEGE_ENGINEER]
[PERMITTED_JOB:SIEGE_OPERATOR]
[PERMITTED_JOB:PUMP_OPERATOR]
[PERMITTED_JOB:CLERK]
[PERMITTED_JOB:ADMINISTRATOR]
[PERMITTED_JOB:TRADER]
[PERMITTED_JOB:ARCHITECT]
[PERMITTED_JOB:DIAGNOSER]
[PERMITTED_JOB:BONE_SETTER]
[PERMITTED_JOB:SUTURER]
[PERMITTED_JOB:SURGEON]
[PERMITTED_JOB:GLAZER]
[PERMITTED_JOB:POTTER]
[PERMITTED_JOB:PRESSER]
[PERMITTED_JOB:BEEKEEPER]
[PERMITTED_JOB:WAX_WORKER]
[PERMITTED_BUILDING:SOAP_MAKER]
[PERMITTED_BUILDING:SCREW_PRESS]
[PERMITTED_REACTION:TAN_A_HIDE]
[PERMITTED_REACTION:RENDER_FAT]
[PERMITTED_REACTION:MAKE_SOAP_FROM_TALLOW]
[PERMITTED_REACTION:MAKE_SOAP_FROM_OIL]
[PERMITTED_REACTION:MILL_SEEDS_NUTS_TO_PASTE]
[PERMITTED_REACTION:MAKE_CLAY_JUG]
[PERMITTED_REACTION:MAKE_CLAY_BRICKS]
[PERMITTED_REACTION:MAKE_CLAY_STATUE]
[PERMITTED_REACTION:MAKE_LARGE_CLAY_POT]
[PERMITTED_REACTION:MAKE_CLAY_CRAFTS]
[PERMITTED_REACTION:GLAZE_JUG]
[PERMITTED_REACTION:GLAZE_STATUE]
[PERMITTED_REACTION:GLAZE_LARGE_POT]
[PERMITTED_REACTION:GLAZE_CRAFT]
[PERMITTED_REACTION:PRESS_OIL]
[PERMITTED_REACTION:MAKE_CLAY_HIVE]
[PERMITTED_REACTION:PRESS_HONEYCOMB]
[PERMITTED_REACTION:MAKE_WAX_CRAFTS]
[PERMITTED_REACTION:MAKE_MEAD]
[PERMITTED_REACTION:BRASS_MAKING]
[PERMITTED_REACTION:BRASS_MAKING2]
[PERMITTED_REACTION:BRONZE_MAKING]
[PERMITTED_REACTION:BRONZE_MAKING2]
[PERMITTED_REACTION:ELECTRUM_MAKING]
[PERMITTED_REACTION:ELECTRUM_MAKING2]
[PERMITTED_REACTION:BILLON_MAKING]
[PERMITTED_REACTION:BILLON_MAKING2]
[PERMITTED_REACTION:PEWTER_FINE_MAKING]
[PERMITTED_REACTION:PEWTER_FINE_MAKING2]
[PERMITTED_REACTION:PEWTER_TRIFLE_MAKING]
[PERMITTED_REACTION:PEWTER_TRIFLE_MAKING2]
[PERMITTED_REACTION:PEWTER_LAY_MAKING]
[PERMITTED_REACTION:BLACK_BRONZE_MAKING]
[PERMITTED_REACTION:STERLING_SILVER_MAKING]
[PERMITTED_REACTION:ROSE_GOLD_MAKING]
[WORLD_CONSTRUCTION:WALL]
[WORLD_CONSTRUCTION:BRIDGE]
[WORLD_CONSTRUCTION:ROAD]
[ETHIC:KILL_ENTITY_MEMBER:JUSTIFIED_IF_GOOD_REASON]
[ETHIC:KILL_NEUTRAL:JUSTIFIED_IF_NO_REPERCUSSIONS]
[ETHIC:KILL_ENEMY:ACCEPTABLE]
[ETHIC:KILL_ANIMAL:ACCEPTABLE]
[ETHIC:KILL_PLANT:ACCEPTABLE]
[ETHIC:TORTURE_AS_EXAMPLE:ACCEPTABLE]
[ETHIC:TORTURE_FOR_INFORMATION:ACCEPTABLE]
[ETHIC:TORTURE_FOR_FUN:SHUN]
[ETHIC:TORTURE_ANIMALS:SHUN]
[ETHIC:TREASON:UNTHINKABLE]
[ETHIC:OATH_BREAKING:UNTHINKABLE]
[ETHIC:LYING:PERSONAL_MATTER]
[ETHIC:VANDALISM:PUNISH_CAPITAL]
[ETHIC:TRESPASSING:PUNISH_SERIOUS]
[ETHIC:THEFT:PUNISH_CAPITAL]
[ETHIC:ASSAULT:UNTHINKABLE]
[ETHIC:SLAVERY:ACCEPTABLE]
[ETHIC:EAT_SAPIENT_OTHER:UNTHINKABLE]
[ETHIC:EAT_SAPIENT_KILL:UNTHINKABLE]
[ETHIC:MAKE_TROPHY_SAME_RACE:UNTHINKABLE]
[ETHIC:MAKE_TROPHY_SAPIENT:ACCEPTABLE]
[ETHIC:MAKE_TROPHY_ANIMAL:ACCEPTABLE]
[WILL_ACCEPT_TRIBUTE]
[VARIABLE_POSITIONS:ALL]
[BUILDS_OUTDOOR_FORTIFICATIONS]
[BUILDS_OUTDOOR_TOMBS]
[BANDITRY:0]
[STONE_SHAPE:OVAL_CABOCHON]
[STONE_SHAPE:ROUND_CABOCHON]
[STONE_SHAPE:CUSHION_CABOCHON]
[STONE_SHAPE:RECTANGULAR_CABOCHON]
[GEM_SHAPE:OVAL_CABOCHON]
[GEM_SHAPE:ROUND_CABOCHON]
[GEM_SHAPE:CUSHION_CABOCHON]
[GEM_SHAPE:RECTANGULAR_CABOCHON]
[GEM_SHAPE:POINT_CUT_GEM]
[GEM_SHAPE:TABLE_CUT_GEM]
[GEM_SHAPE:SINGLE_CUT_GEM]
[GEM_SHAPE:ROSE_CUT_GEM]
[GEM_SHAPE:BRIOLETTE_CUT_GEM]
Here is the creature text:
Code: [Select]
[OBJECT:CREATURE]

[CREATURE:PHANTONIAN]
[DESCRIPTION:A tall, intellegent, warrior-like creature with cloven hooves, a reptillian head, and is covered in short fur.]
[NAME:phantonian:phantonians:elthayan]
[CASTE_NAME:phantonian:phantonians:elthayan]
[CREATURE_TILE:"P"][COLOR:75:0:130]
[CREATURE_SOLDIER_TILE:"P"][COLOR:49:0:98]

Many of the following tags are actually caste-level tags (in this case, male and female), but because there are no differences between the castes for these tags in a dwarf, you can add them earlier.  Any caste-level tag that occurs before castes are explicitly declared is saved up and placed on any caste that is declared later, unless the caste is explicitly derived from another caste.

[INTELLIGENT]
[TRANCES]
[BENIGN]
        [NOT_BUTCHERABLE]
[CANOPENDOORS]
        [SPHERE:STRENGTH]
        [PERSONALITY:SELF_DISCIPLINE:0:45:100]
        [PREFSTRING:discipline]
        [LIKES_FIGHTING]
[BODY:HUMANOID:2EYES:2EARS:SNOUT:2LUNGS:2HEARTS:GUTS:ORGANS:HUMANOID_JOINTS:THROAT:NECK:SPINE:BRAIN:SKULL:5FINGERS:MOUTH:TONGUE:FACIAL_FEATURES:TEETH:RIBCAGE:TAIL]

Next we use body detail plans (which have their own raw file) to streamline the addition of some of the common materials, tissues and their relationships with each other.

        [BODYGLOSS:HOOF]
[BODY_DETAIL_PLAN:STANDARD_MATERIALS]
[BODY_DETAIL_PLAN:STANDARD_TISSUES]
[BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:FUR:SKIN:FAT:MUSCLE:BONE:CARTILAGE]
[BODY_DETAIL_PLAN:HEAD_HAIR_TISSUE_LAYERS:HAIR]

Eyebrows and eyelashes are manually added here.

        [USE_MATERIAL_TEMPLATE:NAIL:NAIL_TEMPLATE]
        [USE_TISSUE_TEMPLATE:NAIL:NAIL_TEMPLATE]
        [TISSUE_LAYER:BY_CATEGORY:FINGER:NAIL:FRONT]
[USE_TISSUE_TEMPLATE:EYEBROW:EYEBROW_TEMPLATE]
[TISSUE_LAYER:BY_CATEGORY:HEAD:EYEBROW:ABOVE:BY_CATEGORY:EYE]
[USE_TISSUE_TEMPLATE:EYELASH:EYELASH_TEMPLATE]
[TISSUE_LAYER:BY_CATEGORY:EYELID:EYELASH:FRONT]

And nails.

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

Set up some major arteries that couldn't be handled in the raw templates.  The selection commands can be used to grab tissue layers to adjust their properties after they have been created.

[SELECT_TISSUE_LAYER:HEART:BY_CATEGORY:HEART]
[PLUS_TISSUE_LAYER:SKIN:BY_CATEGORY:THROAT]
[TL_MAJOR_ARTERIES]

Then back to some more body detail plans.

[BODY_DETAIL_PLAN:FACIAL_HAIR_TISSUES]
[BODY_DETAIL_PLAN:STANDARD_HEAD_POSITIONS]
[BODY_DETAIL_PLAN:HUMANOID_HEAD_POSITIONS]
[BODY_DETAIL_PLAN:HUMANOID_RIBCAGE_POSITIONS]
[BODY_DETAIL_PLAN:HUMANOID_RELSIZES]
[RELSIZE:BY_CATEGORY:LIVER:200] Of course!  Standard relative size for humanoids is 200.

Tendons and ligaments are currently very abstract, but adding these flags will let wounds occur that damage them.  The number afterward is the healing rate.  Lower is faster.

[USE_MATERIAL_TEMPLATE:SINEW:SINEW_TEMPLATE]
[TENDONS:LOCAL_CREATURE_MAT:SINEW:200]
[LIGAMENTS:LOCAL_CREATURE_MAT:SINEW:200]

This makes the creature susceptible to severed nerves when muscles are torn in limb, grasp and stance parts.

[HAS_NERVES]

This controls the bleeding behavior.

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

These classes are used by syndromes (such as poison) as well as some restricted entity positions.  You can name them whatever you want.


Some tags to control the overall infection behavio

Attributes for dwarves are still described in terms of the median value below, but the actual game effects are altered according to the raw numbers.  The numbers are different percentile values.  1000 is the human median for all attributes, so dwarven strength, for instance, has a higher median of 1250, although they suffer from their smaller size.

[PHYS_ATT_RANGE:STRENGTH:450:950:1150:1250:1350:1550:2250]              +
[PHYS_ATT_RANGE:AGILITY:600:800:1100:1300:1400:1500:1600]               -
[PHYS_ATT_RANGE:TOUGHNESS:450:950:1150:1250:1350:1550:2250]             +
[PHYS_ATT_RANGE:DISEASE_RESISTANCE:1250:1500:1750:2000:2500:3000:5000]  +++
[MENT_ATT_RANGE:FOCUS:700:1200:1400:1500:1600:1800:2500]                ++
[MENT_ATT_RANGE:CREATIVITY:450:950:1150:1250:1350:1550:2250]            +
[MENT_ATT_RANGE:PATIENCE:600:650:700:715:730:750:800]                   -
[MENT_ATT_RANGE:MEMORY:1150:1250:1350:1550:2250:2250:2250]              +
[MENT_ATT_RANGE:SPATIAL_SENSE:1100:1100:1100:1100:1100:1100:1100]       ++

These tags establish the growth phases of the creature's life.  The format is (BODY_SIZE|<year>|<day>|<average size>).

[BODY_SIZE:0:0:4000]
[BODY_SIZE:2:168:17000]
[BODY_SIZE:14:0:65000]

These body modifiers give individual dwarves different characteristics.  In the case of HEIGHT, BROADNESS and LENGTH, the modifier is also a percentage change to the BODY_SIZE of the individual creature.  The seven numbers afterward give a distribution of ranges.  Each interval has an equal chance of occurring.

[BODY_APPEARANCE_MODIFIER:HEIGHT:90:95:100:105:110:115]
[APP_MOD_IMPORTANCE:500]
[BODY_APPEARANCE_MODIFIER:BROADNESS:95:96:97:98:99:100:105]
[APP_MOD_IMPORTANCE:500]

In order to set properties for body parts, first you select them.  In this case, we select all body parts of category EYE, then we add a few modifiers to them.

[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:SNOUT]
[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:90:100:110:130:200]
[APP_MOD_DESC_RANGE:30:60:90:110:150:190]
[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: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:LENGTH: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]
[BP_APPEARANCE_MODIFIER:LENGTH:100:100:100:100:100:100:100] for vampires
[APP_MOD_IMPORTANCE:1000]
[APP_MOD_NOUN:teeth:PLURAL]
[APP_MOD_DESC_RANGE:30:60:90:110:150:190]

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

These are as before.

[MAXAGE:380:420]

Attack definitions are formatted as follows:

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

This means that the attack will use as much of the available tissue as possible, rather than, say, thrusting with a spike.

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

This causes all of the nails on the finger's of a given grasp to be used.

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

This causes all of the teeth on a given head to be used.

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

Here, GENERAL_BABY_NAME is at the creature level, and BABYNAME is at the caste level.  These names could be gender-specific but aren't right now.

[BABY:1]
[GENERAL_BABY_NAME:phantonian baby:phantonian babies]
[BABYNAME:phantonian baby:phantonian babies]
[CHILD:12]
[GENERAL_CHILD_NAME:phantonian child:phantonian children]
[CHILDNAME:phantonian child:phantonian children]
[EQUIPS]
[DIURNAL]
        [HOMOTHERM:10070]

This is the new format for making specific unit names for a creature.  Any unit token can be used.  If you want to add a caste-specific profession name, use CASTE_PROFESSION_NAME instead, once the caste has been declared.

[PROFESSION_NAME:CRAFTSMAN:craftsman:craftsmen]
[PROFESSION_NAME:FISHERMAN:fisherman:fishermen]
[PROFESSION_NAME:HAMMERMAN:hammerman:hammermen]
[PROFESSION_NAME:SPEARMAN:spearman:spearmen]
[PROFESSION_NAME:CROSSBOWMAN:marksman:marksmen]
[PROFESSION_NAME:AXEMAN:axeman:axemen]
[PROFESSION_NAME:SWORDSMAN:swordsman:swordsmen]
[PROFESSION_NAME:MACEMAN:maceman:macemen]
[PROFESSION_NAME:PIKEMAN:pikeman:pikemen]
[PROFESSION_NAME:BOWMAN:bowman:bowmen]
[PROFESSION_NAME:MASTER_CROSSBOWMAN:Elite Marksman:Elite Marksmen]
[PROFESSION_NAME:MASTER_BOWMAN:Elite Bowman:Elite Bowmen]
[SPEECH:dwarf.txt]
[HOMEOTHERM:10067]
[ALCOHOL_DEPENDENT]
[SWIMS_LEARNED][SWIM_SPEED:2500]
[PERSONALITY:IMMODERATION:0:55:100]
[PERSONALITY:STRAIGHTFORWARDNESS:0:55:100]
[MANNERISM_FINGERS:finger:fingers]
[MANNERISM_SNOUT: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]

Now we'll declare the specific castes.

[CASTE:FEMALE]
The gender tag lets it know how breeding works.
[FEMALE]
[MULTIPLE_LITTER_RARE]
To add beards, put square brackets around the following:
BODY_DETAIL_PLAN:FACIAL_HAIR_TISSUE_LAYERS
[CASTE:MALE]
[MALE]
[BODY_DETAIL_PLAN:FACIAL_HAIR_TISSUE_LAYERS]

This command lets you select all of the castes again.

[SELECT_CASTE:ALL]

Now we'll select all of the hair tissue layers we can find so that we can add colorations to them.  Even if the castes have different tissue layers, it'll find the layers and establish modifiers for each of the castes properly.

[SET_TL_GROUP:BY_CATEGORY:HEAD:HAIR]
[PLUS_TL_GROUP:BY_CATEGORY:HEAD:CHEEK_WHISKERS]
[PLUS_TL_GROUP:BY_CATEGORY:HEAD:CHIN_WHISKERS]
[PLUS_TL_GROUP:BY_CATEGORY:HEAD:EYEBROW]
[PLUS_TL_GROUP:BY_CATEGORY:HEAD:EYELASH]

A color modifier takes a list of color patterns (every color is associated to a monotone color pattern of its color, so you can also use color tokens) and frequencies.

[TL_COLOR_MODIFIER:EBONY:2:DARK_GREY:1:BLACK:3:CHARCOAL:1:DARK_BROWN:1:TAUPE_DARK:1:TAUPE_GRAY:1:LAVENDER:1:MAUVE:1:ASH:1]
[TLCM_NOUN:hair:SINGULAR]
[TL_COLOR_MODIFIER:GRAY:1]

This gives the start and finish time in <year>|<days> for the color change to occur

[TLCM_NOUN:hair:SINGULAR]
[TLCM_TIMING:ROOT:80:0:130:0]
[TL_COLOR_MODIFIER:WHITE:1]
[TLCM_NOUN:hair:SINGULAR]
[TLCM_TIMING:ROOT:130:0:150:0]

Now we'll select the eyebrows and eyelashes and give them variable lengths.

[SET_TL_GROUP:BY_CATEGORY:HEAD:EYEBROW]
[TISSUE_LAYER_APPEARANCE_MODIFIER:LENGTH:50:80:90:100:110:120:150]
[APP_MOD_NOUN:eyebrows:PLURAL]
[APP_MOD_DESC_RANGE:55:70:90:110:130:145]
[TISSUE_LAYER_APPEARANCE_MODIFIER:DENSE:50:80:90:100:110:120:150]
[APP_MOD_NOUN:eyebrows:PLURAL]
[APP_MOD_DESC_RANGE:55:70:90:110:130:145]
[TISSUE_LAYER_APPEARANCE_MODIFIER:HIGH_POSITION:0:70:90:100:110:130:200]
[APP_MOD_NOUN:eyebrows:PLURAL]

[SET_TL_GROUP:BY_CATEGORY:HEAD:EYELASH]
[TISSUE_LAYER_APPEARANCE_MODIFIER:LENGTH:50:80:90:100:110:120:150]
[APP_MOD_NOUN:eyelashes:PLURAL]
[APP_MOD_DESC_RANGE:55:70:90:110:130:145]

All of the other hair is selected and started at length zero.  It's fine to group them all together like this -- the creature can still accomodate different lengths once hair cutting/styling goes in.  I used one modifier here because the growth rates and starting length are all the same.

[SET_TL_GROUP:BY_CATEGORY:HEAD:HAIR]
[PLUS_TL_GROUP:BY_CATEGORY:HEAD:CHEEK_WHISKERS]
[PLUS_TL_GROUP:BY_CATEGORY:HEAD:CHIN_WHISKERS]
[TISSUE_LAYER_APPEARANCE_MODIFIER:LENGTH:0:0:0:0:0:0:0]
[APP_MOD_NOUN:hair:SINGULAR]

Here we set the growth rate.  This will change the modifier (LENGTH) by 1 each day up to a maximum of 1000 from the start of the dwarf's life (early beards!) for as long as the dwarf is alive.  The format is (APP_MOD_RATE|<rate>|<scale>|<min>|<max>|<start year>|<start day>|<end year>|<end day>) where the final two tokens can be replaced by NO_END if the growth is to continue indefinitely.

[APP_MOD_RATE:1:DAILY:0:400:0:0:NO_END]
[APP_MOD_DESC_RANGE:10:25:75:125:200:300]

[TISSUE_LAYER_APPEARANCE_MODIFIER:CURLY:0:70:90:100:110:130:200]
[APP_MOD_NOUN:hair:SINGULAR]
[TISSUE_LAYER_APPEARANCE_MODIFIER:SOFT:0:70:90:100:110:130:200]
[APP_MOD_NOUN:hair:SINGULAR]
[TISSUE_LAYER_APPEARANCE_MODIFIER:DENSE:50:80:90:100:110:120:150]
[APP_MOD_NOUN:hair:SINGULAR]
[APP_MOD_DESC_RANGE:55:70:90:110:130:145]

[SET_TL_GROUP:BY_CATEGORY:HEAD:HAIR]
[TISSUE_STYLE_UNIT:HAIR:STANDARD_HAIR_SHAPINGS]
[TSU_NOUN:hair:SINGULAR]

[SET_TL_GROUP:BY_CATEGORY:HEAD:CHEEK_WHISKERS]
[PLUS_TL_GROUP:BY_CATEGORY:HEAD:CHIN_WHISKERS]
[TISSUE_STYLE_UNIT:BEARD:STANDARD_BEARD_SHAPINGS]
[TSU_NOUN:beard:SINGULAR]

Here we handle nail length.

*** need a new style to keep these short and need to make the entity def say to keep them short
SET_TL_GROUP:BY_CATEGORY:FINGER: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:PURPLE:1:INDIGO:2:DEEP_PURPLE:2:VIOLET:2:AMYTHEST:1:DARK_MAGENTA:1:PLUM:1]
[TLCM_NOUN:skin:SINGULAR]

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_FIREY:1:IRIS_EYE_COBALT:1:IRIS_EYE_CYAN:1:IRIS_EYE_EMERALD:1:IRIS_EYE_GOLD:1:IRIS_EYE_HELIOTROPE:1:IRIS_EYE_JADE:1:IRIS_EYE_MAUVE:1:IRIS_EYE_RUST:1:IRIS_EYE_SILVER:1:IRIS_EYE_SLATE_GRAY:1:IRIS_EYE_TURQUOISE:1]
[TLCM_NOUN:eyes:PLURAL]
Logged

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: Help Needed
« Reply #7 on: May 14, 2013, 04:28:22 am »

DF sure has lots of problems with this. Fixing and documenting your mistakes, please stand by...
Logged

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: Help Needed
« Reply #8 on: May 14, 2013, 06:04:13 am »


Fixed all the bugs, and added nice comments where I changed something. They all start with ###, so you can easily search them.
Here's some tips for future modding endeavors:
- The errorlog.txt file is your friend. If something isn't working, you can look in there. If it's too long and you can't find the relevant errors, just delete it and cause the error to happen again.
- http://dwarffortresswiki.org/ has tons of raw documentation. http://dwarffortresswiki.org/index.php/Category:DF2012:Tokens is an index of lists of token documentations, which you can use if you're not sure how this or that token works.

--EDIT: Derp'd the file listings.
« Last Edit: May 14, 2013, 06:06:51 am by MagmaMcFry »
Logged

Raxor

  • Bay Watcher
    • View Profile
Re: Help Needed
« Reply #9 on: May 14, 2013, 06:35:11 am »

Wow O.o thanks, there were far more mistakes than I had imagined...
some of those mistakes were simple typos, and other things (such as the beard) were things I had forgotten to remove when I was editing the dwarf. I really appreciate the help, do you know any programs that make it easier to mod in creatures and/or items?
Logged

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: Help Needed
« Reply #10 on: May 14, 2013, 06:43:05 am »

I'd gladly refer you to my sig, but I'm not sure if it's all that beginner-friendly.
Logged

Raxor

  • Bay Watcher
    • View Profile
Re: Help Needed
« Reply #11 on: May 14, 2013, 06:45:24 am »

Okay, I'll try it next time I attempt to mod.
Logged

Raxor

  • Bay Watcher
    • View Profile
Re: Help Needed
« Reply #12 on: May 14, 2013, 06:52:35 am »

oh, about this:
Code: [Select]
TISSUE_LAYER:BY_CATEGORY:TOE:NAIL:FRONT] ### Since phantonians don't have toenails.do i remove this line?
Logged

MagmaMcFry

  • Bay Watcher
  • [EXISTS]
    • View Profile
Re: Help Needed
« Reply #13 on: May 14, 2013, 06:55:55 am »

oh, about this:
Code: [Select]
TISSUE_LAYER:BY_CATEGORY:TOE:NAIL:FRONT] ### Since phantonians don't have toenails.do i remove this line?
I removed the opening bracket, so it's inactive. You can remove it if you want.
Logged

Raxor

  • Bay Watcher
    • View Profile
Re: Help Needed
« Reply #14 on: May 14, 2013, 07:00:31 am »

OK.
Logged