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
(This page needs a lot of cleanup. Edit by Aescula, forgot to log in.)
m (scale volumes up by 10 so the weight formula makes sense, as I did earlier on the 0.34/later pages)
 
(15 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{av}}
+
{{Quality|Exceptional}}{{av}}
{{Quality|Exceptional}}
 
  
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 an item property, and is measured in units '''Γ''', also known as '''urists''' - one unit urist is equivalent to one real kilogram.
  
In DF2010, weight is displayed as a fundamental figure associated with an item, along with value if you have a broker with appraisal.  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.
+
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.
  
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 />
+
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.
'''Starting with DF2010, Toady retooled the weight system so that one urist(Γ) is the same as one kilogram.'''
+
 +
==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.
 +
 
 +
: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 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.
+
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].  
<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.
+
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
 +
|
 +
|
  
 
|-
 
|-
| item_helm
+
| Cut [[gem]]s
| layer size/ 60 000
+
| 200
| The formula for helms specifically appears to be 1/ 1 010, this is thought to be a bug.
+
| 6000
 +
|
 +
|
  
 
|-
 
|-
| item_gloves
+
| [[Block]]s
| 1/ 100 000
+
| 2500
| Divisor is approximate.
+
| 6000
 +
|
 +
|
  
 
|-
 
|-
| item_pants
+
| Rough [[gem]]s
| layer size/ 5 190
+
| 2500
|  
+
| 6000
 +
|
 +
|
  
 
|-
 
|-
| item_shoes
+
| Mined [[stone]]
| layer size/ 7 500
+
| 70000
| The formula for high boots specifically appears to be 1/ 100 000, this is thought to be a bug.
+
| 6000
 +
|
 +
|
  
 
|-
 
|-
| item_shield
+
| Wood [[log]]s
| 1/ 100 000
+
| 50000
| Divisor is approximate.
+
| 6000
 +
|
 +
|
  
 
|-
 
|-
| item_ammo
+
| [[Door]]
| size/ 1 000 000
+
| 30000
 +
| 6000
 +
|
 
|
 
|
  
 
|-
 
|-
| item_weapon
+
| [[Floodgate]]
| size/ 1 000 000
+
| 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
 +
|
 +
|
 +
 +
|-
 +
| [[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
 
|}
 
|}
  
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 Γ.
 

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