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.34:Magma"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(→‎Volcanoes: Improved diagram: with color!)
(No evidence of this happening on the forums, let alone in 0.34 - Undo revision 231047 by 71.121.161.138 (talk))
 
(33 intermediate revisions by 19 users not shown)
Line 1: Line 1:
 
{{av}}{{Quality|Exceptional|21:13, 6 July 2010 (UTC)}}
 
{{av}}{{Quality|Exceptional|21:13, 6 July 2010 (UTC)}}
'''Magma''' is a red-hot [[flow|fluid]] that wells up from deep within the earth (but not so deep that it cannot be found by dwarves). Magma that is above the ground is called '''Lava'''; the substance itself remains the same. It can often result in [[Fun]].
+
'''Magma''' is red-hot [[fluid|molten rock]] that wells up from deep within the earth (but not so deep that it cannot be found by dwarves), entering the map either by the edges or by the area beneath a magma pool. Magma that emerges aboveground is called '''Lava'''; however the substance itself remains the same. Magma is very [[Fun]].
  
Magma serves as an energy source, powering [[magma smelter]]s, [[magma forge]]s, [[magma glass furnace]]s, and [[magma kiln]]s.  Magma is ''extremely'' hot which can lead to even more [[Fun]]. Workers that dig into a magma reservoir are not instantly killed as the magma touches them, but they are set on fire, which will kill them very quickly. For this reason, taking steps to ensure there is adequate water available to extinguish flaming dwarves running in random directions is advised before digging into any magma pools from the side. Channeling a single square wide pit across the planned magma pipe one tile away from the wall to breach and filling it with water using the [[Activity zone#Pit/Pond|pond zone]] tool is recommended, so the panicking dwarves have no choice but to run through the water, and the water itself turns into an obsidian wall as soon as the magma flows into it.
+
Magma serves as a heat source, replacing [[fuel]] in [[magma smelter]]s, [[magma forge]]s, [[magma glass furnace]]s, and [[magma kiln]]s.  Magma is ''extremely'' hot which can lead to even more [[Fun]]. Materials that can withstand the temperature of magma are called '''[[magma-safe]]''', and the list is rather extensive.  
  
The list of materials that are '''[[magma-safe]]''' is extensive. Magma never cools, but can [[evaporation|evaporate]] if left at a depth of 1/7 for long enough. When magma is mixed with water it forms [[obsidian]]. Note that magma located above [[semi-molten rock]] will be listed as a Magma Flow and cannot be cooled into obsidian.
+
Magma never cools, but can [[evaporation|evaporate]] if left at a depth of 1/7 for long enough. When magma is mixed with water it forms [[obsidian]] (and [[steam]]). Note that magma located above [[semi-molten rock]] will be listed as a Magma Flow; magma in magma flow tiles will disappear when mixed with water (instead of cooling into obsidian).
  
 
Without [[screw pump]]s to impart [[pressure]], magma flows rather slowly (though no more slowly than unpressurized water).  A pipe to bring magma across the full map can take as much as a year to fill.  This, combined with the fact that it will evaporate, can make filling a reservoir difficult and tedious.  As a rule of thumb, the area coming out of a 1-wide-pipe shouldn't be more than three squares wide and 20 squares long, or else it will evaporate as fast as you fill it.
 
Without [[screw pump]]s to impart [[pressure]], magma flows rather slowly (though no more slowly than unpressurized water).  A pipe to bring magma across the full map can take as much as a year to fill.  This, combined with the fact that it will evaporate, can make filling a reservoir difficult and tedious.  As a rule of thumb, the area coming out of a 1-wide-pipe shouldn't be more than three squares wide and 20 squares long, or else it will evaporate as fast as you fill it.
  
== Bringing Magma Up ==
+
==Magma sources==
 +
 
 +
Magma occurs in several different geological formations:
 +
===[[Magma pool]]s===
 +
Although the name suggests them as pools, they are more like pipes. They can be found underground, however they rarely reach the upper z-levels (40+). Most end a few z-levels above the magma sea, though some may span more than 100 z-levels.
 +
Magma pools seem to be always connected to a magma sea, and the sea and pipe can occasionally reach up to the same level, making them hard to separate. However, magma pools can be identified by the obsidian walls which surround them.
 +
Magma pools will slowly refill themselves, giving the player an infinite source of magma. The entire embark tile containing the pool will produce sporadic bursts of magma until the magma within it is at its natural level (i.e. the magma level at embark) or until it is halted by a bridge, floor, or bottom of a wall.
 +
 
 +
===[[Volcano]]es===
 +
Volcanoes are magma pools that extend all the way to the surface. Volcanoes are an endless source of magma as they will always refill themselves. They never erupt, unlike their real-life counterparts. Volcanoes are geographical features visible on the [[location]] screen, making them much easier to find when choosing a site for your fortress.
 +
 
 +
===[[Magma sea]]===
 +
The magma sea is a large body of magma deep under the earth. Nearly all maps will include a magma sea at the lowest z-levels, though its inconvenient placement may inspire your dwarves to [[#Bringing Magma Up|bring the magma up]] to the fortress proper.
  
Magma can be brought to the surface by three different methods:[[pump|pump stack]]s, magma pistons, and minecarts. Pump stacks are conceptually the simplest, but require an enormous amount of in-game time to make. Magma pistons tend to be faster to make, but require more time to understand how to build them. Minecarts are a simple solution, but require more management than pump stacks because they can overfill a reservoir.
+
== Finding magma ==
  
=== Pump stacks ===
+
Nearly all maps will have magma available at the lowest z-levels, but it can be advantageous to select a site with a more easily accessible source, particularly when starting out.
Pumping magma up from the magma sea via a conventional [[pump#Example layouts#pump stack|pump stack]] is a lot of work, requiring dozens of pumps and significant amounts of power. Making all of the pumps [[magma safe]] also requires a lot of precious materials like steel or glass.
 
  
=== Magma pistons ===
+
Volcanoes are visible on the "local" screen in the starting location chooser. It is represented as a red ˜ mark (a double tilde) - essentially it looks like red water.  Note that red ˜ marks in the "region" screen mean something different entirely (e.g. red sand).  
[[Magma piston]]s are another way to move magma near the surface. Magma pistons require less time and fewer precious materials to construct than pump stacks. However, magma pistons are a bit more complicated than pump stacks, so it takes more time to understand how to operate and build them.
 
  
=== Minecarts ===
+
After you have chosen to embark in a place that has a volcano, and once your dwarves have arrived at their target destination, you should see a large red pool of lava on your map. If you don't, you should expect your volcano to be somewhere underground. You then have to use [[exploratory mining]] to find it. If you can find a large patch of obsidian on the surface that is devoid of boulders, chances are there is a magma vent below, so that would be a good place to start your mining.
[[Minecart]]s submerged in 7/7 magma will fill with magma. Minecarts full of magma can be tipped at track stop, which will pour the magma in a specified direction from the stop. Mine cart tracks can be built from the magma sea to the surface. Minecarts used for this must be magma safe. It may also be necessary to build rollers in magma to pull the minecarts out, which would also need to be magma safe. A minecart track can be operated by dwarves or fully automatic, using powered rollers. Depending on the placement of the track stop, dangerous overflow can be prevented by making the track stop of a material that will melt/burn once the reservoir begins to overflow.
 
  
==Magma pools==
+
Much harder than simply finding a volcano is finding a volcano that is also near suitable terrain for building. Depending on your requirements - you may be looking for a source of running [[water]], or a [[mountain]] for minerals, or a healthy [[tree]] population, a layer of [[flux]] for [[steel]] production or even all four - suitable building sites can be extremely scarce.
{{main|Magma pool}}
 
Although the name suggests them as pools, they are actually pipes (Unknown why Toady changed the name). They can be found underground, however they rarely reach the upper z-levels (40+). Most end just a few z-levels above the magma sea, though some may span more than 100 z-levels.
 
Magma pools seem to be always connected to a magma sea, and the sea and pipe can occasionally reach up to the same level, making them hard to separate. However, magma pools can be identified by the obsidian walls which surround them.
 
Magma pools will slowly refill themselves, giving the player an infinite source of magma.
 
  
==Volcanoes==
+
==Working with magma==
[[Volcano]]es are magma pools that extend all the way to the surface. Volcanoes are an endless source of magma as they will always refill themselves. They never erupt, unlike their real-life namesake.
 
  
Magma in volcanoes does not exert [[pressure]] unless you pump magma into it. So it is not very hard to design a magma-based industry zone or a defense system around volcanoes. But digging the last piece of the channel can be a little dangerous. Several (nearly) safe methods are:
+
Although magma is a liquid, it does not move via [[pressure]] unless it has been pumped. This reduced rate of flow can allow miners to survive digging into a magma reservoir, ''if'' they are lucky enoughThere are ways to minimize this risk however:
  
 
'''Digging From Above:'''
 
'''Digging From Above:'''
If you can find a suitable position, at least in the top of the volcano you can, standing on one level above and dig a channel is the most safe and easy way.
+
If you can find a suitable position above the magma, your miner can dig a [[channel]] while remaining above the level of the magma. Be warned, however, that your dwarves might take the ramp down into the magma channel as a shortcut; preemptively designating the channel for restricted [[traffic]] is recommended.
  
 
'''Diagonal Digging:'''
 
'''Diagonal Digging:'''
Magma moves slower in diagonal than straight. So diagonal digging gives you more time to flee away. But also, slower flow means you must keep in mind the evaporation. You should dig a smaller channel, wait for it to fill up, and extends the channel by Digging From Above.
+
Magma moves more slowly diagonally than orthogonally, giving the miner more time to escape. However, slower flow means you must keep in mind the evaporation. You should dig a smaller channel, wait for it to fill up, and extends the channel by Digging From Above. Workers that dig into a magma reservoir are not instantly killed as the magma touches them, but they are set on fire, which will kill them very quickly. For this reason, taking steps to ensure there is adequate water available to extinguish flaming dwarves running in random directions is advised before digging into any magma pools from the side. Channeling a single square wide pit across the planned magma pipe one tile away from the wall to breach and filling it with 2/7 water using the [[Activity zone#Pit/Pond|pond zone]] tool is recommended, so the panicking dwarves have no choice but to run through the water, and the water itself turns into an obsidian wall as soon as the magma flows into it.
  
 
'''Busy To Leave:'''
 
'''Busy To Leave:'''
 
[http://www.bay12forums.com/smf/index.php?topic=111883.0]
 
[http://www.bay12forums.com/smf/index.php?topic=111883.0]
"I find it's pretty simple to do (though I haven't tried this yet in the latest version or two) if you know what you are doing. Simply mine up to the corner of a lava tube and then smooth the last tile. Dig a staircase within a few tiles of the place where you will be breaching that leads up and back into your fortress, this will allow your dwarf to get out before the magma gets him. Now designate the smoothed corner to be carved into a fortification. Now immediately when the dwarf begins to carve the fortification, (and this is the most important part!), designate a bunch of other tiles to be smoothed/carved. It's not important that your dwarves actually smooth, carve, or engrave those tiles, what is important is that your dwarf immediately takes another smooth/carve/engrave task elsewhere in the fortress when they finish the current one. If they do not then they will pause for the briefest of instants as they pick a new task, resulting in their death. If they have the job though, they will instantly turn and head up the staircase, stopping the magma from catching and killing them."
+
Dwarves who dig into magma often die not because they are unable to flee but because they choose not to. By ensuring a dwarf has another task waiting (ideally far away) they will immediately move away from the ensuing magma flow.
 +
 
 +
Simply mine up to the corner of a lava tube and then smooth the last tile. Dig a staircase within a few tiles of the place where you will be breaching that leads up and back into your fortress, this will allow your dwarf to get out before the magma gets him. Now designate the smoothed corner to be carved into a fortification. Now immediately when the dwarf begins to carve the fortification, (and this is the most important part!), designate a bunch of other tiles to be smoothed/carved. It's not important that your dwarves actually smooth, carve, or engrave those tiles, what is important is that your dwarf immediately takes another smooth/carve/engrave task elsewhere in the fortress when they finish the current one. If they do not then they will pause for the briefest of instants as they pick a new task, resulting in their death. If they have the job though, they will instantly turn and head up the staircase, stopping the magma from catching and killing them."
  
'''Exploit From Bellow:'''
+
'''Exploit From Below:'''
 
[http://www.bay12forums.com/smf/index.php?topic=110724.0]
 
[http://www.bay12forums.com/smf/index.php?topic=110724.0]
"Here's the basic premise:  Miners are able to mine out tiles diagonally above them '''even if there is a bridge over their heads'''.  First you dig out your magma tunnel to feed magma to wherever in your fort you need it and dig it right up against the volcano pipe.  Then you channel a trench against the pipe that can be the width of the tunnel if you wish.  Build a magma-safe bridge over the trench, making sure to cover it completely, and then seal off access to the magma tunnel.  Dig a new separate path to access the now bridged-over trench.  Finally, designate the volcano pipe wall '''on the Z level of the magma tunnel''' for mining.  Your dwarves will stand in the trench beneath the bridge but will somehow still mine out the squares diagonally above them, causing the magma to flow safely onto the bridge leaving your dwarves unscathed."
+
Miners are able to mine out tiles diagonally above them '''even if there is a bridge over their heads'''.  First you dig out your magma tunnel to feed magma to wherever in your fort you need it and dig it right up against the volcano pipe.  Then you channel a trench against the pipe that can be the width of the tunnel if you wish.  Build a magma-safe bridge over the trench, making sure to cover it completely, and then seal off access to the magma tunnel.  Dig a new separate path to access the now bridged-over trench.  Finally, designate the magma wall '''on the Z level of the magma tunnel''' for mining.  Your dwarves will stand in the trench beneath the bridge but will somehow still mine out the squares diagonally above them, causing the magma to flow safely onto the bridge leaving your dwarves unscathed."
 +
 
 +
Example (use {{k|<}}{{k|>}} to navigate):
 +
<diagram>
 +
<frame type="level" level="0">
 +
Z=0     
 +
[%205][%205][%205][%205][%205]╗[#F00]≈≈≈[#]
 +
....[#080]╥[#000][@880][%186][@][#F00]≈≈≈[#]
 +
....[#080][%186][#000][@880][%186][@][#F00]≈≈≈[#]
 +
....[#080]╨[#000][@880][%186][@][#F00]≈≈≈[#]
 +
[%205][%205][%205][%203][%205][%185][#F00]≈≈≈[#]
 +
  [%186]X[%186][#F00]≈≈≈[#]
 +
  [%200][%205][%188][#F00]≈≈≈[#]
 +
</frame>
 +
<frame type=level level=1>
 +
Z=1
 +
      [#F00]≈≈≈[#]
 +
      [#F00]≈≈≈[#]
 +
      [#F00]≈≈≈[#]
 +
      [#F00]≈≈≈[#]
 +
[%205][%205][%205][%205][%205][%187][#F00]≈≈≈[#]
 +
....X[%186][#F00]≈≈≈[#]
 +
[%205][%205][%205][%205][%205][%188][#F00]≈≈≈[#]
 +
</frame>
 +
<frame type="level" level="-1">
 +
Z=-1   
 +
  [%201][%205][%187][#F00]≈≈≈[#]
 +
  ║▲║[#F00]≈≈≈[#]
 +
  ║▲║[#F00]≈≈≈[#]
 +
  ║▲║[#F00]≈≈≈[#]
 +
  ║.║[#F00]≈≈≈[#]
 +
  ║X║[#F00]≈≈≈[#]
 +
  [%200][%205][%188][#F00]≈≈≈[#]
 +
</frame>
 +
</diagram>
 +
 
 +
Make sure the top z-level is sealed off from miners and '''[[dig]]''' ({{k|d}}-{{k|d}}) the highlighted tiles on the upper z-level.
  
Example:
+
== Bringing Magma Up ==
  
{{Diagram|spaces=yes|
+
Magma can be brought to the surface by three different methods: [[pump|pump stack]]s, magma pistons, and minecarts. Pump stacks are conceptually the simplest, but require an enormous amount of in-game time to make. Magma pistons tend to be faster to make, but require more time to understand how to build them. Minecarts are a simple solution, but require more management than pump stacks because they can overfill a reservoir.
Z 0     
 
═════╗[#F00]≈[#F00]≈[#F00]≈
 
....[#080]╥[#000][#880]║[#F00]≈[#F00]≈[#F00]
 
....[#080]║[#000][#880]║[#F00]≈[#F00]≈[#F00]≈
 
....[#080]╨[#000][#880]║[#F00]≈[#F00]≈[#F00]≈
 
═════╝[#F00]≈[#F00]≈[#F00]≈
 
  
Z -1   
+
=== Pump stacks ===
  ║.║[#F00][#F00][#F00]
+
Pumping magma up from the [[magma sea]] via a conventional [[pump#Example layouts#pump stack|pump stack]] is a lot of work, requiring dozens of pumps and significant amounts of power. Making all of the pumps [[magma safe]] also requires a lot of precious materials like iron, or a functioning glass industry.
  ║▲║[#F00]≈[#F00]≈[#F00]
+
 
  ║▲║[#F00][#F00][#F00]
+
=== Magma pistons ===
  ║▲║[#F00]≈[#F00]≈[#F00]
+
[[Magma piston]]s are another way to move magma near the surface. Magma pistons require less time and fewer precious materials to construct than pump stacks. However, magma pistons are a bit more complicated than pump stacks, so it takes more time to understand how to operate and build them.
  ║.[#F00][#F00]≈[#F00]≈
+
 
 +
=== Minecarts ===
 +
[[Minecart]]s submerged in 7/7 magma (or possibly less, but 2/7 is not enough) will fill with magma. Each minecart holds 2/7 worth of magma, which is subtracted from the amount of magma in the tile. The minecart is then shown as containing magma [833]. Minecarts used for this must be [[magma-safe]].
 +
 
 +
Minecarts full of magma can be tipped at a track stop, which will pour the magma in a specified direction from the stop. Therefore, the challenge is to get the minecart full of magma to the track stop. There are several ways to accomplish this.
 +
 
 +
The first task is to separate the minecart from the tile of magma. The obvious way is to build [[roller]]s in magma to pull the minecarts out; such rollers would also need to be magma-safe. Another way would be to drain the magma.
 +
 
 +
The second task is to move the liberated minecart to the track stop. Tracks can be built from the magma sea to the surface. A minecart track can be operated by dwarves or fully automatic, using powered rollers. Depending on the placement of the track stop, dangerous overflow can be prevented by making the track stop of a material that will melt/burn once the reservoir begins to overflow.
 +
 
 +
[[Minecart#Impulse ramps|Impulse ramps]] can be used to get magma-filled carts to wherever they need to go without having to provide power to an extensive system of rollers, and will fully automate bringing magma to the surface. Since such systems require comparatively little designation and magma-safe materials, work can be begun much earlier than some other methods of bringing magma to the surface.
 +
 
 +
==== Design 1 ====
 +
In [http://www.bay12forums.com/smf/index.php?topic=125679.msg4217863#msg4217863 one design] posted to the forums by gchristopher, a pump can provide power to the roller, making the ramp eligible for building the roller, and keeping the trench at 7 magma so the carts fill instantly.
 +
 
 +
{{diagram|spaces=yes|\
 +
▒▒▒
 +
▒#▒    # {{=}} floor grate
 +
▒%▒    % {{=}} south facing pump
 +
▒%▒▒
 +
▒▲▲▒  Left ramp ▲ has a left-pushing roller
 +
▒▒▒▒  Right ramp ▲ has a retracting bridge
 
}}
 
}}
Make sure the top z-level is sealed off from miners and '''[[dig]]''' ({{k|d}}-{{k|d}}) the highlighted tiles on the upper z-level.
+
 
 +
If you drop minecarts in directly from at least 2 z-levels above onto the right ramp, this setup has the magical property that it can handle an arbitrary number of minecarts, and dispense them at a constant controlled rate. Carts are pushed up the left ramp by the roller.
 +
 
 +
If you extend the right bridge, that tile ceases to be a ramp. Exactly one minecart will fall onto the tile and stay there, and all other minecarts dropped from above will form a quantum pile 1 z-level up.
 +
 
 +
The last time I [gchristopher] built one, I timed the cart dispensing rate at 1 per 8 ticks. This is slow enough that carts can be brought to the surface using an impulse ramp spiral, but fast enough that you can still quickly cover a large area with magma.
 +
 
 +
The same design works with water, for giving you a lot of flexibility creating tall waterfalls without pump stacks, quickly and cheaply.
 +
 
 +
==== Design 2 ====
 +
Rafal99 posted [http://www.bay12forums.com/smf/index.php?topic=109460.msg3374816#msg3374816 another design] using dwarf-powered [[wheelbarrow]]s to transport the magma-filled minecarts from one minecart stockpile to another.
 +
 
 +
<pre>
 +
▒ddddd=====S==<<Zccccc      Near the surface (top view)
 +
          U
 +
 
 +
▒bbbbb==      ==<<Xaaaaa    Near the magma (side view)
 +
        \7777/
 +
 
 +
\7777/  - Magma reservoir, with tracks in it and rollers to bring minecart up the ramp
 +
U        - Here we want magma
 +
aabbccdd - Stockpiles accepting minecarts
 +
===<<    - Track and rollers
 +
S        - Track stop, set to lowest friction (so it doesn't stop the minecart), set to dump the contents into the U
 +
XZ      - Track stops set to dump their contents to the left
 +
▒        - Wall to stop minecarts
 +
</pre>
 +
 
 +
# Empty minecarts are put into stockpile aaaaa.
 +
# There is a hauling route with one stop on X, with assigned vehicle, set to take furniture->minecarts from stockpile aaaaa.
 +
# Empty minecarts are put into the minecart on track stop X, the track stop dumps them to the left, placing them on the rollers.
 +
# Rollers move the empty minecarts into the magma reservoir, they get filled with magma, then the roller on ramp moves them up. They follow the track, then go out of it and stop at the wall; effectively the minecart with magma is being placed in stockpile bbbbb.
 +
# Stockpile ccccc is set to take from stockpile bbbbb and has assigned 3 wheelbarrows. Dwarves safely transport the minecarts with magma inside wheelbarrows up to the surface into stockpile ccccc.
 +
# There is a hauling route with one stop on Z, with assigned vehicle, set to take furniture->minecarts from stockpile ccccc.
 +
# Magma minecarts are put into the minecart on track stop Z, and the track stop dumps them to the left, placing them on the rollers. (Same as in 3.)
 +
# Rollers move the magma minecarts along the track. They pass through the track stop S and dump the magma in the destination point U, then they follow the track, go out of it and stop at the wall; effectively the emptied minecart is being placed in stockpile ddddd.
 +
# Stockpile aaaaa is set to take from stockpile ddddd. Dwarves haul the empty minecarts back underground near the magma into stockpile aaaaa.
 +
Then we go back to start and the whole thing repeats.
 +
 
 +
==== Design 3 (Newton's Crade) ====
 +
This design works fairly reliable while using no powered rollers. It works using impulse ramps and is thus considered an exploit.
 +
 
 +
As seen from the side:
 +
<pre>
 +
0:    ▒▒
 +
-1: ▒▒▲▲▲▲▒▒
 +
 
 +
Legend:
 +
▲: impulse ramp, 7/7 magma
 +
▒: solid wall / ground
 +
</pre>
 +
The minecarts arrive from the left with high speed, bump into the walls, drop into the 7/7 magma and get accelerated by the impulse ramps. Because of *physics*, the minecarts get stuck at the last impulse ramp on the right. A second minecart, also coming from the left, will push the first minecart out, filled with magma.
 +
 
 +
==Using magma==
 +
The primary use for magma is to <s>flood your fortress</s> power [[magma smelter]]s, [[magma glass furnace]]s, [[magma kiln]]s, and [[magma forge]]s. To power a building with magma at least one of the external eight squares must be a hole above a square of magma on the level below. Placing one of the workshop's [[impassable tile]]s above the magma conveniently prevents clumsy dwarves from falling in. Magma used for power is not consumed; a single tile of magma can operate the furnace indefinitely.
 +
 
 +
Other uses for magma include [[obsidian farming]], [[DF2012:Trap_design#Magma_and_fire_traps|trap design]], melting [[ice]], igniting [[fire]]s, and even [[garbage disposal]].
  
 
==Properties of magma==
 
==Properties of magma==
Line 69: Line 182:
  
 
Tiles directly adjacent to magma will be heated to a temperature of {{ct|10075}}, causing revealed unmined tiles to flash with {{Tile|☼|6:4:1}} when placing digging designations and causing unrevealed mining-designated tiles to cancel their designation (with a "warm stone" warning) once they are revealed.
 
Tiles directly adjacent to magma will be heated to a temperature of {{ct|10075}}, causing revealed unmined tiles to flash with {{Tile|☼|6:4:1}} when placing digging designations and causing unrevealed mining-designated tiles to cancel their designation (with a "warm stone" warning) once they are revealed.
 +
 +
[[Construction]]s ([[wall]]s, [[floor]]s, etc.) of any material can safely contain magma. Non-construction [[building]]s ([[door]]s, [[bridge]]s, [[pump]]s, etc.) that come into contact with magma should be built entirely of [[magma-safe]] materials. Non-magma-safe components will eventually melt and the building will deconstruct. Any [[mechanism]]s likely to come into contact with magma should also be made of magma-safe materials.
  
 
<small><sup>1</sup> - specifically, one of the inorganic materials having the [LAVA] tag, selected randomly ''per biome'' during worldgen.</small>
 
<small><sup>1</sup> - specifically, one of the inorganic materials having the [LAVA] tag, selected randomly ''per biome'' during worldgen.</small>
  
 
==Dangers of magma==
 
==Dangers of magma==
Any contact with magma results in nearly instant immolation, followed by death if water is not close at hand. Additionally, dropping items into magma can generate clouds of [[magma mist]] which can set your haulers on fire if you aren't careful.
+
Any contact with magma results in nearly instant immolation, followed by death if water is not close at hand. Additionally, dropping large items into magma will generate clouds of [[magma mist]] which can set your haulers on fire if you aren't careful. Magma is also home to various fiery creatures which can present a significant threat to unprepared fortresses.  
  
 
{{D for Dwarf}}
 
{{D for Dwarf}}
  
Magma is very well known for being the perfect solution to any problem encountered by dwarves. Giant badger invasion? Pour magma on it. Noble being his usual snotty, useless, arrogant self? Pour magma on it. Door locked due to invaders? Pour magma on it!
+
Magma is very well known for being the perfect solution to any problem encountered by dwarves. Giant badger invasion? Pour magma on it. Noble being his usual snotty, useless, arrogant self? Pour magma on it. Door locked due to invaders? Pour magma on it! Flooded your fortress with magma? [[Fun|Congratulations, you just won the game!]]
  
 
{{gamedata|{{raw|DF2012:hardcoded_materials.txt|MATERIAL|INORGANIC}}}}
 
{{gamedata|{{raw|DF2012:hardcoded_materials.txt|MATERIAL|INORGANIC}}}}

Latest revision as of 14:48, 26 May 2017

This article is about an older version of DF.

Magma is red-hot molten rock that wells up from deep within the earth (but not so deep that it cannot be found by dwarves), entering the map either by the edges or by the area beneath a magma pool. Magma that emerges aboveground is called Lava; however the substance itself remains the same. Magma is very Fun.

Magma serves as a heat source, replacing fuel in magma smelters, magma forges, magma glass furnaces, and magma kilns. Magma is extremely hot which can lead to even more Fun. Materials that can withstand the temperature of magma are called magma-safe, and the list is rather extensive.

Magma never cools, but can evaporate if left at a depth of 1/7 for long enough. When magma is mixed with water it forms obsidian (and steam). Note that magma located above semi-molten rock will be listed as a Magma Flow; magma in magma flow tiles will disappear when mixed with water (instead of cooling into obsidian).

Without screw pumps to impart pressure, magma flows rather slowly (though no more slowly than unpressurized water). A pipe to bring magma across the full map can take as much as a year to fill. This, combined with the fact that it will evaporate, can make filling a reservoir difficult and tedious. As a rule of thumb, the area coming out of a 1-wide-pipe shouldn't be more than three squares wide and 20 squares long, or else it will evaporate as fast as you fill it.

Magma sources[edit]

Magma occurs in several different geological formations:

Magma pools[edit]

Although the name suggests them as pools, they are more like pipes. They can be found underground, however they rarely reach the upper z-levels (40+). Most end a few z-levels above the magma sea, though some may span more than 100 z-levels. Magma pools seem to be always connected to a magma sea, and the sea and pipe can occasionally reach up to the same level, making them hard to separate. However, magma pools can be identified by the obsidian walls which surround them. Magma pools will slowly refill themselves, giving the player an infinite source of magma. The entire embark tile containing the pool will produce sporadic bursts of magma until the magma within it is at its natural level (i.e. the magma level at embark) or until it is halted by a bridge, floor, or bottom of a wall.

Volcanoes[edit]

Volcanoes are magma pools that extend all the way to the surface. Volcanoes are an endless source of magma as they will always refill themselves. They never erupt, unlike their real-life counterparts. Volcanoes are geographical features visible on the location screen, making them much easier to find when choosing a site for your fortress.

Magma sea[edit]

The magma sea is a large body of magma deep under the earth. Nearly all maps will include a magma sea at the lowest z-levels, though its inconvenient placement may inspire your dwarves to bring the magma up to the fortress proper.

Finding magma[edit]

Nearly all maps will have magma available at the lowest z-levels, but it can be advantageous to select a site with a more easily accessible source, particularly when starting out.

Volcanoes are visible on the "local" screen in the starting location chooser. It is represented as a red ˜ mark (a double tilde) - essentially it looks like red water. Note that red ˜ marks in the "region" screen mean something different entirely (e.g. red sand).

After you have chosen to embark in a place that has a volcano, and once your dwarves have arrived at their target destination, you should see a large red pool of lava on your map. If you don't, you should expect your volcano to be somewhere underground. You then have to use exploratory mining to find it. If you can find a large patch of obsidian on the surface that is devoid of boulders, chances are there is a magma vent below, so that would be a good place to start your mining.

Much harder than simply finding a volcano is finding a volcano that is also near suitable terrain for building. Depending on your requirements - you may be looking for a source of running water, or a mountain for minerals, or a healthy tree population, a layer of flux for steel production or even all four - suitable building sites can be extremely scarce.

Working with magma[edit]

Although magma is a liquid, it does not move via pressure unless it has been pumped. This reduced rate of flow can allow miners to survive digging into a magma reservoir, if they are lucky enough. There are ways to minimize this risk however:

Digging From Above: If you can find a suitable position above the magma, your miner can dig a channel while remaining above the level of the magma. Be warned, however, that your dwarves might take the ramp down into the magma channel as a shortcut; preemptively designating the channel for restricted traffic is recommended.

Diagonal Digging: Magma moves more slowly diagonally than orthogonally, giving the miner more time to escape. However, slower flow means you must keep in mind the evaporation. You should dig a smaller channel, wait for it to fill up, and extends the channel by Digging From Above. Workers that dig into a magma reservoir are not instantly killed as the magma touches them, but they are set on fire, which will kill them very quickly. For this reason, taking steps to ensure there is adequate water available to extinguish flaming dwarves running in random directions is advised before digging into any magma pools from the side. Channeling a single square wide pit across the planned magma pipe one tile away from the wall to breach and filling it with 2/7 water using the pond zone tool is recommended, so the panicking dwarves have no choice but to run through the water, and the water itself turns into an obsidian wall as soon as the magma flows into it.

Busy To Leave: [1] Dwarves who dig into magma often die not because they are unable to flee but because they choose not to. By ensuring a dwarf has another task waiting (ideally far away) they will immediately move away from the ensuing magma flow.

Simply mine up to the corner of a lava tube and then smooth the last tile. Dig a staircase within a few tiles of the place where you will be breaching that leads up and back into your fortress, this will allow your dwarf to get out before the magma gets him. Now designate the smoothed corner to be carved into a fortification. Now immediately when the dwarf begins to carve the fortification, (and this is the most important part!), designate a bunch of other tiles to be smoothed/carved. It's not important that your dwarves actually smooth, carve, or engrave those tiles, what is important is that your dwarf immediately takes another smooth/carve/engrave task elsewhere in the fortress when they finish the current one. If they do not then they will pause for the briefest of instants as they pick a new task, resulting in their death. If they have the job though, they will instantly turn and head up the staircase, stopping the magma from catching and killing them."

Exploit From Below: [2] Miners are able to mine out tiles diagonally above them even if there is a bridge over their heads. First you dig out your magma tunnel to feed magma to wherever in your fort you need it and dig it right up against the volcano pipe. Then you channel a trench against the pipe that can be the width of the tunnel if you wish. Build a magma-safe bridge over the trench, making sure to cover it completely, and then seal off access to the magma tunnel. Dig a new separate path to access the now bridged-over trench. Finally, designate the magma wall on the Z level of the magma tunnel for mining. Your dwarves will stand in the trench beneath the bridge but will somehow still mine out the squares diagonally above them, causing the magma to flow safely onto the bridge leaving your dwarves unscathed."

Example (use <> to navigate):

Z=0      
....
....
....
   X
   
Z=1      
      
      
      
      
....X
Z=-1     
   
   
   
   
   .
   X
   

Make sure the top z-level is sealed off from miners and dig (d-d) the highlighted tiles on the upper z-level.

Bringing Magma Up[edit]

Magma can be brought to the surface by three different methods: pump stacks, magma pistons, and minecarts. Pump stacks are conceptually the simplest, but require an enormous amount of in-game time to make. Magma pistons tend to be faster to make, but require more time to understand how to build them. Minecarts are a simple solution, but require more management than pump stacks because they can overfill a reservoir.

Pump stacks[edit]

Pumping magma up from the magma sea via a conventional pump stack is a lot of work, requiring dozens of pumps and significant amounts of power. Making all of the pumps magma safe also requires a lot of precious materials like iron, or a functioning glass industry.

Magma pistons[edit]

Magma pistons are another way to move magma near the surface. Magma pistons require less time and fewer precious materials to construct than pump stacks. However, magma pistons are a bit more complicated than pump stacks, so it takes more time to understand how to operate and build them.

Minecarts[edit]

Minecarts submerged in 7/7 magma (or possibly less, but 2/7 is not enough) will fill with magma. Each minecart holds 2/7 worth of magma, which is subtracted from the amount of magma in the tile. The minecart is then shown as containing magma [833]. Minecarts used for this must be magma-safe.

Minecarts full of magma can be tipped at a track stop, which will pour the magma in a specified direction from the stop. Therefore, the challenge is to get the minecart full of magma to the track stop. There are several ways to accomplish this.

The first task is to separate the minecart from the tile of magma. The obvious way is to build rollers in magma to pull the minecarts out; such rollers would also need to be magma-safe. Another way would be to drain the magma.

The second task is to move the liberated minecart to the track stop. Tracks can be built from the magma sea to the surface. A minecart track can be operated by dwarves or fully automatic, using powered rollers. Depending on the placement of the track stop, dangerous overflow can be prevented by making the track stop of a material that will melt/burn once the reservoir begins to overflow.

Impulse ramps can be used to get magma-filled carts to wherever they need to go without having to provide power to an extensive system of rollers, and will fully automate bringing magma to the surface. Since such systems require comparatively little designation and magma-safe materials, work can be begun much earlier than some other methods of bringing magma to the surface.

Design 1[edit]

In one design posted to the forums by gchristopher, a pump can provide power to the roller, making the ramp eligible for building the roller, and keeping the trench at 7 magma so the carts fill instantly.

# # = f l o o r g r a t e
% % = s o u t h f a c i n g p u m p
%
L e f t r a m p h a s a l e f t - p u s h i n g r o l l e r
R i g h t r a m p h a s a r e t r a c t i n g b r i d g e

If you drop minecarts in directly from at least 2 z-levels above onto the right ramp, this setup has the magical property that it can handle an arbitrary number of minecarts, and dispense them at a constant controlled rate. Carts are pushed up the left ramp by the roller.

If you extend the right bridge, that tile ceases to be a ramp. Exactly one minecart will fall onto the tile and stay there, and all other minecarts dropped from above will form a quantum pile 1 z-level up.

The last time I [gchristopher] built one, I timed the cart dispensing rate at 1 per 8 ticks. This is slow enough that carts can be brought to the surface using an impulse ramp spiral, but fast enough that you can still quickly cover a large area with magma.

The same design works with water, for giving you a lot of flexibility creating tall waterfalls without pump stacks, quickly and cheaply.

Design 2[edit]

Rafal99 posted another design using dwarf-powered wheelbarrows to transport the magma-filled minecarts from one minecart stockpile to another.

▒ddddd=====S==<<Zccccc      Near the surface (top view)
           U

▒bbbbb==      ==<<Xaaaaa    Near the magma (side view)
        \7777/

\7777/   - Magma reservoir, with tracks in it and rollers to bring minecart up the ramp
U        - Here we want magma
aabbccdd - Stockpiles accepting minecarts
===<<    - Track and rollers
S        - Track stop, set to lowest friction (so it doesn't stop the minecart), set to dump the contents into the U
XZ       - Track stops set to dump their contents to the left
▒        - Wall to stop minecarts
  1. Empty minecarts are put into stockpile aaaaa.
  2. There is a hauling route with one stop on X, with assigned vehicle, set to take furniture->minecarts from stockpile aaaaa.
  3. Empty minecarts are put into the minecart on track stop X, the track stop dumps them to the left, placing them on the rollers.
  4. Rollers move the empty minecarts into the magma reservoir, they get filled with magma, then the roller on ramp moves them up. They follow the track, then go out of it and stop at the wall; effectively the minecart with magma is being placed in stockpile bbbbb.
  5. Stockpile ccccc is set to take from stockpile bbbbb and has assigned 3 wheelbarrows. Dwarves safely transport the minecarts with magma inside wheelbarrows up to the surface into stockpile ccccc.
  6. There is a hauling route with one stop on Z, with assigned vehicle, set to take furniture->minecarts from stockpile ccccc.
  7. Magma minecarts are put into the minecart on track stop Z, and the track stop dumps them to the left, placing them on the rollers. (Same as in 3.)
  8. Rollers move the magma minecarts along the track. They pass through the track stop S and dump the magma in the destination point U, then they follow the track, go out of it and stop at the wall; effectively the emptied minecart is being placed in stockpile ddddd.
  9. Stockpile aaaaa is set to take from stockpile ddddd. Dwarves haul the empty minecarts back underground near the magma into stockpile aaaaa.

Then we go back to start and the whole thing repeats.

Design 3 (Newton's Crade)[edit]

This design works fairly reliable while using no powered rollers. It works using impulse ramps and is thus considered an exploit.

As seen from the side:

 0:    ▒▒
-1: ▒▒▲▲▲▲▒▒

Legend:
▲: impulse ramp, 7/7 magma
▒: solid wall / ground

The minecarts arrive from the left with high speed, bump into the walls, drop into the 7/7 magma and get accelerated by the impulse ramps. Because of *physics*, the minecarts get stuck at the last impulse ramp on the right. A second minecart, also coming from the left, will push the first minecart out, filled with magma.

Using magma[edit]

The primary use for magma is to flood your fortress power magma smelters, magma glass furnaces, magma kilns, and magma forges. To power a building with magma at least one of the external eight squares must be a hole above a square of magma on the level below. Placing one of the workshop's impassable tiles above the magma conveniently prevents clumsy dwarves from falling in. Magma used for power is not consumed; a single tile of magma can operate the furnace indefinitely.

Other uses for magma include obsidian farming, trap design, melting ice, igniting fires, and even garbage disposal.

Properties of magma[edit]

Magma behaves the same way as water with the exception of not being affected by pressure (except when being moved by a screw pump) and apparently not showing flow. Magma will turn into obsidian1 if it touches water. In the game, magma's temperature is 12000 °U . See the list of magma-safe materials for more information on what can (or cannot) be safely submerged in magma.

Tiles directly adjacent to magma will be heated to a temperature of 10075 °U , causing revealed unmined tiles to flash with when placing digging designations and causing unrevealed mining-designated tiles to cancel their designation (with a "warm stone" warning) once they are revealed.

Constructions (walls, floors, etc.) of any material can safely contain magma. Non-construction buildings (doors, bridges, pumps, etc.) that come into contact with magma should be built entirely of magma-safe materials. Non-magma-safe components will eventually melt and the building will deconstruct. Any mechanisms likely to come into contact with magma should also be made of magma-safe materials.

1 - specifically, one of the inorganic materials having the [LAVA] tag, selected randomly per biome during worldgen.

Dangers of magma[edit]

Any contact with magma results in nearly instant immolation, followed by death if water is not close at hand. Additionally, dropping large items into magma will generate clouds of magma mist which can set your haulers on fire if you aren't careful. Magma is also home to various fiery creatures which can present a significant threat to unprepared fortresses.

D4Dwarf.png This article or section has been rated D for Dwarf. It may include witty humour, not-so-witty humour, bad humour, in-jokes, pop culture references, and references to the Bay12 forums. Don't believe everything you read, and if you miss some of the references, don't worry. It was inevitable.


Magma is very well known for being the perfect solution to any problem encountered by dwarves. Giant badger invasion? Pour magma on it. Noble being his usual snotty, useless, arrogant self? Pour magma on it. Door locked due to invaders? Pour magma on it! Flooded your fortress with magma? Congratulations, you just won the game!