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.31:Weight

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.31"). 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}}{{av}}
+
{{av}}
 +
{{Quality|Exceptional}}
  
'''Weight''' is an item property, and is measured in units '''Γ''', also known as '''urists''' - one unit urist is equivalent to one real kilogram.
+
Weight(Γ) is a strange quality.  Most of time DF can largely ignore weight as it is unimportant.  However, it is critical in determining how fast someone or something moves (due to carry weight restrictions), in damage calculations, and to some degree in temperature calculations.
  
Weight is largely used by the game to determine how fast someone or something should move, due to encumbrance effects and carry weight restrictions; to calculate damage, since object mass factors into impact momentum; and to some extent to make temperature calculations, as mass factors into heat capacity. Note that, for DF, weight and mass are currently indistinguishable because as it stands DF gravity is [http://www.bay12games.com/media/df_talk_8_transcript.html uniform both across the whole universe and from world to world] and buoyancy isn't implemented.
+
In DF2010, weight is displayed as the only fundamental figure associated with an item where value used to also be displayed.  Additionally, how weight is calculated is now more complicated than it once was, as each item category -- sometimes even individual items -- have their own formula for determining weight.
 +
 
 +
Note that, for DF, weight and mass are synonymous because in DF gravity--at least currently--is [http://www.bay12games.com/media/df_talk_8_transcript.html always the same both across the whole universe and from world to world] and buoyancy isn't currently modeled.<br />
 +
'''Starting with DF2010, Toady retooled the weight system so that one urist(Γ) is the same as one kilogram.'''
  
Weight is displayed as a quantity associated with an item. Weight calculation is not entirely straightforward, since each item category - or sometimes even individual items - have their own formula for determining weight.
 
 
 
==Weight Calculation==
 
==Weight Calculation==
  
The general form for calculating weight in DF is to take the material density (as found in the raws) multiplied by the item's volume.
+
The general form for calculating weight in DF is to take the material density 'd' as found in the raws multiplied by an item constant C.
 +
<br> W = d*C
  
:Weight (in Γ) = Density (in kg/m<sup>3</sup>) * Volume (in cm<sup>3</sup>) / 1,000,000 (cm<sup>3</sup>/m<sup>3</sup>)
+
The formula for C is [http://www.bay12games.com/dwarves/mantisbt/view.php?id=1386 almost always] the same for all items in the same raw file(such as item_helm or item_pants).  These variations are thought to be caused by bugs, though confirmation is needed.  Note that the displayed weight value is truncated and not rounded after the calculation is done, it is thought that the exact weight is maintained internally.
 
 
Internally, all custom volume/capacity numbers are rounded down to the nearest multiple of 10 - thus, if you define a weapon with [SIZE:15], it will actually behave as if you had specified [SIZE:10].
 
 
 
Items also have a "bulk" which does not depend on the material and is used to determine [[clutter]] as well as how many items can fit into a container.
 
  
 +
The following table lists all currently known formulas for finding the value of C.
 
{| {{prettytable}}
 
{| {{prettytable}}
 
|- bgcolor="#999999"
 
|- bgcolor="#999999"
! Item Type
+
! Category
! Volume
+
! Formula
! Bulk
 
! Capacity
 
 
! Notes
 
! Notes
  
 
|-
 
|-
| [[Bar]]s
+
| item_armor
| 2000
+
| (layer size/ material size)/<br> 1 010
| 6000
+
| The divisor may be slightly higher but is consistent with other values.
|
 
|
 
  
 
|-
 
|-
| Cut [[gem]]s
+
| item_helm
| 200
+
| layer size/ 60 000
| 6000
+
| The formula for helms specifically appears to be 1/ 1 010, this is thought to be a bug.
|
 
|
 
  
 
|-
 
|-
| [[Block]]s
+
| item_gloves
| 2500
+
| 1/ 100 000
| 6000
+
| Divisor is approximate.
|
 
|
 
  
 
|-
 
|-
| Rough [[gem]]s
+
| item_pants
| 2500
+
| layer size/ 5 190
| 6000
+
|  
|
 
|
 
  
 
|-
 
|-
| Mined [[stone]]
+
| item_shoes
| 70000
+
| layer size/ 7 500
| 6000
+
| The formula for high boots specifically appears to be 1/ 100 000, this is thought to be a bug.
|
 
|
 
  
 
|-
 
|-
| Wood [[log]]s
+
| item_shield
| 50000
+
| 1/ 100 000
| 6000
+
| Divisor is approximate.
|
 
|
 
  
 
|-
 
|-
| [[Door]]
+
| item_ammo
| 30000
+
| size/ 1 000 000
| 6000
 
|
 
 
|
 
|
  
 
|-
 
|-
| [[Floodgate]]
+
| item_weapon
| 30000
+
| size/ 1 000 000
| 6000
 
|
 
 
|
 
|
  
|-
+
|}
| [[Bed]]
 
| 30000
 
| 6000
 
|
 
|
 
 
 
|-
 
| [[Chair]]
 
| 30000
 
| 6000
 
|
 
|
 
  
|-
+
These values are up to date as of this writing {{version|0.31.03}}.
| [[Chain]]
 
| 5000
 
| 6000
 
|
 
|
 
 
 
|-
 
| [[Flask]]
 
| 1000
 
| 3000
 
| 1800
 
|
 
 
 
|-
 
| [[Goblet]]
 
| 1000
 
| 3000
 
| 1800
 
|
 
 
 
|-
 
| [[Instrument]]
 
| 4000
 
| 3000
 
|
 
|
 
 
 
|-
 
| [[Toy]]
 
| 1000
 
| 3000
 
|
 
|
 
 
 
|-
 
| [[Window]]
 
| 20000
 
| 6000
 
|
 
|
 
 
 
|-
 
| [[Cage]]
 
| 30000
 
| 6000
 
| 60000
 
|
 
 
 
|-
 
| [[Barrel]]
 
| 20000
 
| 6000
 
| 60000
 
|
 
 
 
|-
 
| [[Bucket]]
 
| 3000
 
| 6000
 
| 6000
 
|
 
 
 
|-
 
| [[Animal trap]]
 
| 3000
 
| 6000
 
| 60000
 
|
 
 
 
|-
 
| [[Table]]
 
| 30000
 
| 6000
 
|
 
|
 
 
 
|-
 
| [[Coffin]]
 
| 30000
 
| 6000
 
| 60000
 
|
 
 
 
|-
 
| [[Statue]]
 
| 60000
 
| 6000
 
|
 
|
 
 
 
|-
 
| [[Corpse]]
 
| Special
 
| Special
 
|
 
| Based on the size of the corpse and what it's made of
 
 
 
|-
 
| [[Weapon]]
 
| SIZE
 
| 6000
 
|
 
|
 
 
 
|-
 
| Body [[armor]]
 
| ?
 
| 9000
 
|
 
| Based on UBSTEP, LBSTEP, COVERAGE, LAYER_SIZE, and the race that crafted it
 
 
 
|-
 
| [[Shoes]]
 
| ?
 
| 1800
 
|
 
| Based on UPSTEP, COVERAGE, LAYER_SIZE, and the race that crafted it
 
 
 
|-
 
| [[Shield]]s
 
| ?
 
| 6000
 
|
 
| Based on UPSTEP and the race that crafted it
 
 
 
|-
 
| [[Helm]]s
 
| ?
 
| 3000
 
|
 
| Based on COVERAGE, LAYER_SIZE, and the race that crafted it
 
 
 
|-
 
| [[Gloves]]
 
| ?
 
| 1200
 
|
 
| Based on UPSTEP, COVERAGE, LAYER_SIZE, and the race that crafted it
 
 
 
|-
 
| [[Box]]
 
| 20000 or 1000
 
| 6000
 
| 60000
 
| Bags weigh 100, boxes/chests/coffers weigh 2000
 
 
 
|-
 
| [[Bin]]
 
| 15000
 
| 6000
 
| 60000
 
|
 
 
 
|-
 
| [[Armor stand]]
 
| 10000
 
| 6000
 
| 60000
 
|
 
 
 
|-
 
| [[Weapon rack]]
 
| 10000
 
| 6000
 
| 60000
 
|
 
 
 
|-
 
| [[Cabinet]]
 
| 30000
 
| 6000
 
| 60000
 
|
 
 
 
|-
 
| [[Figurine]]
 
| 1000
 
| 3000
 
|
 
|
 
 
 
|-
 
| [[Amulet]]
 
| 500
 
| 1200
 
|
 
|
 
 
 
|-
 
| [[Scepter]]
 
| 3000
 
| 3000
 
|
 
|
 
 
 
|-
 
| [[Ammo]]
 
| SIZE
 
| 600
 
|
 
|
 
 
 
|-
 
| [[Crown]]
 
| 1000
 
| 3000
 
|
 
|
 
 
 
|-
 
| [[Ring]]
 
| 50
 
| 600
 
|
 
|
 
 
 
|-
 
| [[Earring]]
 
| 30
 
| 600
 
|
 
|
 
 
 
|-
 
| [[Bracelet]]
 
| 200
 
| 1200
 
|
 
|
 
 
 
|-
 
| [[Large gem]]
 
| 50
 
| 1800
 
|
 
|
 
 
 
|-
 
| [[Anvil]]
 
| 10000
 
| 6000
 
|
 
|
 
 
 
|-
 
| [[Body part]]
 
| Special
 
| Special
 
|
 
| Based on the size of the body part and what it's made of
 
 
 
|-
 
| [[Remains]]
 
| 2000
 
| 1200
 
|
 
|
 
 
 
|-
 
| [[Meat]]
 
| 2000
 
| 6000
 
|
 
|
 
 
 
|-
 
| [[Fish]]
 
| 2000
 
| 6000
 
|
 
|
 
 
 
|-
 
| Unprepared [[fish]]
 
| 2000
 
| 6000
 
|
 
|
 
 
 
|-
 
| Live [[vermin]]
 
| Special
 
| Special
 
|
 
| Based on creature's adult size
 
 
 
|-
 
| Tame [[vermin]]
 
| Special
 
| Special
 
|
 
| Based on creature's adult size
 
 
 
|-
 
| [[Seed]]s
 
| 100
 
| 600
 
|
 
|
 
 
 
|-
 
| [[Plant]]
 
| 1000
 
| 6000
 
|
 
|
 
 
 
|-
 
| [[Leather]]
 
| 5000
 
| 6000
 
|
 
|
 
 
 
|-
 
| [[Leaves]]
 
| 50
 
| 3000
 
|
 
|
 
 
 
|-
 
| [[Thread]]
 
| ceil(Dimension/50)
 
| 6000
 
|
 
| 300 for freshly extracted/gathered thread
 
 
 
|-
 
| [[Cloth]]
 
| ceil(Dimension/50)
 
| 6000
 
|
 
| 200 for freshly woven cloth
 
 
 
|-
 
| [[Totem]]
 
| 5000
 
| 3000
 
|
 
|
 
 
 
|-
 
| [[Pants]]
 
| ?
 
| 1800
 
|
 
| Based on LBSTEP, COVERAGE, LAYER_SIZE, and the race that crafted it
 
 
 
|-
 
| [[Backpack]]
 
| 5000
 
| 6000
 
| 60000
 
|
 
 
 
|-
 
| [[Quiver]]
 
| 3000
 
| 6000
 
| 12000
 
|
 
 
 
|-
 
| [[Catapult parts]]
 
| 20000
 
| 12000
 
|
 
|
 
 
 
|-
 
| [[Ballista parts]]
 
| 20000
 
| 12000
 
|
 
|
 
 
 
|-
 
| [[Siege ammo]]
 
| 30000
 
| 30000
 
|
 
|
 
 
 
|-
 
| [[Ballista arrow head]]
 
| 10000
 
| 6000
 
|
 
|
 
 
 
|-
 
| [[Mechanism]]s
 
| 20000
 
| 6000
 
|
 
|
 
 
 
|-
 
| [[Trap component]]
 
| SIZE
 
| 6000
 
|
 
|
 
 
 
|-
 
| [[Alcohol|Drink]]
 
| 2000
 
| 600
 
|
 
|
 
 
 
|-
 
| [[Mill|Powder]]
 
| 2000
 
| 6000
 
|
 
|
 
 
 
|-
 
| [[Cheese]]
 
| 1000
 
| 6000
 
|
 
|
 
 
 
|-
 
| [[Prepared meal]]
 
| 1000
 
| 6000
 
|
 
|
 
 
 
|-
 
| [[Extract|Misc. liquid]]
 
| 2000
 
| 600
 
|
 
|
 
 
 
|-
 
| [[Coin]]
 
| 10/16
 
| 35
 
|
 
| Stacks smaller than 16 are weightless and can be placed inside any item regardless of its available capacity. {{bug|6218}}
 
 
 
|-
 
| [[Fat|Glob]]
 
| 2000
 
| 6000
 
|
 
|
 
 
 
|-
 
| Small [[rock]]
 
| 2000
 
| 600
 
|
 
| As [[Thrower|thrown]] by adventurers
 
 
 
|-
 
| [[Pipe section]]
 
| 30000
 
| 6000
 
|
 
|
 
 
 
|-
 
| [[Hatch cover]]
 
| 10000
 
| 6000
 
|
 
|
 
 
 
|-
 
| [[Grate]]
 
| 10000
 
| 6000
 
|
 
|
 
 
 
|-
 
| [[Quern]]
 
| 30000
 
| 6000
 
|
 
|
 
 
 
|-
 
| [[Millstone]]
 
| 30000
 
| 6000
 
|
 
|
 
 
 
|-
 
| [[Splint]]
 
| 2000
 
| 3000
 
|
 
|
 
 
 
|-
 
| [[Crutch]]
 
| 2000
 
| 18000
 
|
 
|
 
 
 
|-
 
| [[Traction bench]]
 
| 30000
 
| 6000
 
|
 
|
 
 
 
|-
 
| Orthopedic [[cast]]
 
| 2000
 
| 3000
 
|
 
|
 
 
 
|-
 
| [[Tool]]
 
| 1000*
 
| 3000
 
| CAPACITY
 
| Broken - supposed to be SIZE{{bug|4979}}
 
 
 
|-
 
| [[Slab]]
 
| 60000
 
| 6000
 
|
 
|
 
 
 
|-
 
| [[Egg]]
 
| Special
 
| Special
 
|
 
| Presumably the caste's EGG_SIZE
 
|}
 
  
{{Category|Items}}
+
Other examples: stack of cheap stones, or stone statue, 161-167 Γ. Steel chainmail 19 Γ. Steel or bronze bars, 15-16 Γ. Iron flask, 12 Γ.

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)