v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "40d:Modding guide"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
 
(65 intermediate revisions by 34 users not shown)
Line 1: Line 1:
{{Old|0.23.130.23a, the 2D version}}
+
{{av}}{{Quality|Masterwork}}
  
This is intended to be an easy guide for general newbies on how to both edit and add civilizations, creatures, objects, and so on in Dwarf Fortress, both [[Adventure_Mode|adventurer]] and [[Dwarf_Fortress_Mode|fortress]] modes, without breaking anything too much. Generally breaking stuff is fine! Just always back up your work + the originals, and be patient at having to [[World_Generation|generate new worlds]] over and over.  
+
This is intended to be an easy guide for general newbies on how to both edit and add civilizations, creatures, objects, and so on in Dwarf Fortress, both [[Adventure_Mode|adventurer]] and [[Dwarf Fortress Mode|fortress]] modes, without breaking anything too much. Generally breaking stuff is fine! Just always back up your work & the originals, and be patient at having to [[World generation|generate new worlds]] over and over.  
 +
 
 +
This guide was edited for version 0.27.176.39c and may not be accurate for later versions, particularly the examples.
 +
 
 +
'''See also:''' [[:Category:Modding]]
 +
 
 +
= Modding Guide =
  
 
== Basics of DF modding ==
 
== Basics of DF modding ==
  
All of the data you can edit are stored in the \raw\ folder wherever you saved your DF executable. The raw folder contains two subfolders: graphics (where you insert [[Object_Tilesets|graphic packs]] to make custom tiles), and objects, which contains all the data for generally everything in the game that is not hardcoded. Quite a lot is not hardcoded, so you can edit a wide variety of things in the game.  
+
All of the data you can edit are stored in the \raw\ folder wherever you saved your DF executable. The raw folder contains two subfolders: graphics (where you insert [[Tilesets|graphic packs]] to make custom tiles), and objects, which contains all the data for generally everything in the game that is not hardcoded. Quite a lot is not hardcoded, so you can edit a wide variety of things in the game.
 +
 
 +
Editing the [[Raw file|raw text files]] is easy and simple. When you go into the \raw\objects folder you will see a wide variety of text files. When you are modding your game, you can either change existing files or add your own. I personally find it easier just to edit the existing ones in a new \DF\ game folder. When you are changing a token you can simply change the values - these are the numbers/strings after the : in a token entry. For example, [CREATURE:DWARF] is a token in the entity text file, which determines what creatures are used for dwarven civilizations. Simply open the text file, edit what you want, save and close, and generate a new world after you're done editing what you want.
  
 
Essentially, everything that can be modded uses text files to determine how they interact with the world or with other objects. With a bit of know-how you can tinker with just about everything.  
 
