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.

Editing v0.34:Material science

Jump to navigation Jump to search

Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.

You are editing a page for an older version of Dwarf Fortress ("Main" is the current version, not "v0.34"). Please make sure you intend to do this. If you are here by mistake, see the current page instead.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{Quality|Exceptional|23:57, 9 October 2013 (UTC)}}
+
{{quality|Tattered|04:47, 3 April 2012 (UTC)}}{{av}}   
{{av}}   
 
{{Material properties}}
 
 
[[Material|Materials]] have a number of properties representing real world variables that describe how they respond to inputs.  In particular, the game now has a number of variables that describe what happens to a material when it's put under stress.
 
[[Material|Materials]] have a number of properties representing real world variables that describe how they respond to inputs.  In particular, the game now has a number of variables that describe what happens to a material when it's put under stress.
  
Line 17: Line 15:
 
The first set of words are things like Impact, Bending, and so forth.  These describe modes of applying force.
 
The first set of words are things like Impact, Bending, and so forth.  These describe modes of applying force.
  
The following explanations assumes real world physics sort of apply (since [[Main:Toady One|Toady One]] chose real world properties). The game doesn't use all of these properties yet, and may not be applying them according to real world physics.
+
The following explanations assumes real world physics sort of apply (since [[Main:Toady One|Toady One]] chose real world properties).
  
 
===Mechanical Performance Properties===
 
===Mechanical Performance Properties===
Line 40: Line 38:
  
 
Bending: Force applied by bending a material.
 
Bending: Force applied by bending a material.
 +
 +
===Hypotheses based on Real World===
 +
*High strain at yield should reduce the effectiveness of a weapon.  (the more it deforms, the longer it takes to break contact with the struck surface and thus the more inelastic the collision is).
 +
