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 "v0.31 Talk:Modding guide"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
Line 25: Line 25:
 
== Adamantine Dwarves ==
 
== Adamantine Dwarves ==
 
I've been trying to make my dwarfs out of Adamantine, but I'm not sure how to do this. Anyone know how? --[[Special:Contributions/94.173.253.116|94.173.253.116]] 21:07, 20 May 2011 (UTC)
 
I've been trying to make my dwarfs out of Adamantine, but I'm not sure how to do this. Anyone know how? --[[Special:Contributions/94.173.253.116|94.173.253.116]] 21:07, 20 May 2011 (UTC)
 +
 +
 +
This Should solver your problems
 +
 +
Place these in b_detail_plan_default.txt<blockquote>
 +
[BODY_DETAIL_PLAN:ADAMANTINE_MATERIALS]
 +
[ADD_MATERIAL:ADAMANTINE:ADAMANTINE_TEMPLATE]
 +
[ADD_MATERIAL:FAT:FAT_TEMPLATE]
 +
[ADD_MATERIAL:MUSCLE:MUSCLE_TEMPLATE]
 +
[ADD_MATERIAL:BONE:BONE_TEMPLATE]
 +
[ADD_MATERIAL:CARTILAGE:CARTILAGE_TEMPLATE]
 +
[ADD_MATERIAL:HAIR:HAIR_TEMPLATE]
 +
[ADD_MATERIAL:TOOTH:TOOTH_TEMPLATE]
 +
[ADD_MATERIAL:EYE:EYE_TEMPLATE]
 +
[ADD_MATERIAL:NERVE:NERVE_TEMPLATE]
 +
[ADD_MATERIAL:BRAIN:BRAIN_TEMPLATE]
 +
[ADD_MATERIAL:LUNG:LUNG_TEMPLATE]
 +
[ADD_MATERIAL:HEART:HEART_TEMPLATE]
 +
[ADD_MATERIAL:LIVER:LIVER_TEMPLATE]
 +
[ADD_MATERIAL:GUT:GUT_TEMPLATE]
 +
[ADD_MATERIAL:STOMACH:STOMACH_TEMPLATE]
 +
[ADD_MATERIAL:PANCREAS:PANCREAS_TEMPLATE]
 +
[ADD_MATERIAL:SPLEEN:SPLEEN_TEMPLATE]
 +
[ADD_MATERIAL:KIDNEY:KIDNEY_TEMPLATE]
 +
[ADD_MATERIAL:LEATHER:LEATHER_TEMPLATE]
 +
[ADD_MATERIAL:TALLOW:TALLOW_TEMPLATE]
 +
[ADD_MATERIAL:SOAP:SOAP_TEMPLATE]</blockquote><blockquote>
 +
BODY_DETAIL_PLAN:COMPLEX_TISSUES]
 +
This command is just a shortcut for the similar lines (USE_TISSUE_TEMPLATE|<token>|<template>) in a creature definition.
 +
[ADD_TISSUE:ADAMANTINE:ADAMANTINE_TEMPLATE]
 +
[ADD_TISSUE:FAT:FAT_TEMPLATE]
 +
[ADD_TISSUE:MUSCLE:MUSCLE_TEMPLATE]
 +
[ADD_TISSUE:BONE:BONE_TEMPLATE]
 +
[ADD_TISSUE:CARTILAGE:CARTILAGE_TEMPLATE]
 +
[ADD_TISSUE:HAIR:HAIR_TEMPLATE]
 +
[ADD_TISSUE:TOOTH:TOOTH_TEMPLATE]
 +
[ADD_TISSUE:EYE:EYE_TEMPLATE]
 +
[ADD_TISSUE:NERVE:NERVE_TEMPLATE]
 +
[ADD_TISSUE:BRAIN:BRAIN_TEMPLATE]
 +
[ADD_TISSUE:LUNG:LUNG_TEMPLATE]
 +
[ADD_TISSUE:HEART:HEART_TEMPLATE]
 +
[ADD_TISSUE:LIVER:LIVER_TEMPLATE]
 +
[ADD_TISSUE:GUT:GUT_TEMPLATE]
 +
[ADD_TISSUE:STOMACH:STOMACH_TEMPLATE]
 +
[ADD_TISSUE:PANCREAS:PANCREAS_TEMPLATE]
 +
