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 Temperature
Jump to navigation
Jump to search
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
If you are creating a redirect to the current version's page, do not use any namespace. For example: use #REDIRECT [[Cat]], not #REDIRECT [[Main:Cat]] or #REDIRECT [[cv:Cat]]. See DF:Versions for more information.
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|21:56, 12 July 2013 (UTC)}} | |
− | {{Quality| | ||
{{av}} | {{av}} | ||
− | |||
+ | ''For temperature as it relates to choosing an embarkation site, see [[Climate]].'' | ||
{{buggy}} | {{buggy}} | ||
− | |||
==Temperature scale== | ==Temperature scale== | ||
− | Temperatures in ''Dwarf Fortress'' are measured in the game's own, unnamed temperature scale, since termed " | + | Temperatures in ''Dwarf Fortress'' are measured in the game's own, unnamed temperature scale, since termed "Degrees [[Main:Urist|Urist]]" by the community. Temperatures in ''Dwarf Fortress'' are stored as sixteen-bit unsigned integers, which translates into a minimum value of 0 °U and a technical maximum of 65535 °U (2<sup>16</sup>-1), although this is internally limited to 60000 °U, as 60001 °U is used for temperatures which have been set to {{tt|NONE}}. Floating point values are not considered, and when they appear any decimals are either sheared off or rounded away by the game. Urists are scaled logically against the Fahrenheit scale, so conversions are simple, if non-intuitive: |
− | :{{tt|[URIST]}} = {{tt|[CELSIUS]}} * 9/5 + 10000 | + | :{{tt|[URIST]}} = {{tt|[FAHRENHEIT]}} + 9968 |
+ | :::: {{tt|[CELSIUS]}} * 9/5 + 10000 | ||
:::: {{tt|[KELVIN]}} * 9/5 + 9508.33 | :::: {{tt|[KELVIN]}} * 9/5 + 9508.33 | ||
− | |||
:::: {{tt|[RANKINE]}} + 9508.33 | :::: {{tt|[RANKINE]}} + 9508.33 | ||
− | |||
− | |||
Some reference numbers: | Some reference numbers: | ||
Line 22: | Line 18: | ||
! Significance | ! Significance | ||
! DF Scale | ! DF Scale | ||
− | ! | + | ! Fahrenheit (°F) |
! Celsius (°C) | ! Celsius (°C) | ||
! Kelvin | ! Kelvin | ||
− | + | ! Rankine (°R) | |
− | ! Rankine ( | ||
|- | |- | ||
| [[#Boiling point|Boiling point of water]] | | [[#Boiling point|Boiling point of water]] | ||
| 10180 | | 10180 | ||
− | | | + | | 212°F |
| 100°C | | 100°C | ||
| 373.15K | | 373.15K | ||
− | + | | 671.67°R | |
− | | 671. | ||
|- | |- | ||
| [[Creature token#H|Human body temperature]] | | [[Creature token#H|Human body temperature]] | ||
| 10067* | | 10067* | ||
− | | | + | | 98.6°F |
| 37°C | | 37°C | ||
| 310.15K | | 310.15K | ||
− | + | | 558.27°R | |
− | | 558. | ||
|- | |- | ||
| [[Water#Freezing point|Freezing point of water]] | | [[Water#Freezing point|Freezing point of water]] | ||
| 10000 | | 10000 | ||
− | | | + | | 32°F |
| 0°C | | 0°C | ||
| 273.15K | | 273.15K | ||
− | + | | 491.67°R | |
− | | 491. | ||
|- | |- | ||
| [[wikipedia:Ethanol (data page)|Freezing point of ≈89% ABV]] | | [[wikipedia:Ethanol (data page)|Freezing point of ≈89% ABV]] | ||
| 9850 | | 9850 | ||
− | | | + | | −118°F |
| −83.<span style="text-decoration:overline">3</span>°C | | −83.<span style="text-decoration:overline">3</span>°C | ||
| 189.81<span style="text-decoration:overline">6</span>K | | 189.81<span style="text-decoration:overline">6</span>K | ||
− | + | | 341.67°R | |
− | | 341. | ||
|- | |- | ||
| [[wikipedia:Absolute zero|Absolute zero]] | | [[wikipedia:Absolute zero|Absolute zero]] | ||
| 9508* | | 9508* | ||
− | | | + | | −459.67°F |
| −273.15°C | | −273.15°C | ||
| 0K | | 0K | ||
− | | | + | | 0°R |
− | |||
|- | |- | ||
| Zero degrees Urist | | Zero degrees Urist | ||
| 0 | | 0 | ||
− | | | + | | −9968°F |
| −5555.<span style="text-decoration:overline">5</span>°C | | −5555.<span style="text-decoration:overline">5</span>°C | ||
| −5282.40<span style="text-decoration:overline">5</span>K | | −5282.40<span style="text-decoration:overline">5</span>K | ||
− | + | | −9508.33°R | |
− | | −9508. | ||
|} | |} | ||
Line 89: | Line 78: | ||
! Temperature | ! Temperature | ||
|- | |- | ||
− | | | + | | Alcohol freezes |
− | | {{ct| | + | | {{ct|09850}} |
|- | |- | ||
− | | '''< | + | | '''<span style="border-bottom: 1px #0000CC dotted;cursor:help;" title="Below this temperature fat, present on all organic creatures, will start to take cold damage, eventually killing them.">Lowest survivable temperature</span>''' |
− | | '''{{ct| | + | | '''{{ct|09900}}''' |
|- | |- | ||
| Outside, freezing climate (varies) | | Outside, freezing climate (varies) | ||
− | | {{ct| | + | | {{ct|09960}} |
|- | |- | ||
| Underground, glacier ice | | Underground, glacier ice | ||
− | | {{ct| | + | | {{ct|09990}} |
|- | |- | ||
| '''Water freezes''' | | '''Water freezes''' | ||
| '''{{ct|10000}}''' | | '''{{ct|10000}}''' | ||
|- | |- | ||
− | | < | + | | <span style="border-bottom: 1px #0000CC dotted;cursor:help;" title="Nether-cap temperatures are fixed to 10000 degrees Urist, regardless of the surrounding environment.">Nether-cap</span> |
| {{ct|10000}} | | {{ct|10000}} | ||
|- | |- | ||
Line 116: | Line 105: | ||
| {{ct|10075}} | | {{ct|10075}} | ||
|- | |- | ||
− | | '''< | + | | '''<span style="border-bottom: 1px #0000CC dotted;cursor:help;" title="Above this temperature fat, present on all all organic creatures, will start to melt (turning into grease), eventually killing them.">Highest survivable temperature</span>''' |
| '''{{ct|10078}}''' | | '''{{ct|10078}}''' | ||
|- | |- | ||
Line 149: | Line 138: | ||
| {{ct|14000}} | | {{ct|14000}} | ||
|- | |- | ||
− | | < | + | | <span style="border-bottom: 1px #0000CC dotted;cursor:help;" title="Yes, dragonfire is roughly four times hotter than the surface of the sun.">[[Dragonfire]]</span> |
| {{ct|50000}} | | {{ct|50000}} | ||
|- | |- | ||
Line 163: | Line 152: | ||
* {{tt|[COLDDAM_POINT:#]}} — This is the temperature below which the material will begin to take frost [[wear|damage]]. | * {{tt|[COLDDAM_POINT:#]}} — This is the temperature below which the material will begin to take frost [[wear|damage]]. | ||
* {{tt|[SPEC_HEAT:#]}} — This determines how long it takes the material to heat up or cool down. A material with a high specific heat capacity will hold more heat and affect its surroundings more before cooling down or heating up to equilibrium. The input for this token is not temperature, but rather the [[wikipedia:Specific heat capacity|specific heat capacity]] of the material. | * {{tt|[SPEC_HEAT:#]}} — This determines how long it takes the material to heat up or cool down. A material with a high specific heat capacity will hold more heat and affect its surroundings more before cooling down or heating up to equilibrium. The input for this token is not temperature, but rather the [[wikipedia:Specific heat capacity|specific heat capacity]] of the material. | ||
− | * {{tt|[MAT_FIXED_TEMP | + | * {{tt|[MAT_FIXED_TEMP]}} — A material's temperature can be forced to always be a certain value via the MAT_FIXED_TEMP [[material definition token]]. The only standard material which uses this is [[nether-cap]] wood, whose temperature is always at the melting point of water. If a material's temperature is fixed to between its cold damage point and its heat damage point, then items made from that material will never suffer cold/heat damage. This makes nether-caps [[fire-safe]] and [[magma-safe]] despite being a type of [[wood]].<br/>Due to the way fixed temperature is handled, giving a material a fixed temperature will not cause its actual temperature to change accordingly — instead, its temperature will simply be permanently locked at whatever it was previously. Removing a material's fixed temperature, however, will cause all items made of it to heat or cool until reaching equilibrium with their surroundings. The fixed temperature of a [[container]] does affect its contents, but you can't freeze [[water]] by putting it into a [[bucket]] made from nether-cap because water will not freeze until it cools ''below'' {{ct|10000}}. The fixed temperature of an inorganic material has no effect on unmined walls made from that material, though boulders '''will''' take on that temperature as they are produced via mining. |
− | |||
− | |||
− | |||
− | |||
==Temperature transfer== | ==Temperature transfer== | ||
− | Temperature transfer in ''Dwarf Fortress'' is fairly simple - | + | Temperature transfer in ''Dwarf Fortress'' is fairly simple - most temperature values have a whole part (in "degrees Urist") and a fraction part (which ranges from 0 to the material's SPEC_HEAT minus 1). Once per tick, the game calculates the relevant temperature difference (e.g. between the item itself and the tile in which it is located) and adds that to the fraction part, then adjusts the whole part until the fraction part is within range. For example, a piece of Lignite (which has SPEC_HEAT 409) at temperature 10015.0 (room temperature underground) exposed to Magma (temperature 12000) will heat up by 1985 fraction units, which will increase its temperature to 10019.349. In order to reach its ignition point of 11440, it would need to be in the magma for a total of 517 ticks, over 5 seconds at 100 fps. |
==Bugs== | ==Bugs== | ||
* Temperature calculations are a known cause of lag. If [[maximizing framerate]] is a concern, you can disable temperature calculations through an option in [[D init.txt]]. With temperature calculations disabled, effects such as water freezing, melting, or evaporating, or creatures and items taking temperature-related damage will not occur. | * Temperature calculations are a known cause of lag. If [[maximizing framerate]] is a concern, you can disable temperature calculations through an option in [[D init.txt]]. With temperature calculations disabled, effects such as water freezing, melting, or evaporating, or creatures and items taking temperature-related damage will not occur. | ||
− | * When temperature calculations are disabled, dwarves will refuse to set foot in a cast [[obsidian]] tile (or any other tiles previously occupied by [[magma]]).{{bug|8391 | + | * When temperature calculations are disabled, dwarves will refuse to set foot in a cast [[obsidian]] tile (or any other tiles previously occupied by [[magma]]).{{bug|8391}} |