Essentially, everything that can be modded uses text files to determine how they interact with the world or with other objects. With a bit of know-how you can tinker with just about everything.  
Line 14: Line 22:
  
 
* Always back up the default text files you plan on editing. This way, if your game crashes (due to say, a typo that you can't find) you can simply copy-paste it back in for a 'vanilla' DF.
 
* Always back up the default text files you plan on editing. This way, if your game crashes (due to say, a typo that you can't find) you can simply copy-paste it back in for a 'vanilla' DF.
* When you edit any of the text files in the raw folder you must do the following: go into the \data\save folder and delete everything in it, including subfolders. Just do a ctrl-A and hit delete. If you try to play a game of DF with edited text files without making a new world first, bad stuff will happen.
+
* You do not need to delete old saves; simply create a new world using your modded files and things should run fine. Just don't try to play a "non-modded" world with modded files! Should you desire to go back to your old sites, make sure you revert to the raw files used for the creation of that world.  
 
* In general it's better to make whole new text files for new stuff you're adding rather than editing the existing ones by tagging them onto the bottom. This allows you to keep track of them easier and keeps them all in one place so there's less messing about with tons of files.
 
* In general it's better to make whole new text files for new stuff you're adding rather than editing the existing ones by tagging them onto the bottom. This allows you to keep track of them easier and keeps them all in one place so there's less messing about with tons of files.
 +
* The absolute easiest way to add an entirely new creature/entity/etc is to simply copy-paste an existing one and rename it, then edit the various tokens appropriately.
  
 
In addition, if you ''rename'' the any of the \raw\ files themselves (such as 'creature_insects.txt' to 'creature_bugs.txt'), you must find the same filename in the \data\objects\ folder and delete it. This is required because once the world is generated it creates the new files and saves them for use next time the world is needed; without deleting the file you will get duplication errors. This is not necessary if you just don't change any of the filenames.
 
In addition, if you ''rename'' the any of the \raw\ files themselves (such as 'creature_insects.txt' to 'creature_bugs.txt'), you must find the same filename in the \data\objects\ folder and delete it. This is required because once the world is generated it creates the new files and saves them for use next time the world is needed; without deleting the file you will get duplication errors. This is not necessary if you just don't change any of the filenames.
 +
 +
It [http://www.bay12games.com/forum/index.php?topic=47445.msg956417#msg956417 has been reported] that the name of the raw files is important as to their contents, such as entity_foo.txt should contain an entity and creature_foo.txt should contain creature(s).
  
 
== Modding the civilizations ==
 
== Modding the civilizations ==
  
 
The civilization entries are stored in entity_default.txt. They are quite simple files that are in the following format:
 
The civilization entries are stored in entity_default.txt. They are quite simple files that are in the following format:
 
  
 
  [ENTITY:ENTITYNAME]
 
  [ENTITY:ENTITYNAME]
    [NAME:singular:plural:possessive]
 
    [TYP<nowiki>E_SE</nowiki>TTLEMENT]
 
 
     [CREATURE:CREATURETYPE]
 
     [CREATURE:CREATURETYPE]
 
     [TRANSLATION:LANGUAGETYPE]
 
     [TRANSLATION:LANGUAGETYPE]
     ...[OTHER NONESSENTIAL TAGS]...
+
    [BIOME_SUPPORT:BIOMETOKEN:FREQUENCY]
 +
     ...[OTHER TAGS]...
 +
 
 +
At the top of the file you'll see 'entity_default' all by itself.  This word (or "string") must appear at the top of the file and it must match the file name (without extension). All game files require those markers at the top. It may be useful for those with programming experience to think of this as equivalent to a class name.  In languages such as Java, the name of the file and the name of the class are identical so the compiler can recognize and process code from text files into binary data for the actual executable program.
 +
 
 +
Next, if you're creating a new civilization in its own text file, be sure to add entity_*, and [OBJECT:ENTITY] at the top of the file.
 +
 
 +
Now what do these tokens mean, exactly? For one, where the tags are located don't generally matter quite a lot. You can add them in any order as long as they're underneath the "[ENTITY:]" token, which is the 'header' of the civilization and lets the game know that everything underneath deals with that civ. The entity token can be anything as long as it's not the same as another one.
 +
 
 +
'[CREATURE:]' links the civilization with a certain creature defined in a different file. This is the creature you play in adventurer or fortress mode, or that wanders around their towns when you explore them. For example, if you wanted to do something silly you could switch the "DWARF" entry in entity_default.txt with "ELF" and you would be marching elves around in fortress mode, though they would still use dwarven technology and language and names and so forth.
 +
 
 +
'[TRANSLATION:]' connects the civ to a specific language file that determines things like their natural (untranslated) creature first + last names and city names. The valid ones are HUMAN, DWARF, ELF, and GOBLIN.
 +
 
 +
'[BIOME_SUPPORT:]' defines biomes that civs will appear in. The 'FREQUENCY' value determines the likelyhood of them appearing there: generally 1 for not very often, up to 3 for very often (ie. dwarves in mountains).
 +
 
 +
You can find many details about the rest of the civilization tokens [[Entity token|here]]. The important ones are the CIV_CONTROLLABLE token, which lets you control the civ in dwarf fortress mode and the INDIV_CONTROLLABLE and ADVENTURE_TIER tokens which lets you play the civ in adventure mode via the PLAY NOW! command. Remember that ADVENTURE_TIER must be in order, so if you are adding a new playable race you must set its tier 1 higher (4).
  
At the top of the file you'll see an 'entity_default' all by itself, that must be at the top of the file only. All game files require those markers at the top. You can safely ignore them for now.
+
If you have more than one civ with the [CIV_CONTROLLABLE] token, groups belonging to that civ will appear in the group selection section on the embark screen, although it is not immediately obvious what species each group may be. While this can be determined from legends mode, experimentation suggests that the topmost species in the 'neighbors' section of the embark screen is the same as the currently selected species: If your group is dwarven, dwarves will be topmost, whilst (say) elves will be topmost if your chosen group is elven. By default, the game seems to choose a group (and therefore a species if there is more than one) at random.  
  
Now what do these mean, exactly? For one, where the tags are located don't generally matter quite a lot. You can add them in any order as long as they're underneath the "[ENTITY:]" token, which is the 'header' of the civilization and lets the game know that everything underneath deals with that civ. The entity token can be anything as long as it's not the same as another one.
+
Any token that has to deal with weapons, armor, clothing, etc. are all the items that the civ can build, not necessarily the ones they can wear. For example, you could create a species with no clothes specified, but then rob a clothes shop in adventurer mode and wear everything you want, or give them weapons that are too large to wield and they could sell them, but not use them.  
  
The 'NAME:' field is pretty self-explanatory, and is used generally for text things like 'The Elven forest retreat' related to the civilization. Remember, this is NOT the creature that is associated with it, just the civ name. You could make yourself a Roman civilization with [NAME:roman:romans:roman], for example.  
+
[SELECT_SYMBOL:] and [CULL_SYMBOL:ALL:] are the words that can be randomly generated in names, civs, cities, artifacts, engravings, etc. "SELECT_SYMBOL" means that the civ is far more likely to use those, and CULL_SYMBOL means they never will. You can find a list of every symbol type [[Language|here]]. SUBSELECT_SYMBOL:WAR/BATTLE/SIEGE just determines which language token to use when they begin wars, battles, or sieges in legends mode, ie. 'The Conflict of Craziness' or 'The Siege of Assaults'. All have these as 'violence' by default but they can be changed to any other token.
  
The 'TYPE_SETTLEMENT' entry can be one of the following: MOUNTAIN_SETTLEMENTS, FOREST_SETTLEMENTS, PLAINS_SETTLEMENTS. This will have the effect of replacing civilizations that would normally go in that settlement: if you create an orc civ that lives on plains, then quite a lot of the human plains civs (but not all) will be replaced by orc cities (assuming you turn on some other tokens).
+
'SELECT:SYMBOL:ROAD/TUNNEL/BRIDGE/WALL' use the special language tokens NAME_ROAD, NAME_TUNNEL, etc. and determines what the civ names their structures. 'SELECT_SYMBOL:REMAINING': are the standard tokens used for the species language.
  
'[CREATURE:]' links the civilization with a certain creature defined in a different file. This is the creature you play in adventurer or fortress mode, or that wanders around their towns when you explore them. For example, if you wanted to do something silly you could switch the "DWARF" entry in entity_default.txt with "ELF" and you would be marching elves around in fortress mode.
+
An easy method of creating a civilization is just to copy-paste a similar one to the bottom of the entity_default.txt file and edit things to your liking. Remember to always change the civ's ENTITY: name! This name can be anything as long as it's not already existing.
  
'[TRANSLATION:]' connects the civ to a specific language file that determines things like their natural (untranslated) creature first + last names and city names. The valid ones are HUMAN, DWARF, ELF, and GOBLIN.
+
There are many tokens to play with in the entity file, most of which do something interesting. It's best to simply look through the entity tokens list and figure out for yourself what you want to do with them. The ones of interest are:
  
You can find many details about the rest of the civilization tokens [[Entity_Tokens|here]]. The important ones are CIV_CONTROLLABLE, which lets you control the civ in dwarf fortress mode (by random chance if you have more than one set controllable) and INDIV_CONTROLLABLE which lets you play the civ in adventure mode via the PLAY NOW! command.
+
* [SIEGER] [BABYSNATCHER] [NUISANCE] These determine what the civ does in relation to other civs. Babysnatchers periodically swipe infants from nearby civs and have them grow up in their own civ (if kidnapped/brainwashed infants grow up and have children, their last names will use their capturer's language files: ie. you will have evil dwarves with the name Urist Deathghouls in a goblin fortress).
  
Any token that has to deal with weapons, armor, clothing, etc. are all the items that the civ can build, not necessarily the ones they can wear. For example, you could create a species with no clothes specified, but then rob a clothes shop in adventurer mode and wear everything you want.
+
* [AT_PEACE_WITH_WILDLIFE] This token, currently set only on elves, will mean they will not attack wild animals and animals will not attack them. This ALSO means that if you bring an elf or two along with you in adventurer mode, don't expect them to help you if you get attacked by cougars!
  
[SELECT_SYMBOL:ALL:] and [CULL_SYMBOL:ALL:] are the words that can be randomly generated in names, civs, cities, artifacts, engravings, etc. "SELECT_SYMBOL" means that the civ is far more likely to use those, and CULL_SYMBOL means they never will. You can find a list of every symbol type [[Language|here]].
+
* [RELIGION_SPHERE] This determines what religious deities will have as spheres when the civilization is generated, along with their subspheres. With a SPHERE_ALIGNMENT set you can also make one more likely than others; ie. Elves have trees, plants, and animals set very high so they are likely to get those more often with their deities.  
  
An easy method of creating a civilization is just to copy-paste a similar one to the bottom of the entity_default.txt file and edit things to your liking.
+
* With [DEFAULT_SITE], LIKES_, and TOLERATES_ you can decide where the species will live. DEFAULT_SITE is their home cities and will usually cluster there in large groups. If a civ conquers another and they do not at least tolerate the enemy's home type they will simply destroy it instead of moving in (sometimes they will destroy it anyway).
  
NOTE: With version 32a and higher, if you use [NUISANCE] or [BABYSNATCHER] with older mods then you will get things like wyverns sneaking into your fort knocking everything over, as they're set buildingdestroyer. Just remove the line (nuisance, babysnatcher, sieger) entirely.
+
* [ETHIC:] tokens determine how the species behaves when it comes to certain unpleasant acts. This also determines what reasons the civ will use when going to war: if a nearby civ has something set ACCEPTABLE that they consider UNTHINKABLE, then it is likely they will go to war over it. It also determines a few other things, like what happens to dead foes: Elves have '[ETHIC:EAT_SAPIENT_KILL:ACCEPTABLE]' for example. Goblins defacing their enemies (ie. hanging, stuck on pikes) is [ABUSE_BODIES], as well as ETHIC:MAKE_TROPHY_ tokens set ACCEPTABLE.
  
 
== Modding the creatures ==
 
== Modding the creatures ==
Line 57: Line 80:
 
Creature modding is great fun. Essentially you can change nearly any aspect of a creature or completely make your own from scratch. You can either add a new creature to the bottom of an existing creature_thing.txt file or make your own file; just be sure to add the name of the file (without the txt) to the top of it. For example, I tend to use a 'creature_newbies.txt' file myself.
 
Creature modding is great fun. Essentially you can change nearly any aspect of a creature or completely make your own from scratch. You can either add a new creature to the bottom of an existing creature_thing.txt file or make your own file; just be sure to add the name of the file (without the txt) to the top of it. For example, I tend to use a 'creature_newbies.txt' file myself.
  
Modding creatures is exactly similar to modding civs: just a matter of editing, adding, or removing tokens, enclosed in square brackets underneath the creature's [CREATURE:] header. The creature entries contain all the information about each specific creature in the game, from animals to dwarves to goblins to even caravan wagons. Much of the data of a creature is quite self-explanatory; you can find a list of every creature token [[Creature_Tokens|here]].  
+
Modding creatures is exactly similar to modding civs: just a matter of editing, adding, or removing tokens, enclosed in square brackets underneath the creature's [CREATURE:] header. The creature entries contain all the information about each specific creature in the game, from animals to dwarves to goblins to even caravan wagons. Much of the data of a creature is quite self-explanatory; you can find a list of every creature token [[Creature token|here]].
 +
 
 +
There're some tokens which use temperature values. Dwarf Fortress has it's own temperature scale for this. [[Temperature scale|DF temperature scale]].
 +
 
 +
Note: If you add a butcherable creature to the game such as a domestic animal, people will automatically wander around wearing its fur or skin as leather items when you are in the game, assuming the creature comes from the civ's biome (natural area). So don't be surprised to see 'duck leather armor' or something if you add ducks. Also note if you add a species that has a naturally high body temperature (magma snakes for example) and set it butcherable, people will automatically be generated wearing their skins.. and then since the skins have a naturally high temperature too they tend to burst into flame immediately because they were wearing a +magma snake leather sock+. Woops.
 +
 
 +
You'll notice many of the creature entries have tokens that other ones don't have. If a token is not present it's considered "default", though sometimes the default can be hard to figure out. All of the creatures referenced in the entity files are present in creature_standard.txt and require certain other tokens that non-entity creatures do not need, such as [INTELLIGENT] and [CANOPENDOORS].
 +
 
 +
For example, if you wanted to allow your dwarves to eat bones from the refuse stockpile (ew), you would open up creature_standard.txt, add [BONECARN] somewhere in the CREATURE_DWARF: entry at the top, and then save and close it, then generate a new world. Bon appetit!  *Notice that this has the unfortunate side effect of making them unable to eat plants.*
 +
 
 +
[[User:Deon#How_to|How to add a new creature.]]
 +
 
 +
If you make a totally new creature, feel free to add it [[Modification:New creatures|here]] along with any additional information.
  
Note: If you add a butcherable creature to the game such as a domestic animal, people will automatically wander around wearing its fur or skin as leather items when you are in the game, assuming the creature comes from the civ's biome (natural area). So don't be surprised to see 'duck leather armor' or something if you add ducks.
 
  
 
== Modding items ==
 
== Modding items ==
Line 67: Line 101:
 
For example, let's look at the entry for, of course, the thong:
 
For example, let's look at the entry for, of course, the thong:
  
[ITEM_PANTS:ITEM_PANTS_THONG]
+
[ITEM_PANTS:ITEM_PANTS_THONG]
[NAME:thong:thongs]
+
[NAME:thong:thongs]
[WEIGHT:10]
+
[WEIGHT:10]
[VALUE:10]
+
[VALUE:10]
[BLOCKPOWER:5]
+
[BLOCKPOWER:5]
[LAYER:UNDER]
+
[LAYER:UNDER]
[COVERAGE:25]
+
[COVERAGE:25]
[LAYER_SIZE:10]
+
[LAYER_SIZE:10]
[LAYER_PERMIT:30]
+
[LAYER_PERMIT:30]
[MATERIAL_SIZE:1]
+
[MATERIAL_SIZE:1]
[SOFT]
+
[SOFT]
[LEATHER]
+
[LEATHER]
  
 
Most of these are pretty obvious if one compares them to the other entries. Now, if you wanted to mod these to turn them into metal thongs (ouch!), you would simply have to add [METAL] to it somewhere, and probably [HARD] instead of [SOFT]. Simple!  
 
Most of these are pretty obvious if one compares them to the other entries. Now, if you wanted to mod these to turn them into metal thongs (ouch!), you would simply have to add [METAL] to it somewhere, and probably [HARD] instead of [SOFT]. Simple!  
Line 127: Line 161:
 
If you wanted someone to be able to break someone else's throat (like breaking a joint) and suffocate them, just add the [JOINT], [BREATHE], and possibly [NERVOUS] to the throat object's tokens.
 
If you wanted someone to be able to break someone else's throat (like breaking a joint) and suffocate them, just add the [JOINT], [BREATHE], and possibly [NERVOUS] to the throat object's tokens.
  
A 'BODYGLOSS', which you can sometimes find in the creature entries, are simply replacement words for certain defined words in a creature. For example, you'll find the bodygloss [BODYGLOSS:CLAW_HAND:hand:claw] in the body_default.txt, and then you can use this in a creature with '[BODYGLOSS:CLAW_HAND]' and it will replace all instances of "hand" with "claw" in that creature.
+
A 'BODYGLOSS', which you can sometimes find in the creature entries, are simply replacement words for certain defined words in a creature. For example, you'll find the bodygloss [BODYGLOSS:CLAW_HAND:hand:claw] in the body_default.txt, and then you can use this in a creature with '[BODYGLOSS:CLAW_HAND]' and it will replace all instances of "hand" with "claw" in that creature. For all intent and purpose the body part will still function as the proper part, though.
  
Note that only creatures with the [EQUIPS] token (and possibly [INTELLIGENT]) and a civ that can create clothes/armor/weapons will be able to actually wear stuff.
+
Note that only creatures with the [EQUIPS] token (and possibly [INTELLIGENT]) and a civ that can create clothes/armor/weapons will be able to actually wear stuff. Also, if the creature size is too large for the clothes they will also not be able to wear it.
  
 
== Example one: dark dwarves ==
 
== Example one: dark dwarves ==
Line 135: Line 169:
 
These examples will go over the details for creating several new things as well as editing some old ones.
 
These examples will go over the details for creating several new things as well as editing some old ones.
  
Remember: delete the contents of your \save\ folder before editing any of the game text files, and always back up the old ones so you don't have to download a new copy of dwarf fortress if you messed something up and can't remember how to fix it.
+
Remember: Do NOT load an old save after genning a new world with different raws. It's much safer to simply delete all your old saves after you've modded things, or simply copy-and-paste a fresh version of DF into a new folder.  
  
  
 
First, we're going to create a new, evil civilization of dwarves called, unsurprisingly, dark dwarves. This will be quite easy, though with a few fundamental differences. Mainly, that dark dwarves are evil and more warlike than regular dwarves.
 
First, we're going to create a new, evil civilization of dwarves called, unsurprisingly, dark dwarves. This will be quite easy, though with a few fundamental differences. Mainly, that dark dwarves are evil and more warlike than regular dwarves.
 
First, back up your stuff and delete your saved worlds. Yes, I'm saying that again.
 
  
 
Now, open up entity_default.txt. All your species civilizations will be in there. We're going to make a whole new one for our dark dwarves. In many ways it'll be a simple copy-paste job of regular dwarves, then tweaking some things.
 
Now, open up entity_default.txt. All your species civilizations will be in there. We're going to make a whole new one for our dark dwarves. In many ways it'll be a simple copy-paste job of regular dwarves, then tweaking some things.
  
Add this to the bottom of the entity_default file:
+
Add this to the TOP of the entity_default file, before the dwarf entry:
  
  [ENTITY:DARK_DWARVES]
+
  [ENTITY:DARK_DWARF]
    [MOUNTAIN_SETTLEMENTS]
+
[CIV_CONTROLLABLE]
    [CIV_CONTROLLABLE]
+
[CREATURE:DARK_DWARF]
    [CREATURE:DARK_DWARF]
+
[TRANSLATION:DWARF]
    [TRANSLATION:DWARF]
+
[DIGGER:ITEM_WEAPON_PICK]
    [DIGGER:ITEM_WEAPON_PICK]
+
[WEAPON:ITEM_WEAPON_AXE_BATTLE]
    [WEAPON:ITEM_WEAPON_AXE_BATTLE]
+
    [WEAPON:ITEM_WEAPON_WHIP]
    [WEAPON:ITEM_WEAPON_WHIP]
+
[WEAPON:ITEM_WEAPON_FLAIL]
    [WEAPON:ITEM_WEAPON_FLAIL]
+
[WEAPON:ITEM_WEAPON_SCOURGE]
    [WEAPON:ITEM_WEAPON_SCOURGE]
+
[WEAPON:ITEM_WEAPON_DAGGER_LARGE]
    [WEAPON:ITEM_WEAPON_DAGGER_LARGE]
+
[WEAPON:ITEM_WEAPON_MACE]
    [WEAPON:ITEM_WEAPON_MACE]
+
[WEAPON:ITEM_WEAPON_SWORD_SHORT]
    [WEAPON:ITEM_WEAPON_SWORD_SHORT]
+
[WEAPON:ITEM_WEAPON_SCIMITAR]
    [WEAPON:ITEM_WEAPON_CROSSBOW]
+
[WEAPON:ITEM_WEAPON_CROSSBOW]
    [AMMO:ITEM_AMMO_BOLTS]
+
[AMMO:ITEM_AMMO_BOLTS]
    [ARMOR:ITEM_ARMOR_PLATEMAIL:COMMON]
+
[ARMOR:ITEM_ARMOR_PLATEMAIL:COMMON]
    [ARMOR:ITEM_ARMOR_CHAINMAIL:COMMON]
+
[ARMOR:ITEM_ARMOR_CHAINMAIL:COMMON]
    [ARMOR:ITEM_ARMOR_LEATHER:COMMON]
+
[ARMOR:ITEM_ARMOR_LEATHER:COMMON]
    [ARMOR:ITEM_ARMOR_COAT:COMMON]
+
[ARMOR:ITEM_ARMOR_COAT:COMMON]
    [ARMOR:ITEM_ARMOR_SHIRT:COMMON]
+
[ARMOR:ITEM_ARMOR_SHIRT:COMMON]
    [ARMOR:ITEM_ARMOR_CLOAK:COMMON]
+
[ARMOR:ITEM_ARMOR_CLOAK:COMMON]
    [ARMOR:ITEM_ARMOR_TOGA:UNCOMMON]
+
[ARMOR:ITEM_ARMOR_TOGA:UNCOMMON]
    [ARMOR:ITEM_ARMOR_VEST:COMMON]
+
[ARMOR:ITEM_ARMOR_VEST:COMMON]
    [ARMOR:ITEM_ARMOR_DRESS:COMMON]
+
[ARMOR:ITEM_ARMOR_DRESS:COMMON]
    [ARMOR:ITEM_ARMOR_ROBE:COMMON]
+
[ARMOR:ITEM_ARMOR_ROBE:COMMON]
    [HELM:ITEM_HELM_HELM:COMMON]
+
[HELM:ITEM_HELM_HELM:COMMON]
    [HELM:ITEM_HELM_HOOD:COMMON]
+
[HELM:ITEM_HELM_HOOD:COMMON]
    [GLOVES:ITEM_GLOVES_GAUNTLETS:COMMON]
+
[GLOVES:ITEM_GLOVES_GAUNTLETS:COMMON]
    [GLOVES:ITEM_GLOVES_GLOVES:COMMON]
+
[GLOVES:ITEM_GLOVES_GLOVES:COMMON]
    [SHOES:ITEM_SHOES_SHOES:COMMON]
+
[SHOES:ITEM_SHOES_SHOES:COMMON]
    [SHOES:ITEM_SHOES_BOOTS:COMMON]
+
[SHOES:ITEM_SHOES_BOOTS:COMMON]
    [SHOES:ITEM_SHOES_BOOTS_LOW:COMMON]
+
[SHOES:ITEM_SHOES_BOOTS_LOW:COMMON]
    [PANTS:ITEM_PANTS_PANTS:COMMON]
+
[PANTS:ITEM_PANTS_PANTS:COMMON]
    [PANTS:ITEM_PANTS_GREAVES:COMMON]
+
[PANTS:ITEM_PANTS_GREAVES:COMMON]
    [PANTS:ITEM_PANTS_LEGGINGS:COMMON]
+
[PANTS:ITEM_PANTS_LEGGINGS:COMMON]
    [SHIELD:ITEM_SHIELD_SHIELD]
+
[SHIELD:ITEM_SHIELD_SHIELD]
    [SHIELD:ITEM_SHIELD_BUCKLER]
+
[SHIELD:ITEM_SHIELD_BUCKLER]
    [SIEGEAMMO:ITEM_SIEGEAMMO_BALLISTA]
+
[SIEGEAMMO:ITEM_SIEGEAMMO_BALLISTA]
    [TRAPCOMP:ITEM_TRAPCOMP_GIANTAXEBLADE]
+
[TRAPCOMP:ITEM_TRAPCOMP_GIANTAXEBLADE]
    [TRAPCOMP:ITEM_TRAPCOMP_ENORMOUSCORKSCREW]
+
[TRAPCOMP:ITEM_TRAPCOMP_ENORMOUSCORKSCREW]
    [TRAPCOMP:ITEM_TRAPCOMP_SPIKEDBALL]
+
[TRAPCOMP:ITEM_TRAPCOMP_SPIKEDBALL]
    [TRAPCOMP:ITEM_TRAPCOMP_LARGESERRATEDDISC]
+
[TRAPCOMP:ITEM_TRAPCOMP_LARGESERRATEDDISC]
    [TOY:ITEM_TOY_HAMMER]
+
[TOY:ITEM_TOY_HAMMER]
    [TOY:ITEM_TOY_AXE]
+
[TOY:ITEM_TOY_AXE]
    [TOY:ITEM_TOY_MINIFORGE]
+
[TOY:ITEM_TOY_MINIFORGE]
    [INSTRUMENT:ITEM_INSTRUMENT_TRUMPET]
+
[INSTRUMENT:ITEM_INSTRUMENT_TRUMPET]
    [INSTRUMENT:ITEM_INSTRUMENT_DRUM]
+
[INSTRUMENT:ITEM_INSTRUMENT_DRUM]
    [SIEGER]
+
[CLOTHING]
    [CLOTHING]
+
[SUBTERRANEAN_CLOTHING]
    [SUBTERRANEAN_CLOTHING]
+
[CURRENCY_BY_YEAR]
    [CURRENCY_BY_YEAR]
+
[CURRENCY:COPPER:1]
    [CURRENCY:COPPER:1]
+
[CURRENCY:SILVER:5]
    [CURRENCY:SILVER:5]
+
[CURRENCY:GOLD:15]
    [CURRENCY:ELECTRUM:10]
+
[SELECT_SYMBOL:WAR:NAME_WAR]
    [CURRENCY:GOLD:15]
+
[SUBSELECT_SYMBOL:WAR:VIOLENT]
    [CURRENCY:PLATINUM:30]
+
[SELECT_SYMBOL:BATTLE:NAME_BATTLE]
    [SELECT_SYMBOL:ALL:EVIL]
+
[SUBSELECT_SYMBOL:BATTLE:VIOLENT]
    [SELECT_SYMBOL:ALL:EARTH]
+
[SELECT_SYMBOL:SIEGE:NAME_SIEGE]
    [SELECT_SYMBOL:ALL:VIOLENT]
+
[SUBSELECT_SYMBOL:SIEGE:VIOLENT]
    [SELECT_SYMBOL:ALL:DEATH]
+
[SELECT_SYMBOL:ROAD:NAME_ROAD]
    [SELECT_SYMBOL:ALL:NEGATIVE]
+
[SELECT_SYMBOL:TUNNEL:NAME_TUNNEL]
    [SELECT_SYMBOL:ALL:UGLY]
+
[SELECT_SYMBOL:BRIDGE:NAME_BRIDGE]
    [SELECT_SYMBOL:ALL:UNTOWARD]
+
[SELECT_SYMBOL:WALL:NAME_WALL]
    [CULL_SYMBOL:ALL:DOMESTIC]
+
[SELECT_SYMBOL:REMAINING:ARTIFICE]
    [CULL_SYMBOL:ALL:FLOWERY]
+
[SELECT_SYMBOL:REMAINING:EARTH]
    [CULL_SYMBOL:ALL:HOLY]
+
[SELECT_SYMBOL:REMAINING:EVIL]
    [CULL_SYMBOL:ALL:PEACE]
+
[SELECT_SYMBOL:REMAINING:UNTOWARD]
    [CULL_SYMBOL:ALL:NEGATOR]
+
[SELECT_SYMBOL:REMAINING:UGLY]
    [CULL_SYMBOL:ALL:GOOD]
+
[SELECT_SYMBOL:REMAINING:EARTH]
    [METAL_PREF]
+
[CULL_SYMBOL:ALL:DOMESTIC]
    [GEM_PREF]
+
[CULL_SYMBOL:ALL:FLOWERY]
    [STONE_PREF]
+
[CULL_SYMBOL:ALL:HOLY]
    [INDOOR_FARMING]
+
[CULL_SYMBOL:ALL:PEACE]
    [USE_CAVE_ANIMALS]
+
[CULL_SYMBOL:ALL:NEGATOR]
    [USE_EVIL_ANIMALS]
+
[CULL_SYMBOL:ALL:GOOD]
    [USE_ANIMAL_PRODUCTS]
+
[METAL_PREF]
    [COMMON_DOMESTIC_PACK]
+
[GEM_PREF]
    [COMMON_DOMESTIC_PULL]
+
[STONE_PREF]
    [COMMON_DOMESTIC_MOUNT]
+
[INDOOR_FARMING]
    [COMMON_DOMESTIC_PET]
+
[USE_CAVE_ANIMALS]
 +
[USE_ANIMAL_PRODUCTS]
 +
[USE_EVIL_ANIMALS]
 +
[USE_EVIL_PLANTS]
 +
[USE_EVIL_WOOD]
 +
[COMMON_DOMESTIC_PACK]
 +
[COMMON_DOMESTIC_PULL]
 +
[COMMON_DOMESTIC_MOUNT]
 +
[COMMON_DOMESTIC_PET]
 +
[USE_MISC_PROCESSED_WOOD_PRODUCTS]
 +
[EQUIPMENT_IMPROVEMENTS]
 +
[ART_FACET_MODIFIER:GOOD:0]
 +
[ART_FACET_MODIFIER:EVIL:512]
 +
[ITEM_IMPROVEMENT_MODIFIER:RINGS_HANGING:0]
 +
[ITEM_IMPROVEMENT_MODIFIER:BANDS:0]
 +
[ITEM_IMPROVEMENT_MODIFIER:SPIKES:384]
 +
[ADVENTURE_TIER:4]
 +
[FRIENDLY_COLOR:1:0:1]
 +
[DEFAULT_SITE_TYPE:CAVE_DETAILED]
 +
[LIKES_SITE:CAVE_DETAILED]
 +
[TOLERATES_SITE:CITY]
 +
[TOLERATES_SITE:TREE_CITY]
 +
[TOLERATES_SITE:CAVE_DETAILED]
 +
[TOLERATES_SITE:CAVE]
 +
[LEADER_TYPE:KING]
 +
[SITE_LEADER_TYPE:STANDARD]
 +
[START_BIOME:MOUNTAIN]
 +
[BIOME_SUPPORT:ANY_WETLAND:1]
 +
[BIOME_SUPPORT:ANY_DESERT:1]
 +
[BIOME_SUPPORT:ANY_OCEAN:1]
 +
[BIOME_SUPPORT:ANY_LAKE:1]
 +
[BIOME_SUPPORT:MOUNTAIN:3]
 +
[BIOME_SUPPORT:ANY_GRASSLAND:1]
 +
[BIOME_SUPPORT:ANY_SAVANNA:1]
 +
[BIOME_SUPPORT:ANY_SHRUBLAND:1]
 +
[BIOME_SUPPORT:ANY_RIVER:1]
 +
[DIPLOMAT]
 +
[DIPLOMAT_BODYGUARDS]
 +
[MERCHANT_BODYGUARDS]
 +
[ACTIVE_SEASON:WINTER]
 +
[SIEGER]
 +
[MAX_STARTING_CIV_NUMBER:3]
 +
[START_GROUP_NUMBER:10]
 +
[MAX_POP_NUMBER:10000]
 +
[MAX_SITE_POP_NUMBER:200]
 +
[RELIGION:PANTHEON]
 +
[RELIGION_SPHERE:FORTRESSES]
 +
[RELIGION_SPHERE:JEWELS]
 +
[RELIGION_SPHERE:METALS]
 +
[RELIGION_SPHERE:MINERALS]
 +
[RELIGION_SPHERE:MOUNTAINS]
 +
[RELIGION_SPHERE:WEALTH]
 +
[RELIGION_SPHERE:NIGHT]
 +
[RELIGION_SPHERE:WAR]
 +
[RELIGION_SPHERE:DISEASE]
 +
[RELIGION_SPHERE:FIRE]
 +
[MAYOR]
 +
[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:STRAND_EXTRACTOR]
 +
[PERMITTED_JOB:FISHERMAN]
 +
[PERMITTED_JOB:FISH_DISSECTOR]
 +
[PERMITTED_JOB:FISH_CLEANER]
 +
[PERMITTED_JOB:CHEESE_MAKER]
 +
[PERMITTED_JOB:MILKER]
 +
[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]
 +
[WORLD_CONSTRUCTION:TUNNEL]
 +
[WORLD_CONSTRUCTION:BRIDGE]
 +
[WORLD_CONSTRUCTION:ROAD]
 +
[ETHIC:KILL_ENTITY_MEMBER:PUNISH_CAPITAL]
 +
[ETHIC:KILL_NEUTRAL:ACCEPTABLE]
 +
[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:PERSONAL_MATTER]
 +
[ETHIC:TORTURE_ANIMALS:ACCEPTABLE]
 +
[ETHIC:TREASON:PUNISH_CAPITAL]
 +
[ETHIC:OATH_BREAKING:PUNISH_CAPITAL]
 +
[ETHIC:LYING:PERSONAL_MATTER]
 +
[ETHIC:VANDALISM:ACCEPTABLE]
 +
[ETHIC:TRESPASSING:PUNISH_SERIOUS]
 +
[ETHIC:THEFT:PUNISH_SERIOUS]
 +
[ETHIC:ASSAULT:PUNISH_SERIOUS]
 +
[ETHIC:SLAVERY:ACCEPTABLE]
 +
[ETHIC:EAT_SAPIENT_OTHER:ACCEPTABLE]
 +
[ETHIC:EAT_SAPIENT_KILL:ACCEPTABLE]
 +
[ETHIC:MAKE_TROPHY_SAME_RACE:ACCEPTABLE]
 +
[ETHIC:MAKE_TROPHY_SAPIENT:ACCEPTABLE]
 +
[ETHIC:MAKE_TROPHY_ANIMAL:ACCEPTABLE]
 +
[WILL_ACCEPT_TRIBUTE]
  
  
 
The fun part is that your dark dwarves will, thanks to the specified symbols, have some crazy names that you'd never see with regular dwarves (one of the fortresses it generated was called "Crowanus", for example). If you dislike having bad language, just remove the [SELECT_SYMBOL:ALL:UNTOWARD].
 
The fun part is that your dark dwarves will, thanks to the specified symbols, have some crazy names that you'd never see with regular dwarves (one of the fortresses it generated was called "Crowanus", for example). If you dislike having bad language, just remove the [SELECT_SYMBOL:ALL:UNTOWARD].
  
The main differences you'll see here compared to the dwarf entry is that they have different weapons, toys, instruments (thanks to their warlike nature, they build less of them) and [USE_EVIL_ANIMALS] is turned on: this will do nothing in dwarf fort mode but you'll see tamed trolls and ogres in their fortresses in adventurer mode.  
+
The main differences you'll see here compared to the dwarf entry is that they have different weapons, toys, instruments (thanks to their warlike nature, they build less of them) and [USE_EVIL_ANIMALS] is turned on: this will do nothing in dwarf fort mode but you'll see tamed trolls and ogres in their fortresses in adventurer mode. Many of their other tokens are changed as well, to make them more violent and evil. For example, they will eat their foes like elves do. Yum!
  
 
Now, we need to build the DARK_DWARF creature. Create a new text file called 'creature_new.txt'. Immediately, add the following:
 
Now, we need to build the DARK_DWARF creature. Create a new text file called 'creature_new.txt'. Immediately, add the following:
  
 
  creature_new
 
  creature_new
 
+
 
  [OBJECT:CREATURE]
 
  [OBJECT:CREATURE]
  
 
That'll make this text file recognized as a creature file. Now, we simply add our dark_dwarf creature:
 
That'll make this text file recognized as a creature file. Now, we simply add our dark_dwarf creature:
 +
  
 
  [CREATURE:DARK_DWARF]
 
  [CREATURE:DARK_DWARF]
    [NAME:dark dwarf:dark dwarves:dark dwarven]
+
[NAME:dark dwarf:dark dwarves:dark dwarven]
    [TILE:1][COLOR:3:0:0]
+
[TILE:1][COLOR:3:0:0]
    [GENPOWER:3]
+
[GENPOWER:3]
    [BUTCHERABLE_NONSTANDARD]
+
[INTELLIGENT]
    [INTELLIGENT]
+
[TRANCES]
    [TRANCES]
+
[EVIL]
    [CANOPENDOORS]
+
[CANOPENDOORS]
    [LIKES_FIGHTING]
+
[PREFSTRING:beards]
    [PREFSTRING:beards]
+
[PREFSTRING:violent tempers]
    [PREFSTRING:violent tempers]
+
[PREFSTRING:sullying of the dead]
    [BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:THROAT:NECK:SPINE:BRAIN:5FINGERS:5TOES:MOUTH]
+
[BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:THROAT:NECK:SPINE:BRAIN:5FINGERS:5TOES:MOUTH]
    [STOUT]
+
[STOUT]
    [MAXAGE:150:170]
+
[MAXAGE:250:270]
    [ATTACK:MAIN:BYTYPE:GRASP:punch:punches:1:2:BLUDGEON][ATTACKFLAG_WITH]
+
[ATTACK:MAIN:BYTYPE:GRASP:punch:punches:1:2:BLUDGEON][ATTACKFLAG_WITH]
    [ATTACK:SECOND:BYTYPE:MOUTH:bite:bites:1:1:GORE][ATTACKFLAG_CANLATCH]
+
[ATTACK:SECOND:BYTYPE:MOUTH:bite:bites:1:1:GORE][ATTACKFLAG_CANLATCH]
    [CHILD:12][BABY:1][MULTIPLE_LITTER_RARE]
+
[CHILD:12][BABY:1][MULTIPLE_LITTER_RARE]
    [DAMBLOCK:1]
+
[DAMBLOCK:1]
    [FAT:3]
+
[FAT:3]
    [SIZE:6]
+
[SIZE:6]
    [EQUIPS]
+
[EQUIPS]
    [CAVE_ADAPT]
+
[CAVE_ADAPT]
    [NOCTURNAL]
+
[NOCTURNAL]
    [CRAFTSMAN_NAME:craftsdwarf:craftsdwarves]
+
[CRAFTSMAN_NAME:craftsdwarf:craftsdwarves]
    [FISHERMAN_NAME:fisherdwarf:fisherdwarves]
+
[FISHERMAN_NAME:fisherdwarf:fisherdwarves]
    [HAMMERMAN_NAME:hammerdwarf:hammerdwarves]
+
[HAMMERMAN_NAME:hammerdwarf:hammerdwarves]
    [SPEARMAN_NAME:speardwarf:speardwarves]
+
[SPEARMAN_NAME:speardwarf:speardwarves]
    [CROSSBOWMAN_NAME:marksdwarf:marksdwarves]
+
[CROSSBOWMAN_NAME:marksdwarf:marksdwarves]
    [AXEMAN_NAME:axedwarf:axedwarves]
+
[AXEMAN_NAME:axedwarf:axedwarves]
    [SWORDSMAN_NAME:swordsdwarf:swordsdwarves]
+
[SWORDSMAN_NAME:swordsdwarf:swordsdwarves]
    [MACEMAN_NAME:macedwarf:macedwarves]
+
[MACEMAN_NAME:macedwarf:macedwarves]
    [PIKEMAN_NAME:pikedwarf:pikedwarves]
+
[PIKEMAN_NAME:pikedwarf:pikedwarves]
    [BOWMAN_NAME:bowdwarf:bowdwarves]
+
[BOWMAN_NAME:bowdwarf:bowdwarves]
    [SPEECH:dwarf.txt]
+
[SPEECH:dwarf.txt]
    [STANDARD_FLESH]
+
[STANDARD_FLESH]
    [HOMEOTHERM:10067]
+
[HOMEOTHERM:10067]
    [LAYERING:50]
+
[LAYERING:50]
    [EVIL]
+
[SWIMS_LEARNED][SWIM_SPEED:2500]
 +
[PERSONALITY:ANGER:25:75:100]
 +
[PERSONALITY:IMMODERATION:0:75:100]
 +
[PERSONALITY:EXCITEMENT_SEEKING:0:60:100]
 +
[PERSONALITY:CHEERFULNESS:0:10:90]
 +
[PERSONALITY:ALTRUISM:0:25:50]
 +
[PERSONALITY:MODESTY:0:20:90]
 +
[PERSONALITY:SYMPATHY:0:25:50]
 +
[PERSONALITY:VULNERABILITY:0:25:100]
 +
[PERSONALITY:STRAIGHTFORWARDNESS:25:65:100]
 +
[PERSONALITY:SELF_DISCIPLINE:30:75:100]
  
  
This is largely a copy of the regular dwarves, but with several differences: [LIKES_FIGHTING] will give them happy thoughts when they have fought something, [NOCTURNAL] means they like nights rather than days, and [EVIL] means on the adventurer map their fortresses will tend to end up on evil tiles rather than good ones. Otherwise, they are exactly the same as regular dwarves. To make them extra evil, add [BONECARN] somewhere in there and they can eat bones (they'll actually haul them from your refuse pit to the dining table, yum), but will sometimes (though rarely) choke to death on them. Also, they do not require booze to stay happy (though will happily drink it anyway if they have to).  
+
This is largely a copy of the regular dwarves, but with several differences: [LIKES_FIGHTING] will give them happy thoughts when they have fought something, [NOCTURNAL] means they like nights rather than days, and [EVIL] means on the adventurer map their fortresses will tend to end up on evil tiles rather than good ones. Otherwise, they are exactly the same as regular dwarves. To make them extra evil, add [BONECARN] somewhere in there and they can eat bones (they'll actually haul them from your refuse pit to the dining table, yum), but will sometimes (though rarely) choke to death on them{{verify}}. Bear in mind that [BONECARN] implies [CARNIVORE], so they won't eat vegetables making the game much harder. Also, they do not require booze to stay happy (though will happily drink it anyway if they have to).
  
There! That's all we need to do in order to add our civilization. Just create a new world and they'll be there: however, when you go to adventurer mode, all (or none) of your dwarf entries might be replaced with dark dwarves, so it's really a matter of luck. When you start a new fortress, there will be a 50-50 chance of playing either as dwarves or dark dwarves.
+
There! That's all we need to do in order to add our civilization. Just create a new world and they'll be there: however, when you go to adventurer mode, all (or none) of your dwarf entries might be replaced with dark dwarves, so it's really a matter of luck. When you start a new fortress, there will be a 50-50 chance of playing either as dwarves or dark dwarves. The easiest way to tell if a civ is a dark dwarven is if the name is rather unpleasant. 'The Fortress of Rapes' for example would probably not be a standard dwarven one. Remove [CIV_CONTROLLABLE] from the standard dwarves if you only want to play as dark.
  
 
== Example two: "Arachnid" playable creature ==
 
== Example two: "Arachnid" playable creature ==
  
This time, we're going to add a new playable creature to adventurer mode, but not playable in fortress mode. An 'arachnid' is a large, powerful, evil half-elf, half-spider (no copyright violations here!): they are too big to wear standard equipment and are quite nasty enough without it anyway. The downside to playing them is that since they do not form standard civilizations, you cannot start them at a specific location nor will they have any weapon, armor, or [[wrestling]] skills to start out. Oh well.
+
This time, we're going to add a new playable creature to adventurer mode, but not playable in fortress mode. An 'arachnid' is a large, powerful, evil half-elf, half-spider (no copyright violations here!): they are too big to wear standard equipment and are quite nasty enough without it anyway. The downside to playing them is that since they do not form standard civilizations, you cannot start them at a specific location nor will they have any weapon, armor, or [[wrestling]] skills to start out.
  
First off, we need to add a civilization entry in entity_default.txt. Open it up and add this to the bottom of the file:
+
First off, we need to add a civilization entry in entity_default.txt. Open it up and add this to the top of the file:
  
 
  [ENTITY:ARACHNIDS]
 
  [ENTITY:ARACHNIDS]
Line 294: Line 474:
 
     [CREATURE:ARACHNID]
 
     [CREATURE:ARACHNID]
 
     [INDIV_CONTROLLABLE]
 
     [INDIV_CONTROLLABLE]
 +
    [ADVENTURE_TIER:4]
 +
Note: adventure_tier should be 5 if you also have the dark dwarves.
 
     [TRANSLATION:ELF]
 
     [TRANSLATION:ELF]
     [CLOTHING]
+
     [BIOME_SUPPORT:ANY_WETLAND:2]
     [SUBTERRANEAN_CLOTHING]
+
     [BIOME_SUPPORT:ANY_DESERT:3]
 +
    [BIOME_SUPPORT:ANY_FOREST:1]
 +
    [BIOME_SUPPORT:MOUNTAIN:4]
 +
    [BIOME_SUPPORT:ANY_GRASSLAND:1]
 +
    [BIOME_SUPPORT:ANY_SAVANNA:1]
 +
    [BIOME_SUPPORT:ANY_SHRUBLAND:1]
 +
    [BIOME_SUPPORT:ANY_RIVER:2]
 +
    [START_BIOME:MOUNTAIN]
 
     [SELECT_SYMBOL:ALL:EVIL]
 
     [SELECT_SYMBOL:ALL:EVIL]
 
     [SELECT_SYMBOL:ALL:VIOLENT]
 
     [SELECT_SYMBOL:ALL:VIOLENT]
Line 307: Line 496:
 
     [CULL_SYMBOL:ALL:NEGATOR]
 
     [CULL_SYMBOL:ALL:NEGATOR]
 
     [CULL_SYMBOL:ALL:GOOD]
 
     [CULL_SYMBOL:ALL:GOOD]
 +
    [FRIENDLY_COLOR:7:0:0]
 +
    [DEFAULT_SITE_TYPE:CAVE]
 +
    [LIKES_SITE:CAVE]
 +
    [TOLERATES_SITE:CAVE]
 +
    [ACTIVE_SEASON:SPRING]
 +
    [ACTIVE_SEASON:SUMMER]
 +
    [ACTIVE_SEASON:AUTUMN]
 +
    [ACTIVE_SEASON:WINTER]
 +
    [MAX_STARTING_CIV_NUMBER:2]
 +
    [START_GROUP_NUMBER:1]
 +
    [MAX_POP_NUMBER:500]
 +
    [MAX_SITE_POP_NUMBER:20]
 +
    [ETHIC:KILL_ENTITY_MEMBER:ACCEPTABLE]
 +
    [ETHIC:KILL_NEUTRAL:ACCEPTABLE]
 +
    [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:ACCEPTABLE]
 +
    [ETHIC:TORTURE_ANIMALS:ACCEPTABLE]
 +
    [ETHIC:TREASON:ACCEPTABLE]
 +
    [ETHIC:OATH_BREAKING:ACCEPTABLE]
 +
    [ETHIC:LYING:ACCEPTABLE]
 +
    [ETHIC:VANDALISM:ACCEPTABLE]
 +
    [ETHIC:TRESPASSING:NOT_APPLICABLE]
 +
    [ETHIC:THEFT:NOT_APPLICABLE]
 +
    [ETHIC:ASSAULT:ACCEPTABLE]
 +
    [ETHIC:SLAVERY:UNTHINKABLE]
 +
    [ETHIC:EAT_SAPIENT_OTHER:ACCEPTABLE]
 +
    [ETHIC:EAT_SAPIENT_KILL:ACCEPTABLE]
 +
    [ETHIC:MAKE_TROPHY_SAME_RACE:ACCEPTABLE]
 +
    [ETHIC:MAKE_TROPHY_SAPIENT:ACCEPTABLE]
 +
    [ETHIC:MAKE_TROPHY_ANIMAL:ACCEPTABLE]
  
This will give us some fun random names. As a 'nuisance' race they may appear and try to steal stuff from you in fortress mode (like kobolds), but I have yet to see that actually happen. The nuisance token also makes them not appear as regular civilizations, which is the entire point. Arachnids are solitary and do not form civilizations (though they WILL be found in caves). However, the INDIV_CONTROLLABLE token allows us to use ARACHNID: PLAY NOW! in adventurer mode, which is exactly what we want. They'll be powerful enough to use without gear anyhow.
+
INDIV_CONTROLLABLE and ADVENTURE_TIER tokens allows us to use ARACHNID: PLAY NOW! in adventurer mode, which is exactly what we want. They'll be powerful enough to use without gear anyhow.
  
 
Next, we open up creature_new.txt (if you haven't made one, check the above example) and add the new creature to it:
 
Next, we open up creature_new.txt (if you haven't made one, check the above example) and add the new creature to it:
Line 315: Line 538:
 
     [NAME:arachnid:arachnids:arachnid]
 
     [NAME:arachnid:arachnids:arachnid]
 
     [TILE:'&'][COLOR:7:0:0]
 
     [TILE:'&'][COLOR:7:0:0]
     [MODVALUE:20]
+
     [MODVALUE:20][SEMIMEGABEAST]
 
     [INTELLIGENT][CANOPENDOORS]
 
     [INTELLIGENT][CANOPENDOORS]
 
     [LARGE_CHASM][FREQUENCY:1][DIFFICULTY:4]
 
     [LARGE_CHASM][FREQUENCY:1][DIFFICULTY:4]
 
     [SPEED:700]
 
     [SPEED:700]
 
     [STOUT]
 
     [STOUT]
     [EXTRACT:giant cave spider venom:7:0:0]
+
     [EXTRACT:arachnid venom:7:0:0]
     [EXTRACT_VALUE:100]
+
     [EXTRACT_VALUE:500]
 
     [EXTRACT_PARALYZE][NATURAL][PET_EXOTIC]
 
     [EXTRACT_PARALYZE][NATURAL][PET_EXOTIC]
     [EXTRACT_ANTIDOTE:giant cave spider antivenin:7:0:0:100]
+
     [EXTRACT_ANTIDOTE:arachnid antivenin:7:0:0:100]
 
     [WEBIMMUNE][AMBUSHPREDATOR][PARALYZEIMMUNE]
 
     [WEBIMMUNE][AMBUSHPREDATOR][PARALYZEIMMUNE]
 
     [GENPOWER:4]
 
     [GENPOWER:4]
Line 333: Line 556:
 
     [BUILDINGDESTROYER:1]
 
     [BUILDINGDESTROYER:1]
 
     [PREFSTRING:terrifying presence]
 
     [PREFSTRING:terrifying presence]
     [BODY:ARACHNOBODY:8EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:THROAT:NECK:SPINE:BRAIN:MOUTH]
+
    [PREFSTRING:fearsome venom]
     [SIZE:10]
+
     [BODY:ARACHNOBODY:8EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:THROAT:NECK:SPINE:BRAIN:MOUTH:5FINGERS]
 +
     [SIZE:15]
 
     [MAXAGE:20:30]
 
     [MAXAGE:20:30]
 
     [ATTACK:MAIN:BYTYPE:MOUTH:bite:bites:1:6:GORE][SPECIALATTACK_INJECT_EXTRACT:50:100]
 
     [ATTACK:MAIN:BYTYPE:MOUTH:bite:bites:1:6:GORE][SPECIALATTACK_INJECT_EXTRACT:50:100]
 
     [ATTACK:SECOND:BYTYPE:GRASP:punch:punches:1:2:BLUDGEON][ATTACKFLAG_WITH]
 
     [ATTACK:SECOND:BYTYPE:GRASP:punch:punches:1:2:BLUDGEON][ATTACKFLAG_WITH]
 
     [FAT:2]
 
     [FAT:2]
     [CHILD:12][BABY:1][MULTIPLE_LITTER_RARE]
+
     [CHILD:30][BABY:1][MULTIPLE_LITTER_RARE]
     [DAMBLOCK:4]
+
     [DAMBLOCK:10]
     [ALL_ACTIVE]
+
     [ALL_ACTIVE][CAVE_ADAPT]
    [BIOME_SUBTERRANEAN_CHASM]
 
 
     [STANDARD_FLESH]
 
     [STANDARD_FLESH]
 
     [HOMEOTHERM:10067]
 
     [HOMEOTHERM:10067]
 
     [LAYERING:50]
 
     [LAYERING:50]
 +
    [SWIMS_LEARNED][SWIM_SPEED:2500]
 +
    [MUNDANE]
  
 
Now, what does this all mean, exactly? Well, compared to dwarves they are big, bad, as fast as elves, as sturdy as dwarves (hard to knock over), they have white blood, can eat bones, are immune to fear, stun, and never get tired, see twice as far, and are almost totally immune to most small-damage attacks. In addition I copied the giant cave spider paralyzing bite attack, so when you bite and hit, you'll sometimes inject a paralyzing poison fairly often that'll knock your prey unconscious in a few combat rounds. Not only is the bite very damaging, but you can even knock out creatures like ettins or giants and rip them up as they sleep at your leisure.  
 
Now, what does this all mean, exactly? Well, compared to dwarves they are big, bad, as fast as elves, as sturdy as dwarves (hard to knock over), they have white blood, can eat bones, are immune to fear, stun, and never get tired, see twice as far, and are almost totally immune to most small-damage attacks. In addition I copied the giant cave spider paralyzing bite attack, so when you bite and hit, you'll sometimes inject a paralyzing poison fairly often that'll knock your prey unconscious in a few combat rounds. Not only is the bite very damaging, but you can even knock out creatures like ettins or giants and rip them up as they sleep at your leisure.  
  
However, we're not done yet. Notice the BODY: token has a few tidbits that we need to take a closer look at- 'ARACHNOBODY' and '8EYES' in particular. These are new to our species and we need to add them. So, close that and open up body_default.txt. Add the following to the bottom:  
+
However, we're not done yet. Notice the BODY: token has a few tidbits that we need to take a closer look at- 'ARACHNOBODY' and '8EYES' in particular. These are new to our species and we need to add them. So, close that and open up body_default.txt, or create your own body_something.txt file. Add the following to the bottom:  
  
 
  [BODY:ARACHNOBODY]
 
  [BODY:ARACHNOBODY]
Line 394: Line 619:
 
Written by Teldin.
 
Written by Teldin.
  
[[Category:Modding]]
+
= Modding utilities =
 +
 
 +
== Modbase ==
 +
 
 +
Modbase is a great tool made by Sean Mirrsen which allows you to freely swap mods and tweak game settings.
 +
[http://www.bay12games.com/forum/index.php?topic=18623.0 Get it now!]
 +
For version 0.38c.
 +
 
 +
== DF Raw Editor ==
 +
 
 +
DF Raw Editor is a brand new tool created to help edit the raw files.
 +
It is available [http://www.bay12games.com/forum/index.php?topic=40413.0 here].
 +
For version 0.40d
 +
 
 +
{{Category|Modding}}
 
[[Category:Guides]]
 
[[Category:Guides]]

Latest revision as of 00:08, 9 November 2024

This article is about an older version of DF.

This is intended to be an easy guide for general newbies on how to both edit and add civilizations, creatures, objects, and so on in Dwarf Fortress, both adventurer and fortress modes, without breaking anything too much. Generally breaking stuff is fine! Just always back up your work & the originals, and be patient at having to generate new worlds over and over.

This guide was edited for version 0.27.176.39c and may not be accurate for later versions, particularly the examples.

See also: Category:Modding

Modding Guide[edit]

Basics of DF modding[edit]

All of the data you can edit are stored in the \raw\ folder wherever you saved your DF executable. The raw folder contains two subfolders: graphics (where you insert graphic packs to make custom tiles), and objects, which contains all the data for generally everything in the game that is not hardcoded. Quite a lot is not hardcoded, so you can edit a wide variety of things in the game.

Editing the raw text files is easy and simple. When you go into the \raw\objects folder you will see a wide variety of text files. When you are modding your game, you can either change existing files or add your own. I personally find it easier just to edit the existing ones in a new \DF\ game folder. When you are changing a token you can simply change the values - these are the numbers/strings after the : in a token entry. For example, [CREATURE:DWARF] is a token in the entity text file, which determines what creatures are used for dwarven civilizations. Simply open the text file, edit what you want, save and close, and generate a new world after you're done editing what you want.

Essentially, everything that can be modded uses text files to determine how they interact with the world or with other objects. With a bit of know-how you can tinker with just about everything.

Every text file uses what are called "tokens", also called "flags". They are essentially attributes that you can add or remove or edit for any particular object in the game, that change the way the object works or acts. Most of the actual effects are hardcoded: for example, giving a creature such as a moose the [EVIL] creature token will make it only appear in evil maps, or giving it [BONECARN] will make it chow down on bones.

A few key things to remember when modding the text files:

  • Always back up the default text files you plan on editing. This way, if your game crashes (due to say, a typo that you can't find) you can simply copy-paste it back in for a 'vanilla' DF.
  • You do not need to delete old saves; simply create a new world using your modded files and things should run fine. Just don't try to play a "non-modded" world with modded files! Should you desire to go back to your old sites, make sure you revert to the raw files used for the creation of that world.
  • In general it's better to make whole new text files for new stuff you're adding rather than editing the existing ones by tagging them onto the bottom. This allows you to keep track of them easier and keeps them all in one place so there's less messing about with tons of files.
  • The absolute easiest way to add an entirely new creature/entity/etc is to simply copy-paste an existing one and rename it, then edit the various tokens appropriately.

In addition, if you rename the any of the \raw\ files themselves (such as 'creature_insects.txt' to 'creature_bugs.txt'), you must find the same filename in the \data\objects\ folder and delete it. This is required because once the world is generated it creates the new files and saves them for use next time the world is needed; without deleting the file you will get duplication errors. This is not necessary if you just don't change any of the filenames.

It has been reported that the name of the raw files is important as to their contents, such as entity_foo.txt should contain an entity and creature_foo.txt should contain creature(s).

Modding the civilizations[edit]

The civilization entries are stored in entity_default.txt. They are quite simple files that are in the following format:

[ENTITY:ENTITYNAME]
    [CREATURE:CREATURETYPE]
    [TRANSLATION:LANGUAGETYPE]
    [BIOME_SUPPORT:BIOMETOKEN:FREQUENCY]
    ...[OTHER TAGS]...

At the top of the file you'll see 'entity_default' all by itself. This word (or "string") must appear at the top of the file and it must match the file name (without extension). All game files require those markers at the top. It may be useful for those with programming experience to think of this as equivalent to a class name. In languages such as Java, the name of the file and the name of the class are identical so the compiler can recognize and process code from text files into binary data for the actual executable program.

Next, if you're creating a new civilization in its own text file, be sure to add entity_*, and [OBJECT:ENTITY] at the top of the file.

Now what do these tokens mean, exactly? For one, where the tags are located don't generally matter quite a lot. You can add them in any order as long as they're underneath the "[ENTITY:]" token, which is the 'header' of the civilization and lets the game know that everything underneath deals with that civ. The entity token can be anything as long as it's not the same as another one.

'[CREATURE:]' links the civilization with a certain creature defined in a different file. This is the creature you play in adventurer or fortress mode, or that wanders around their towns when you explore them. For example, if you wanted to do something silly you could switch the "DWARF" entry in entity_default.txt with "ELF" and you would be marching elves around in fortress mode, though they would still use dwarven technology and language and names and so forth.

'[TRANSLATION:]' connects the civ to a specific language file that determines things like their natural (untranslated) creature first + last names and city names. The valid ones are HUMAN, DWARF, ELF, and GOBLIN.

'[BIOME_SUPPORT:]' defines biomes that civs will appear in. The 'FREQUENCY' value determines the likelyhood of them appearing there: generally 1 for not very often, up to 3 for very often (ie. dwarves in mountains).

You can find many details about the rest of the civilization tokens here. The important ones are the CIV_CONTROLLABLE token, which lets you control the civ in dwarf fortress mode and the INDIV_CONTROLLABLE and ADVENTURE_TIER tokens which lets you play the civ in adventure mode via the PLAY NOW! command. Remember that ADVENTURE_TIER must be in order, so if you are adding a new playable race you must set its tier 1 higher (4).

If you have more than one civ with the [CIV_CONTROLLABLE] token, groups belonging to that civ will appear in the group selection section on the embark screen, although it is not immediately obvious what species each group may be. While this can be determined from legends mode, experimentation suggests that the topmost species in the 'neighbors' section of the embark screen is the same as the currently selected species: If your group is dwarven, dwarves will be topmost, whilst (say) elves will be topmost if your chosen group is elven. By default, the game seems to choose a group (and therefore a species if there is more than one) at random.

Any token that has to deal with weapons, armor, clothing, etc. are all the items that the civ can build, not necessarily the ones they can wear. For example, you could create a species with no clothes specified, but then rob a clothes shop in adventurer mode and wear everything you want, or give them weapons that are too large to wield and they could sell them, but not use them.

[SELECT_SYMBOL:] and [CULL_SYMBOL:ALL:] are the words that can be randomly generated in names, civs, cities, artifacts, engravings, etc. "SELECT_SYMBOL" means that the civ is far more likely to use those, and CULL_SYMBOL means they never will. You can find a list of every symbol type here. SUBSELECT_SYMBOL:WAR/BATTLE/SIEGE just determines which language token to use when they begin wars, battles, or sieges in legends mode, ie. 'The Conflict of Craziness' or 'The Siege of Assaults'. All have these as 'violence' by default but they can be changed to any other token.

'SELECT:SYMBOL:ROAD/TUNNEL/BRIDGE/WALL' use the special language tokens NAME_ROAD, NAME_TUNNEL, etc. and determines what the civ names their structures. 'SELECT_SYMBOL:REMAINING': are the standard tokens used for the species language.

An easy method of creating a civilization is just to copy-paste a similar one to the bottom of the entity_default.txt file and edit things to your liking. Remember to always change the civ's ENTITY: name! This name can be anything as long as it's not already existing.

There are many tokens to play with in the entity file, most of which do something interesting. It's best to simply look through the entity tokens list and figure out for yourself what you want to do with them. The ones of interest are:

  • [SIEGER] [BABYSNATCHER] [NUISANCE] These determine what the civ does in relation to other civs. Babysnatchers periodically swipe infants from nearby civs and have them grow up in their own civ (if kidnapped/brainwashed infants grow up and have children, their last names will use their capturer's language files: ie. you will have evil dwarves with the name Urist Deathghouls in a goblin fortress).
  • [AT_PEACE_WITH_WILDLIFE] This token, currently set only on elves, will mean they will not attack wild animals and animals will not attack them. This ALSO means that if you bring an elf or two along with you in adventurer mode, don't expect them to help you if you get attacked by cougars!
  • [RELIGION_SPHERE] This determines what religious deities will have as spheres when the civilization is generated, along with their subspheres. With a SPHERE_ALIGNMENT set you can also make one more likely than others; ie. Elves have trees, plants, and animals set very high so they are likely to get those more often with their deities.
  • With [DEFAULT_SITE], LIKES_, and TOLERATES_ you can decide where the species will live. DEFAULT_SITE is their home cities and will usually cluster there in large groups. If a civ conquers another and they do not at least tolerate the enemy's home type they will simply destroy it instead of moving in (sometimes they will destroy it anyway).
  • [ETHIC:] tokens determine how the species behaves when it comes to certain unpleasant acts. This also determines what reasons the civ will use when going to war: if a nearby civ has something set ACCEPTABLE that they consider UNTHINKABLE, then it is likely they will go to war over it. It also determines a few other things, like what happens to dead foes: Elves have '[ETHIC:EAT_SAPIENT_KILL:ACCEPTABLE]' for example. Goblins defacing their enemies (ie. hanging, stuck on pikes) is [ABUSE_BODIES], as well as ETHIC:MAKE_TROPHY_ tokens set ACCEPTABLE.

Modding the creatures[edit]

Creature modding is great fun. Essentially you can change nearly any aspect of a creature or completely make your own from scratch. You can either add a new creature to the bottom of an existing creature_thing.txt file or make your own file; just be sure to add the name of the file (without the txt) to the top of it. For example, I tend to use a 'creature_newbies.txt' file myself.

Modding creatures is exactly similar to modding civs: just a matter of editing, adding, or removing tokens, enclosed in square brackets underneath the creature's [CREATURE:] header. The creature entries contain all the information about each specific creature in the game, from animals to dwarves to goblins to even caravan wagons. Much of the data of a creature is quite self-explanatory; you can find a list of every creature token here.

There're some tokens which use temperature values. Dwarf Fortress has it's own temperature scale for this. DF temperature scale.

Note: If you add a butcherable creature to the game such as a domestic animal, people will automatically wander around wearing its fur or skin as leather items when you are in the game, assuming the creature comes from the civ's biome (natural area). So don't be surprised to see 'duck leather armor' or something if you add ducks. Also note if you add a species that has a naturally high body temperature (magma snakes for example) and set it butcherable, people will automatically be generated wearing their skins.. and then since the skins have a naturally high temperature too they tend to burst into flame immediately because they were wearing a +magma snake leather sock+. Woops.

You'll notice many of the creature entries have tokens that other ones don't have. If a token is not present it's considered "default", though sometimes the default can be hard to figure out. All of the creatures referenced in the entity files are present in creature_standard.txt and require certain other tokens that non-entity creatures do not need, such as [INTELLIGENT] and [CANOPENDOORS].

For example, if you wanted to allow your dwarves to eat bones from the refuse stockpile (ew), you would open up creature_standard.txt, add [BONECARN] somewhere in the CREATURE_DWARF: entry at the top, and then save and close it, then generate a new world. Bon appetit! *Notice that this has the unfortunate side effect of making them unable to eat plants.*

How to add a new creature.

If you make a totally new creature, feel free to add it here along with any additional information.


Modding items[edit]

Items come in several flavors: 'crafted' items, and 'natural' items. Both are the same in most ways, but are stored in different places: most crafted item data are stored in the item_blah.txt files (such as item_armor.txt), while things like plants, gems, food, and ore are stored in "matgloss" files, ie. matgloss_plant.txt. Both are easily editable just like a creature or civ, but the problem is that there is no definitive list of what most of the tokens for these quite do yet. In any case they are usually pretty self-explanatory and you can guess what they do by checking out similar entries.

For example, let's look at the entry for, of course, the thong:

[ITEM_PANTS:ITEM_PANTS_THONG] [NAME:thong:thongs] [WEIGHT:10] [VALUE:10] [BLOCKPOWER:5] [LAYER:UNDER] [COVERAGE:25] [LAYER_SIZE:10] [LAYER_PERMIT:30] [MATERIAL_SIZE:1] [SOFT] [LEATHER]

Most of these are pretty obvious if one compares them to the other entries. Now, if you wanted to mod these to turn them into metal thongs (ouch!), you would simply have to add [METAL] to it somewhere, and probably [HARD] instead of [SOFT]. Simple!

Weapons work largely the same way; but remember that in order to actually use any of these things you'd have to add the ITEM_THING item flag to the civilization's 'useable items' list in entity_default.txt. For example, if you're fond of Scots and decided to make a 'claymore' sword that's even bigger than the two-hander already in the files. It might look like this:

[ITEM_WEAPON:ITEM_WEAPON_SWORD_CLAYMORE]
[NAME:claymore sword:claymore swords]
[DAMAGE:160:SLASH]
[WEIGHT:120]
[SKILL:SWORD]
[CRIT_BOOST:1]
[TWO_HANDED:0]
[MINIMUM_SIZE:7]
[MATERIAL_SIZE:5]

Tada! Yes, it's that easy. Then you just add it to the civ entry so a civilization can actually use and craft it, and it's done.

Modding language files[edit]

Let's say you added a whole new species. Sure, you could just swipe one of the existing translation files and steal their language for your species, but that's the lazy way! If you want to create a whole new language, it's very simple.

First, you'd need a whole new language_RACE file, such as language_LIZARDMAN.txt, along with "language_LIZARDMAN" at the top of the file proceeded by [OBJECT:LANGUAGE] and [TRANSLATION:LIZARDMAN]. After that, it's just a matter of copy-pasting one of the existing language lists and editing the finished 'translated' word. That's it! Then just add the translation link to your civ in entity_default.txt and it'll be added to the game on worldgen.

Modding body parts[edit]

Imagine you have this fantastic idea for a multi-tentacled winged spider-monster. Sounds great! But in order to make this a reality you may need to create a new set of body parts for it. That's no problem! Making body parts is easy, though it may look complicated at first.

All body definitions are located in body_default.txt and then linked to a creature in the creature's entry. For example, the dwarf creature has: [BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:THROAT:NECK:SPINE:BRAIN:5FINGERS:5TOES:MOUTH]. All of these are seperate bodypart definitions in body_default.txt. You can mix and match them in the creature entry and it makes no difference, as long as they're there: each bodypart will link itself to the appropriate connection automatically when the creature is first created. This means that if you don't add the appropriate bodyparts, hilarious things can happen: if you forget to add a throat or lungs your new creature will suffocate after taking a few steps (unless you make it a nonbreather).

Body parts work by sections: you can add as many sections as you want to a bodypart definition, but generally you should keep it fairly low for ease of use. Each body section entry is in the very simple format:

[BODY:BODYNAME]
[BP:ID:name][TOKENSGOHERE]

You can add as many sub-parts as you want to an overall section. The most important tokens are 'CONTYPE' and 'CON': CONTYPE means the bodypart in question is connected to a certain *type* of bodypart, while CON means it's connected to a *specific* one. Let's break down a few entries:

[BODY:BASIC_HEAD]
[BP:HD:head][CONTYPE:UPPERBODY][HEAD]

This is a very simple one: a head. It connects directly to an upper body. All the stuff inside the head are seperate entries that call up the head as a different contype in turn:

[BODY:THROAT]
[BP:THROAT:throat][CONTYPE:HEAD][THROAT][EMBEDDED][SMALL]

The foot bone's connected to the ankle bone..

If you wanted someone to be able to break someone else's throat (like breaking a joint) and suffocate them, just add the [JOINT], [BREATHE], and possibly [NERVOUS] to the throat object's tokens.

A 'BODYGLOSS', which you can sometimes find in the creature entries, are simply replacement words for certain defined words in a creature. For example, you'll find the bodygloss [BODYGLOSS:CLAW_HAND:hand:claw] in the body_default.txt, and then you can use this in a creature with '[BODYGLOSS:CLAW_HAND]' and it will replace all instances of "hand" with "claw" in that creature. For all intent and purpose the body part will still function as the proper part, though.

Note that only creatures with the [EQUIPS] token (and possibly [INTELLIGENT]) and a civ that can create clothes/armor/weapons will be able to actually wear stuff. Also, if the creature size is too large for the clothes they will also not be able to wear it.

Example one: dark dwarves[edit]

These examples will go over the details for creating several new things as well as editing some old ones.

Remember: Do NOT load an old save after genning a new world with different raws. It's much safer to simply delete all your old saves after you've modded things, or simply copy-and-paste a fresh version of DF into a new folder.


First, we're going to create a new, evil civilization of dwarves called, unsurprisingly, dark dwarves. This will be quite easy, though with a few fundamental differences. Mainly, that dark dwarves are evil and more warlike than regular dwarves.

Now, open up entity_default.txt. All your species civilizations will be in there. We're going to make a whole new one for our dark dwarves. In many ways it'll be a simple copy-paste job of regular dwarves, then tweaking some things.

Add this to the TOP of the entity_default file, before the dwarf entry:

[ENTITY:DARK_DWARF]
	[CIV_CONTROLLABLE]
	[CREATURE:DARK_DWARF]
	[TRANSLATION:DWARF]
	[DIGGER:ITEM_WEAPON_PICK]
	[WEAPON:ITEM_WEAPON_AXE_BATTLE]
   	[WEAPON:ITEM_WEAPON_WHIP]
	[WEAPON:ITEM_WEAPON_FLAIL]
	[WEAPON:ITEM_WEAPON_SCOURGE]
	[WEAPON:ITEM_WEAPON_DAGGER_LARGE]
	[WEAPON:ITEM_WEAPON_MACE]
	[WEAPON:ITEM_WEAPON_SWORD_SHORT]
	[WEAPON:ITEM_WEAPON_SCIMITAR]
	[WEAPON:ITEM_WEAPON_CROSSBOW]
	[AMMO:ITEM_AMMO_BOLTS]
	[ARMOR:ITEM_ARMOR_PLATEMAIL:COMMON]
	[ARMOR:ITEM_ARMOR_CHAINMAIL:COMMON]
	[ARMOR:ITEM_ARMOR_LEATHER:COMMON]
	[ARMOR:ITEM_ARMOR_COAT:COMMON]
	[ARMOR:ITEM_ARMOR_SHIRT:COMMON]
	[ARMOR:ITEM_ARMOR_CLOAK:COMMON]
	[ARMOR:ITEM_ARMOR_TOGA:UNCOMMON]
	[ARMOR:ITEM_ARMOR_VEST:COMMON]
	[ARMOR:ITEM_ARMOR_DRESS:COMMON]
	[ARMOR:ITEM_ARMOR_ROBE:COMMON]
	[HELM:ITEM_HELM_HELM:COMMON]
	[HELM:ITEM_HELM_HOOD:COMMON]
	[GLOVES:ITEM_GLOVES_GAUNTLETS:COMMON]
	[GLOVES:ITEM_GLOVES_GLOVES:COMMON]
	[SHOES:ITEM_SHOES_SHOES:COMMON]
	[SHOES:ITEM_SHOES_BOOTS:COMMON]
	[SHOES:ITEM_SHOES_BOOTS_LOW:COMMON]
	[PANTS:ITEM_PANTS_PANTS:COMMON]
	[PANTS:ITEM_PANTS_GREAVES:COMMON]
	[PANTS:ITEM_PANTS_LEGGINGS:COMMON]
	[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]
	[TOY:ITEM_TOY_HAMMER]
	[TOY:ITEM_TOY_AXE]
	[TOY:ITEM_TOY_MINIFORGE]
	[INSTRUMENT:ITEM_INSTRUMENT_TRUMPET]
	[INSTRUMENT:ITEM_INSTRUMENT_DRUM]
	[CLOTHING]
	[SUBTERRANEAN_CLOTHING]
	[CURRENCY_BY_YEAR]
	[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]
	[SELECT_SYMBOL:REMAINING:ARTIFICE]
	[SELECT_SYMBOL:REMAINING:EARTH]
	[SELECT_SYMBOL:REMAINING:EVIL]
	[SELECT_SYMBOL:REMAINING:UNTOWARD]
	[SELECT_SYMBOL:REMAINING:UGLY]
	[SELECT_SYMBOL:REMAINING:EARTH]
	[CULL_SYMBOL:ALL:DOMESTIC]
	[CULL_SYMBOL:ALL:FLOWERY]
	[CULL_SYMBOL:ALL:HOLY]
	[CULL_SYMBOL:ALL:PEACE]
	[CULL_SYMBOL:ALL:NEGATOR]
	[CULL_SYMBOL:ALL:GOOD]
	[METAL_PREF]
	[GEM_PREF]
	[STONE_PREF]
	[INDOOR_FARMING]
	[USE_CAVE_ANIMALS]
	[USE_ANIMAL_PRODUCTS]
	[USE_EVIL_ANIMALS]
	[USE_EVIL_PLANTS]
	[USE_EVIL_WOOD]
	[COMMON_DOMESTIC_PACK]
	[COMMON_DOMESTIC_PULL]
	[COMMON_DOMESTIC_MOUNT]
	[COMMON_DOMESTIC_PET]
	[USE_MISC_PROCESSED_WOOD_PRODUCTS]
	[EQUIPMENT_IMPROVEMENTS]
	[ART_FACET_MODIFIER:GOOD:0]
	[ART_FACET_MODIFIER:EVIL:512]
	[ITEM_IMPROVEMENT_MODIFIER:RINGS_HANGING:0]
	[ITEM_IMPROVEMENT_MODIFIER:BANDS:0]
	[ITEM_IMPROVEMENT_MODIFIER:SPIKES:384]
	[ADVENTURE_TIER:4]
	[FRIENDLY_COLOR:1:0:1]
	[DEFAULT_SITE_TYPE:CAVE_DETAILED]
	[LIKES_SITE:CAVE_DETAILED]
	[TOLERATES_SITE:CITY]
	[TOLERATES_SITE:TREE_CITY]
	[TOLERATES_SITE:CAVE_DETAILED]
	[TOLERATES_SITE:CAVE]
	[LEADER_TYPE:KING]
	[SITE_LEADER_TYPE:STANDARD]
	[START_BIOME:MOUNTAIN]
	[BIOME_SUPPORT:ANY_WETLAND:1]
	[BIOME_SUPPORT:ANY_DESERT:1]
	[BIOME_SUPPORT:ANY_OCEAN:1]
	[BIOME_SUPPORT:ANY_LAKE:1]
	[BIOME_SUPPORT:MOUNTAIN:3]
	[BIOME_SUPPORT:ANY_GRASSLAND:1]
	[BIOME_SUPPORT:ANY_SAVANNA:1]
	[BIOME_SUPPORT:ANY_SHRUBLAND:1]
	[BIOME_SUPPORT:ANY_RIVER:1]
	[DIPLOMAT]
	[DIPLOMAT_BODYGUARDS]
	[MERCHANT_BODYGUARDS]
	[ACTIVE_SEASON:WINTER]
	[SIEGER]
	[MAX_STARTING_CIV_NUMBER:3]
	[START_GROUP_NUMBER:10]
	[MAX_POP_NUMBER:10000]
	[MAX_SITE_POP_NUMBER:200]
	[RELIGION:PANTHEON]
	[RELIGION_SPHERE:FORTRESSES]
	[RELIGION_SPHERE:JEWELS]
	[RELIGION_SPHERE:METALS]
	[RELIGION_SPHERE:MINERALS]
	[RELIGION_SPHERE:MOUNTAINS]
	[RELIGION_SPHERE:WEALTH]
	[RELIGION_SPHERE:NIGHT]
	[RELIGION_SPHERE:WAR]
	[RELIGION_SPHERE:DISEASE]
	[RELIGION_SPHERE:FIRE]
	[MAYOR]
	[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:STRAND_EXTRACTOR]
	[PERMITTED_JOB:FISHERMAN]
	[PERMITTED_JOB:FISH_DISSECTOR]
	[PERMITTED_JOB:FISH_CLEANER]
	[PERMITTED_JOB:CHEESE_MAKER]
	[PERMITTED_JOB:MILKER]
	[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]
	[WORLD_CONSTRUCTION:TUNNEL]
	[WORLD_CONSTRUCTION:BRIDGE]
	[WORLD_CONSTRUCTION:ROAD]
	[ETHIC:KILL_ENTITY_MEMBER:PUNISH_CAPITAL]
	[ETHIC:KILL_NEUTRAL:ACCEPTABLE]
	[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:PERSONAL_MATTER]
	[ETHIC:TORTURE_ANIMALS:ACCEPTABLE]
	[ETHIC:TREASON:PUNISH_CAPITAL]
	[ETHIC:OATH_BREAKING:PUNISH_CAPITAL]
	[ETHIC:LYING:PERSONAL_MATTER]
	[ETHIC:VANDALISM:ACCEPTABLE]
	[ETHIC:TRESPASSING:PUNISH_SERIOUS]
	[ETHIC:THEFT:PUNISH_SERIOUS]
	[ETHIC:ASSAULT:PUNISH_SERIOUS]
	[ETHIC:SLAVERY:ACCEPTABLE]
	[ETHIC:EAT_SAPIENT_OTHER:ACCEPTABLE]
	[ETHIC:EAT_SAPIENT_KILL:ACCEPTABLE]
	[ETHIC:MAKE_TROPHY_SAME_RACE:ACCEPTABLE]
	[ETHIC:MAKE_TROPHY_SAPIENT:ACCEPTABLE]
	[ETHIC:MAKE_TROPHY_ANIMAL:ACCEPTABLE]
	[WILL_ACCEPT_TRIBUTE]


The fun part is that your dark dwarves will, thanks to the specified symbols, have some crazy names that you'd never see with regular dwarves (one of the fortresses it generated was called "Crowanus", for example). If you dislike having bad language, just remove the [SELECT_SYMBOL:ALL:UNTOWARD].

The main differences you'll see here compared to the dwarf entry is that they have different weapons, toys, instruments (thanks to their warlike nature, they build less of them) and [USE_EVIL_ANIMALS] is turned on: this will do nothing in dwarf fort mode but you'll see tamed trolls and ogres in their fortresses in adventurer mode. Many of their other tokens are changed as well, to make them more violent and evil. For example, they will eat their foes like elves do. Yum!

Now, we need to build the DARK_DWARF creature. Create a new text file called 'creature_new.txt'. Immediately, add the following:

creature_new

[OBJECT:CREATURE]

That'll make this text file recognized as a creature file. Now, we simply add our dark_dwarf creature:


[CREATURE:DARK_DWARF]
	[NAME:dark dwarf:dark dwarves:dark dwarven]
	[TILE:1][COLOR:3:0:0]
	[GENPOWER:3]
	[INTELLIGENT]
	[TRANCES]
	[EVIL]
	[CANOPENDOORS]
	[PREFSTRING:beards]
	[PREFSTRING:violent tempers]
	[PREFSTRING:sullying of the dead]
	[BODY:HUMANOID:2EYES:2EARS:NOSE:2LUNGS:HEART:GUTS:ORGANS:HUMANOID_JOINTS:THROAT:NECK:SPINE:BRAIN:5FINGERS:5TOES:MOUTH]
	[STOUT]
	[MAXAGE:250:270]
	[ATTACK:MAIN:BYTYPE:GRASP:punch:punches:1:2:BLUDGEON][ATTACKFLAG_WITH]
	[ATTACK:SECOND:BYTYPE:MOUTH:bite:bites:1:1:GORE][ATTACKFLAG_CANLATCH]
	[CHILD:12][BABY:1][MULTIPLE_LITTER_RARE]
	[DAMBLOCK:1]
	[FAT:3]
	[SIZE:6]
	[EQUIPS]
	[CAVE_ADAPT]
	[NOCTURNAL]
	[CRAFTSMAN_NAME:craftsdwarf:craftsdwarves]
	[FISHERMAN_NAME:fisherdwarf:fisherdwarves]
	[HAMMERMAN_NAME:hammerdwarf:hammerdwarves]
	[SPEARMAN_NAME:speardwarf:speardwarves]
	[CROSSBOWMAN_NAME:marksdwarf:marksdwarves]
	[AXEMAN_NAME:axedwarf:axedwarves]
	[SWORDSMAN_NAME:swordsdwarf:swordsdwarves]
	[MACEMAN_NAME:macedwarf:macedwarves]
	[PIKEMAN_NAME:pikedwarf:pikedwarves]
	[BOWMAN_NAME:bowdwarf:bowdwarves]
	[SPEECH:dwarf.txt]
	[STANDARD_FLESH]
	[HOMEOTHERM:10067]
	[LAYERING:50]
	[SWIMS_LEARNED][SWIM_SPEED:2500]
	[PERSONALITY:ANGER:25:75:100]
	[PERSONALITY:IMMODERATION:0:75:100]
	[PERSONALITY:EXCITEMENT_SEEKING:0:60:100]
	[PERSONALITY:CHEERFULNESS:0:10:90]
	[PERSONALITY:ALTRUISM:0:25:50]
	[PERSONALITY:MODESTY:0:20:90]
	[PERSONALITY:SYMPATHY:0:25:50]
	[PERSONALITY:VULNERABILITY:0:25:100]
	[PERSONALITY:STRAIGHTFORWARDNESS:25:65:100]
	[PERSONALITY:SELF_DISCIPLINE:30:75:100]


This is largely a copy of the regular dwarves, but with several differences: [LIKES_FIGHTING] will give them happy thoughts when they have fought something, [NOCTURNAL] means they like nights rather than days, and [EVIL] means on the adventurer map their fortresses will tend to end up on evil tiles rather than good ones. Otherwise, they are exactly the same as regular dwarves. To make them extra evil, add [BONECARN] somewhere in there and they can eat bones (they'll actually haul them from your refuse pit to the dining table, yum), but will sometimes (though rarely) choke to death on them[Verify]. Bear in mind that [BONECARN] implies [CARNIVORE], so they won't eat vegetables making the game much harder. Also, they do not require booze to stay happy (though will happily drink it anyway if they have to).

There! That's all we need to do in order to add our civilization. Just create a new world and they'll be there: however, when you go to adventurer mode, all (or none) of your dwarf entries might be replaced with dark dwarves, so it's really a matter of luck. When you start a new fortress, there will be a 50-50 chance of playing either as dwarves or dark dwarves. The easiest way to tell if a civ is a dark dwarven is if the name is rather unpleasant. 'The Fortress of Rapes' for example would probably not be a standard dwarven one. Remove [CIV_CONTROLLABLE] from the standard dwarves if you only want to play as dark.

Example two: "Arachnid" playable creature[edit]

This time, we're going to add a new playable creature to adventurer mode, but not playable in fortress mode. An 'arachnid' is a large, powerful, evil half-elf, half-spider (no copyright violations here!): they are too big to wear standard equipment and are quite nasty enough without it anyway. The downside to playing them is that since they do not form standard civilizations, you cannot start them at a specific location nor will they have any weapon, armor, or wrestling skills to start out.

First off, we need to add a civilization entry in entity_default.txt. Open it up and add this to the top of the file:

[ENTITY:ARACHNIDS]
   [MOUNTAIN_SETTLEMENTS]
   [CREATURE:ARACHNID]
   [INDIV_CONTROLLABLE]
   [ADVENTURE_TIER:4]

Note: adventure_tier should be 5 if you also have the dark dwarves.

   [TRANSLATION:ELF]
   [BIOME_SUPPORT:ANY_WETLAND:2]
   [BIOME_SUPPORT:ANY_DESERT:3]
   [BIOME_SUPPORT:ANY_FOREST:1]
   [BIOME_SUPPORT:MOUNTAIN:4]
   [BIOME_SUPPORT:ANY_GRASSLAND:1]
   [BIOME_SUPPORT:ANY_SAVANNA:1]
   [BIOME_SUPPORT:ANY_SHRUBLAND:1]
   [BIOME_SUPPORT:ANY_RIVER:2]
   [START_BIOME:MOUNTAIN]
   [SELECT_SYMBOL:ALL:EVIL]
   [SELECT_SYMBOL:ALL:VIOLENT]
   [SELECT_SYMBOL:ALL:DEATH]
   [SELECT_SYMBOL:ALL:UNTOWARD]
   [CULL_SYMBOL:ALL:DOMESTIC]
   [CULL_SYMBOL:ALL:FLOWERY]
   [CULL_SYMBOL:ALL:HOLY]
   [CULL_SYMBOL:ALL:PEACE]
   [CULL_SYMBOL:ALL:NEGATOR]
   [CULL_SYMBOL:ALL:GOOD]
   [FRIENDLY_COLOR:7:0:0]
   [DEFAULT_SITE_TYPE:CAVE]
   [LIKES_SITE:CAVE]
   [TOLERATES_SITE:CAVE]
   [ACTIVE_SEASON:SPRING]
   [ACTIVE_SEASON:SUMMER]
   [ACTIVE_SEASON:AUTUMN]
   [ACTIVE_SEASON:WINTER]
   [MAX_STARTING_CIV_NUMBER:2]
   [START_GROUP_NUMBER:1]
   [MAX_POP_NUMBER:500]
   [MAX_SITE_POP_NUMBER:20]
   [ETHIC:KILL_ENTITY_MEMBER:ACCEPTABLE]
   [ETHIC:KILL_NEUTRAL:ACCEPTABLE]
   [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:ACCEPTABLE]
   [ETHIC:TORTURE_ANIMALS:ACCEPTABLE]
   [ETHIC:TREASON:ACCEPTABLE]
   [ETHIC:OATH_BREAKING:ACCEPTABLE]