[ADD_TISSUE:SPLEEN:SPLEEN_TEMPLATE]
 +
[ADD_TISSUE:KIDNEY:KIDNEY_TEMPLATE]</blockquote>
 +
 +
Place this in tissue_template_default.txt<blockquote>
 +
[TISSUE_TEMPLATE:ADAMANTINE_TEMPLATE]
 +
[TISSUE_NAME:adamantine:NP
 +
[SCARS]
 +
[TISSUE_MATERIAL:INORGANIC:ADAMANTINE]
 +
[RELATIVE_THICKNESS:1]
 +
[HEALING_RATE:100]
 +
[VASCULAR]
 +
[THICKENS_ON_STRENGTH]
 +
[ARTERIES]
 +
[MUSCULAR]
 +
[STRUCTURAL]
 +
[FUNCTIONAL]
 +
[PAIN_RECEPTORS:5]
 +
[CONNECTS]
 +
[TISSUE_SHAPE:LAYER]</blockquote>
 +
 +
Place this in material_template_default.txt<blockquote>
 +
[MATERIAL_TEMPLATE:ADAMANTINE_TEMPLATE]
 +
[STATE_COLOR:ALL_SOLID:GRAY]
 +
[STATE_NAME:ALL_SOLID:skin]
 +
[STATE_ADJ:ALL_SOLID:skin]
 +
[STATE_COLOR:LIQUID:GRAY]
 +
[STATE_NAME:LIQUID:n/a]
 +
[STATE_ADJ:LIQUID:n/a]
 +
[STATE_COLOR:GAS:GRAY]
 +
[STATE_NAME:GAS:n/a]
 +
[STATE_ADJ:GAS:n/a]
 +
[DISPLAY_COLOR:7:0:0]
 +
[MATERIAL_VALUE:1]
 +
[SPEC_HEAT:450]
 +
[IGNITE_POINT:NONE]
 +
[MELTING_POINT:NONE]
 +
[BOILING_POINT:NONE]
 +
[HEATDAM_POINT:NONE]
 +
[COLDDAM_POINT:NONE]
 +
[MAT_FIXED_TEMP:NONE]
 +
[SOLID_DENSITY:7850]
 +
[LIQUID_DENSITY:NONE]
 +
[MOLAR_MASS:55845]
 +
[IMPACT_YIELD:1080000]
 +
[IMPACT_FRACTURE:1080000]
 +
[IMPACT_STRAIN_AT_YIELD:1000]
 +
[COMPRESSIVE_YIELD:1080000]
 +
[COMPRESSIVE_FRACTURE:1080000]
 +
[COMPRESSIVE_STRAIN_AT_YIELD:50000]
 +
[TENSILE_YIELD:520000]
 +
[TENSILE_FRACTURE:860000]
 +
[TENSILE_STRAIN_AT_YIELD:50000]
 +
[TORSION_YIELD:520000]
 +
[TORSION_FRACTURE:860000]
 +
[TORSION_STRAIN_AT_YIELD:50000]
 +
[SHEAR_YIELD:520000] used data for human skin
 +
[SHEAR_FRACTURE:860000]
 +
[SHEAR_STRAIN_AT_YIELD:50000]
 +
[BENDING_YIELD:520000]
 +
[BENDING_FRACTURE:860000]
 +
[BENDING_STRAIN_AT_YIELD:50000]
 +
[MAX_EDGE:0]
 +
[ABSORPTION:100].
 +
[MATERIAL_REACTION_PRODUCT:TAN_MAT:LOCAL_CREATURE_MAT:LEATHER]
 +
[IMPLIES_ANIMAL_KILL]
 +
[ROTS]</blockquote>
 +
 +
And finally replace the body details in creature_standard_default.txt with<blockquote>
 +
[BODY_DETAIL_PLAN:ADAMANTINE_MATERIALS]
 +
[BODY_DETAIL_PLAN:COMPLEX_TISSUES]
 +
[BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:ADAMANTINE:FAT:MUSCLE:BONE:CARTILAGE]
 +
[BODY_DETAIL_PLAN:HEAD_HAIR_TISSUE_LAYERS]
 +
</blockquote>
 +
 +
*You will need to offset them because i cant get it to look right.

Revision as of 05:14, 17 June 2011

What can/cannot be modded

I don't see any information in mechanism modding. So far I'm assuming that's because they are not(yet at least) moddable. I've looked through the raws pretty thoroughly, and searched the bay12 forum mod section. I do see the raw for editing the mechanism components, what i'd like to be able to do is define my own mechanisms etc. Am I just missing something obvious? --MadGreyOne

Besides the contents of ~data\speech, only the things mentioned on this page (ie the contents of ~\raw) can be modified. Mechanical components/furniture/siege engines/the standard, non-custom workshops/ai routines/whatever else don't have any presence in the raws, and hence can't be modified. I considered making a list of things that modders can't change, but put it aside at the time. --3 04:37, 6 December 2010 (UTC)


Modding Liquids

Does anyone know if you can mod water? all i want to do is drop the freezing temp a bit to stop ice from forming, but i can't find it anywhere in the raws. Thanks. --rogue ork 16:47, 20 february 2011

Water is hardcoded, so you can't mod it. --SpitefulFox 06:02, 20 February 2011 (UTC)

Thanks --rogue ork 00:30, 25 february 2011 (UTC)

Crafting

Am i correct in thinking the crafting recipes for things such as weapons are hardcoded? I couldn't find any reference to their material requirements in the obvious raw files - do all weapons require a single item of metal/whatever and a plank of wood? - Shortzo 03:23, 7 March 2011 (GMT +13)

Flying Civs

Is it possible to make a controllable civ who's members can fly in adventure and fortress mode? --HugoLuman 03:07, 15 March 2011 (UTC)

Multiple [CIV_CONTROLLABLE] Entities Issue

If you have more than one Entity with the [CIV_CONTROLLABLE] tag, will they interact with your civ in Fortress Mode? For example, would dwarves trade with you if you were playing as humans?

Adamantine Dwarves

I've been trying to make my dwarfs out of Adamantine, but I'm not sure how to do this. Anyone know how? --94.173.253.116 21:07, 20 May 2011 (UTC)


This Should solver your problems

Place these in b_detail_plan_default.txt

[BODY_DETAIL_PLAN:ADAMANTINE_MATERIALS] [ADD_MATERIAL:ADAMANTINE:ADAMANTINE_TEMPLATE] [ADD_MATERIAL:FAT:FAT_TEMPLATE] [ADD_MATERIAL:MUSCLE:MUSCLE_TEMPLATE] [ADD_MATERIAL:BONE:BONE_TEMPLATE] [ADD_MATERIAL:CARTILAGE:CARTILAGE_TEMPLATE] [ADD_MATERIAL:HAIR:HAIR_TEMPLATE] [ADD_MATERIAL:TOOTH:TOOTH_TEMPLATE] [ADD_MATERIAL:EYE:EYE_TEMPLATE] [ADD_MATERIAL:NERVE:NERVE_TEMPLATE] [ADD_MATERIAL:BRAIN:BRAIN_TEMPLATE] [ADD_MATERIAL:LUNG:LUNG_TEMPLATE] [ADD_MATERIAL:HEART:HEART_TEMPLATE] [ADD_MATERIAL:LIVER:LIVER_TEMPLATE] [ADD_MATERIAL:GUT:GUT_TEMPLATE] [ADD_MATERIAL:STOMACH:STOMACH_TEMPLATE] [ADD_MATERIAL:PANCREAS:PANCREAS_TEMPLATE] [ADD_MATERIAL:SPLEEN:SPLEEN_TEMPLATE] [ADD_MATERIAL:KIDNEY:KIDNEY_TEMPLATE] [ADD_MATERIAL:LEATHER:LEATHER_TEMPLATE] [ADD_MATERIAL:TALLOW:TALLOW_TEMPLATE]

[ADD_MATERIAL:SOAP:SOAP_TEMPLATE]

BODY_DETAIL_PLAN:COMPLEX_TISSUES] This command is just a shortcut for the similar lines (USE_TISSUE_TEMPLATE|<token>|<template>) in a creature definition. [ADD_TISSUE:ADAMANTINE:ADAMANTINE_TEMPLATE] [ADD_TISSUE:FAT:FAT_TEMPLATE] [ADD_TISSUE:MUSCLE:MUSCLE_TEMPLATE] [ADD_TISSUE:BONE:BONE_TEMPLATE] [ADD_TISSUE:CARTILAGE:CARTILAGE_TEMPLATE] [ADD_TISSUE:HAIR:HAIR_TEMPLATE] [ADD_TISSUE:TOOTH:TOOTH_TEMPLATE] [ADD_TISSUE:EYE:EYE_TEMPLATE] [ADD_TISSUE:NERVE:NERVE_TEMPLATE] [ADD_TISSUE:BRAIN:BRAIN_TEMPLATE] [ADD_TISSUE:LUNG:LUNG_TEMPLATE] [ADD_TISSUE:HEART:HEART_TEMPLATE] [ADD_TISSUE:LIVER:LIVER_TEMPLATE] [ADD_TISSUE:GUT:GUT_TEMPLATE] [ADD_TISSUE:STOMACH:STOMACH_TEMPLATE] [ADD_TISSUE:PANCREAS:PANCREAS_TEMPLATE] [ADD_TISSUE:SPLEEN:SPLEEN_TEMPLATE]

