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:Weight"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(why did you remove the version header? this article also has a 40d version...)
m (scale volumes up by 10 so the weight formula makes sense, as I did earlier on the 0.34/later pages)
 
(11 intermediate revisions by 3 users not shown)
Line 9: Line 9:
 
==Weight Calculation==
 
==Weight Calculation==
  
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.
+
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.
<br> W = d*C
 
  
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.
+
: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>)
 +
 
 +
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"
! Category
+
! Item Type
! Formula
+
! Volume
 +
! Bulk
 +
! Capacity
 
! Notes
 
! Notes
  
 
|-
 
|-
| item_armor
+
| [[Bar]]s
| (layer size/ material size)/<br> 1 010
+
| 2000
| The divisor may be slightly higher but is consistent with other values.
+
| 6000
 +
|
 +
|
 +
 
 +
|-
 +
| Cut [[gem]]s
 +
| 200
 +
| 6000
 +
|
 +
|
 +
 
 +
|-
 +
| [[Block]]s
 +
| 2500
 +
| 6000
 +
|
 +
|
 +
 
 +
|-
 +
| Rough [[gem]]s
 +
| 2500
 +
| 6000
 +
|
 +
|
 +
 
 +
|-
 +
| Mined [[stone]]
 +
| 70000
 +
| 6000
 +
|
 +
|
 +
 
 +
|-
 +
| Wood [[log]]s
 +
| 50000
 +
| 6000
 +
|
 +
|
 +
 
 +
|-
 +
| [[Door]]
 +
| 30000
 +
| 6000
 +
|
 +
|
 +
 
 +
|-
 +
| [[Floodgate]]
 +
| 30000
 +
| 6000
 +
|
 +
|
 +
 
 +
|-
 +
| [[Bed]]
 +
| 30000
 +
| 6000
 +
|
 +
|
 +
 
 +
|-
 +
| [[Chair]]
 +
| 30000
 +
| 6000
 +
|
 +
|
 +
 
 +
|-
 +
| [[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
 +
|
 +
|
  
 
|-
 
|-
| item_helm
+
| [[Quern]]
| layer size/ 60 000
+
| 30000
| The formula for helms specifically appears to be 1/ 1 010, this is thought to be a bug.
+
| 6000
 +
|
 +
|
  
 
|-
 
|-
| item_gloves
+
| [[Millstone]]
| 1/ 100 000
+
| 30000
| Divisor is approximate.
+
| 6000
 +
|
 +
|
  
 
|-
 
|-
| item_pants
+
| [[Splint]]
| layer size/ 5 190
+
| 2000
|  
+
| 3000
 +
|
 +
|
  
 
|-
 
|-
| item_shoes
+
| [[Crutch]]
| layer size/ 7 500
+
| 2000
| The formula for high boots specifically appears to be 1/ 100 000, this is thought to be a bug.
+
| 18000
 +
|
 +
|
  
 
|-
 
|-
| item_shield
+
| [[Traction bench]]
| 1/ 100 000
+
| 30000
| Divisor is approximate.
+
| 6000
 +
|
 +
|
  
 
|-
 
|-
| item_ammo
+
| Orthopedic [[cast]]
| size/ 1 000 000
+
| 2000
 +
| 3000
 +
|
 
|
 
|
  
 
|-
 
|-
| item_weapon
+
| [[Tool]]
| size/ 1 000 000
+
| 1000*
 +
| 3000
 +
| CAPACITY
 +
| Broken - supposed to be SIZE{{bug|4979}}
 +
 
 +
|-
 +
| [[Slab]]
 +
| 60000
 +
| 6000
 +
|
 
|
 
|
  
 +
|-
 +
| [[Egg]]
 +
| Special
 +
| Special
 +
|
 +
| Presumably the caste's EGG_SIZE
 
|}
 
|}
  
These values are up to date as of this writing {{version|0.31.03}}.
+
{{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 Γ.
 
The heaviest metal is [[Platinum]], and the lightest metal is [[Adamantine]].
 

Latest revision as of 16:24, 11 June 2022

This article is about an older version of DF.

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 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 uniform both across the whole universe and from world to world and buoyancy isn't implemented.

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

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.

Weight (in Γ) = Density (in kg/m3) * Volume (in cm3) / 1,000,000 (cm3/m3)

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.

Item Type Volume Bulk Capacity Notes
Bars 2000 6000
Cut gems 200 6000
Blocks 2500 6000
Rough gems 2500 6000
Mined stone 70000 6000
Wood logs 50000 6000
Door 30000 6000
Floodgate 30000 6000
Bed 30000 6000
Chair 30000 6000
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
Shields ? 6000 Based on UPSTEP and the race that crafted it
Helms ? 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
Seeds 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
Mechanisms 20000 6000
Trap component SIZE 6000
Drink 2000 600
Powder 2000 6000
Cheese 1000 6000
Prepared meal 1000 6000
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
Glob 2000 6000
Small rock 2000 600 As 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 SIZEBug:4979
Slab 60000 6000
Egg Special Special Presumably the caste's EGG_SIZE