*High strain at yield should be good for armor, because it decreases the force transferred by a weapon (to a point - it can't be so inelastic as to render the armor useless!)
  
 
==Effects on Combat==
 
==Effects on Combat==
The Dwarf Fortress combat system does not use all material properties at present (0.34.11). Weapon and armor damage/wear/decay is not tracked.
+
Dwarf Fortress only features a limited combat system. Item decay does not seem to be simulated properly at all, so the hypotheses are largely incorrect.
 
 
The mechanics governing how material properties impact the protection armor provides against projectiles have been [http://www.bay12forums.com/smf/index.php?topic=116151.0 studied reasonably carefully], and are described below.  Armor protection from melee weapons has not been studied in detail, although it likely shares many similarities with ranged weapons.  '''''Note: all of the below is based on recent (0.34.11) experiments, and many results may be approximate or incomplete.'''''
 
 
 
===Projectile Properties===
 
The main factor determining if a projectile penetrates armor is its momentum.  Material properties of the bolt/arrow (except for IMPACT_YIELD, which will be described below), as well as bolt quality and marksdwarf/archer skills do not appear to matter (the skill of the marksdwarf determines if the bolt misses, hits, is dodged, or is blocked with a shield).  Dwarven weapons launch projectiles with roughly constant momentum.  However rounding of projectile masses can result in some very strange behavior.  The complete calculation used to determine projectile momentum is as follows:
 
*Find the mass of your projectile.  Mass=SOLID_DENSITY*SIZE/1,000,000.
 
*Floor that number to an integer.
 
*Divide the SHOOT_FORCE of the weapon by the integer, and round the result to the nearest integer.
 
*Cap the results by the SHOOT_MAXVEL for the weapon.
 
*Multiply the velocity by the ''unrounded'' mass of the projectile to get the momentum.
 
For DF34.11 values, iron, bronze, copper, silver, and steel bolts/arrows all have mass between 1 and 2, which will be floored to 1, meaning that they will have velocity equal to SHOOT_FORCE (so long as it is less than or equal to SHOOT_MAXVEL).  Wood, adamantine, and bone bolts/arrows, as well as all blowdarts, have mass less than 1, and will have velocity which is always equal to SHOOT_MAXVEL and does not depend on SHOOT_FORCE.
 
 
 
===Interactions Between Projectiles and Armor===
 
[[File:projectile.png|200px|thumb|right|A simplified flowchart showing how material properties are used as a projectile contacts armor.]]
 
When a projectile strikes armor, there are several possible outcomes:
 
*Conversion of edged damage to blunt damage (chain mail does this).
 
*The projectile absorbs the force of the collision, and is deflected.
 
*The armor absorbs all or part of the force of the blow.
 
*The armor is fractured and does nothing to stop the projectile.
 
For armor to be at all effective at stopping projectiles, the armor material must have SHEAR_YIELD and/or SHEAR_FRACTURE greater than or equal to the projectile material.  Otherwise, the projectile just cuts through the armor like it isn’t there.  Additionally, the IMPACT_FRACTURE of the armor must be large relative to the projectile momentum, or the armor fractures and the projectile passes through without slowing down significantly (this happens for metal bolts against any plate armor in 0.34.11).
 
 
 
====Conversion of Edged Damage to Blunt Damage====
 
If the momentum of the projectile is not too high, then chain armor can convert the edged damage normally caused by projectiles to blunt damage, resulting in chips, fractures, jams and bruises, but no tears or cuts.  Plate armor does not appear to provide this type of protection under any conditions tested so far.  It is not yet known how the momentum needed for edged damage to penetrate chain armor is calculated, but for the cases examined the momentum needed is many times larger than those observed for in-game projectiles.
 
 
 
For a blunt hit, having penetration depth means that it can push fragments of bone into other parts, such as other bone or the brain. If the hit has no fragments, it will break rigid layers (materials with very low strain at yield) and keep going as bruising blunt force, not tearing the body parts underneath. [http://www.bay12forums.com/smf/index.php?topic=127427.msg4334144#msg4334144]
 
 
 
====The Projectile Absorbs the Force of the Collision====
 
If the projectile does not cut right through the armor (armor material must have SHEAR_YIELD and/or SHEAR_FRACTURE greater than or equal to the projectile material), then it must push in a chunk of the armor.  If the armor is not strong enough to resist being pushed in (armor resisting the blow is covered in the next section), then the force to push in the armor is proportional to the mass of the chunk of armor.  If the projectile material is not strong enough to exert this force, then it is deformed and deflects.  The following algorithm determines if this type of deflection occurs:
 
*Calculate the volume of armor moved by the projectile.  Multiply armor LAYER_SIZE by projectile CONTACT_AREA, and then round down to the nearest 100.  If the result is less than 100, then instead round up to 100.
 
*Mass=armor SOLID_DENSITY times the volume from the last step
 
*If the IMPACT_YIELD of the projectile is less than mass*(800/157)/PROJECTILE_SIZE, then the projectile deforms and is reported as “deflected”.
 
In-game, this type of deflection is observed for wood bolts impacting metal armor, and explains why adamantine is observed to be the worst armor for deflecting wood bolts, as it has the lowest density. As explained below, adamantine can barely stop wood bolts using the "Armor Absorbs the Force of the Collision" mechanism, and wood bolts would easily fracture copper or steel armor were it not for the higher densities of those metals causing the projectile to absorb the force of the collision instead.
 
 
 
====The Armor Absorbs the Force of the Collision====
 
 
 
This form of deflection depends only on the momentum, but not the material, of the projectile.  The armor will provide 50% protection from projectiles if
 
momentum = (IF-IY/2)*round100(C*S)/(2400000-AU*10000-Q*30000)
 
 
 
where:
 
*IF is IMPACT_FRACTURE,
 
*IY is the IMPACT_YIELD of the armor material,
 
*C is the CONTACT_AREA of the projectile (although it is the smaller of the projectile's contact area and the body part struck's contact area),
 
*S=LAYER_SIZE of the armor item(s) covering the body part struck,
 
*AU is the target's armor user skill (0=none, 16=legendary), and
 
*Q is the armor quality (0=none, 5=masterwork).
 
*The function round100(x) is equal to 100 if x is less than 100, and 100*floor(x/100) otherwise (rounded down to the nearest 100).
 
 
 
It unclear if or how the thicknesses of multiple armor layers covering one body part stack.  This formula is approximate, and the exact values of the coefficients in the denominator may not be accurate.  The amount of protection provided drops sigmoidally from 100% to zero over a fairly narrow range.  Furthermore, negative status of the target creature (fallen over, unconscious, etc.) are known to significantly reduce armor protection provided.  These numbers will roughly predict the results for an ideal, uninjured dwarf, and worse protection should be expected in other cases.  The exact manner in which status affects impact armor protection has not yet been explored.
 
 
 
The manner in which armor offers protection is different depending on whether the bolt momentum is greater than 50000/IMPACT_STRAIN_AT_YIELD.  If momentum is less than this threshold, then armor can completely deflect projectiles, while if it is larger, armor can significantly slow projectiles so that they cause only bruises (not tears, chips, fractures, or jams).
 
 
 
This type of collision is only observed in-game for bolts with densities less than about 750 (most wood, adamantine) deflecting off adamantine armor.  In all other cases the bolt momentum is far to high to be stopped by any armor using this mechanism.
 
 
 
{{Category|Materials|*}}
 

Please note that all contributions to Dwarf Fortress Wiki are considered to be released under the GFDL & MIT (see Dwarf Fortress Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)