[ADD_TISSUE:KIDNEY:KIDNEY_TEMPLATE]

Place this in tissue_template_default.txt

[TISSUE_TEMPLATE:ADAMANTINE_TEMPLATE] [TISSUE_NAME:adamantine:NP [SCARS] [TISSUE_MATERIAL:INORGANIC:ADAMANTINE] [RELATIVE_THICKNESS:1] [HEALING_RATE:100] [VASCULAR] [THICKENS_ON_STRENGTH] [ARTERIES] [MUSCULAR] [STRUCTURAL] [FUNCTIONAL] [PAIN_RECEPTORS:5] [CONNECTS]

[TISSUE_SHAPE:LAYER]

Place this in material_template_default.txt

[MATERIAL_TEMPLATE:ADAMANTINE_TEMPLATE] [STATE_COLOR:ALL_SOLID:GRAY] [STATE_NAME:ALL_SOLID:skin] [STATE_ADJ:ALL_SOLID:skin] [STATE_COLOR:LIQUID:GRAY] [STATE_NAME:LIQUID:n/a] [STATE_ADJ:LIQUID:n/a] [STATE_COLOR:GAS:GRAY] [STATE_NAME:GAS:n/a] [STATE_ADJ:GAS:n/a] [DISPLAY_COLOR:7:0:0] [MATERIAL_VALUE:1] [SPEC_HEAT:450] [IGNITE_POINT:NONE] [MELTING_POINT:NONE] [BOILING_POINT:NONE] [HEATDAM_POINT:NONE] [COLDDAM_POINT:NONE] [MAT_FIXED_TEMP:NONE] [SOLID_DENSITY:7850] [LIQUID_DENSITY:NONE] [MOLAR_MASS:55845] [IMPACT_YIELD:1080000] [IMPACT_FRACTURE:1080000] [IMPACT_STRAIN_AT_YIELD:1000] [COMPRESSIVE_YIELD:1080000] [COMPRESSIVE_FRACTURE:1080000] [COMPRESSIVE_STRAIN_AT_YIELD:50000] [TENSILE_YIELD:520000] [TENSILE_FRACTURE:860000] [TENSILE_STRAIN_AT_YIELD:50000] [TORSION_YIELD:520000] [TORSION_FRACTURE:860000] [TORSION_STRAIN_AT_YIELD:50000] [SHEAR_YIELD:520000] used data for human skin [SHEAR_FRACTURE:860000] [SHEAR_STRAIN_AT_YIELD:50000] [BENDING_YIELD:520000] [BENDING_FRACTURE:860000] [BENDING_STRAIN_AT_YIELD:50000] [MAX_EDGE:0] [ABSORPTION:100]. [MATERIAL_REACTION_PRODUCT:TAN_MAT:LOCAL_CREATURE_MAT:LEATHER] [IMPLIES_ANIMAL_KILL]

[ROTS]

And finally replace the body details in creature_standard_default.txt with

[BODY_DETAIL_PLAN:ADAMANTINE_MATERIALS] [BODY_DETAIL_PLAN:COMPLEX_TISSUES] [BODY_DETAIL_PLAN:VERTEBRATE_TISSUE_LAYERS:ADAMANTINE:FAT:MUSCLE:BONE:CARTILAGE] [BODY_DETAIL_PLAN:HEAD_HAIR_TISSUE_LAYERS]

  • You will need to offset them because i cant get it to look right.