Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: A Tale of Magma and Woe  (Read 999 times)

vjek

  • Bay Watcher
  • If it didn't work, change the world so it does.
    • View Profile
A Tale of Magma and Woe
« on: September 24, 2011, 12:05:41 pm »

A Tale of Magma and Woe

So a few weeks back, I decided to expand my knowledge of DF and start exploring how to use magma to defend my fort.  This is my tale of woe.  This is long and rambling, so brace yourself or move on to a different thread, your choice!

I had used pumps in the past to move water around, but always powered by a dwarf, never powered by water wheels or windmills.  I had never even built a water wheel or windmill, as I was blissfully ignorant of their potential.  So, pumps, that's all I knew about.  A bit of reading, and I learn about magma safe materials, ok, that's important, gotta remember that.  What else? Ok, it's not like water, that's helpful...  It doesn't kill instantly, also good to know.  I'm ready!

Wow, I was so not ready.  Up to this point, for my fortress defense, I had simply created a single entrance, lined it with traps, and had the dwarves dump all the bits of monster into the magma disposal chute.  Not efficient, but it worked.

First attempt.  Built a hallway, built a pump above, channeled magma from a nearby volcano, when the goblins were in the hallway, turned on the pump.  Dwarf running the pump was burned, pump output needs to be sealed, ok... goblin ignored magma for the most part, as he was long gone past the "pour in" point before it started to trickle in.  Scratch that design.  Need a way to keep the goblins in one area.

Second attempt.  Single twisting hallway, not enough magma pressure, too slow, incomplete floor coverage, and no drainage.  Lots of problems, but I did actually manage to kill some goblins with magma.  Good learning experience.

Third attempt.  In my mind, I still figured a winding path would be best, in that it would collect the most goblins ahead of time before immersing them.  Good in theory, tricky in practice.  First attempt, I used a path that had 12 turns in it, but the whole thing fit inside a square, so it was relatively easy to build the ceiling-magma-source, the drains and so on.  I built stairs at either end to "hold the magma in" should the 9 pumps involved produce too much flow.  This design was seriously flawed.  First problem, too much drainage, as I used carved fortifications on every wall, which drained away the magma too quickly.   By too quickly I mean it didn't actually burn all the associated cruft that goblins bring with them, it just burned them enough so they died.   It also allowed for weapons and armor to flow through the fortifications, into the catchbasin below, out of reach. 

Second problem was the magma source, and problems associated with having channels to allow the magma to flow down into the hallway.  I tried to redirect the source of the magma flow with constructed walls, and then tried to adjust the rate by spacing the channels, and it was all for naught, as the drainage didn't allow for any depth of magma, and so death was either too slow, or the goblins could actually run away and escape, even if they were bleeding ( a lot ).  Either the magma didn't cover enough area, or the flow would reach the ends of the halls, or it didn't pour from above in the right places, and so on.

Fourth attempt was the same as the third attempt, but with grates lining the interior of the walls to catch all the weapons & armor.  Thinking ahead, I had made this one so I could adjust things, and I added rectractable bridges in the ceiling to allow the magma above to be pressurized ahead of time and then released all at once with one big helping hand from mr. gravity & mr. pump.  Worked too well, as it pushed the goblins through the fortifications onto the grates behind the walls, and thusly into the fortress to kill all the un-militarized dwarves.  I fiddled around quite a lot with the bridge-hatches and timing and so on, but ultimately, it was not to be, and I moved on.  I had learned about water wheels, axles, gears, pressurizing and even more about drainage, though, so time well spent.

Fifth attempt.  By this time, I had read up on some other designs, and had a laundry list of problems to solve.  I also wanted to incorporate a few must-have features such as: Complete submersion. None of this 6/7 crap, I wanted everyone breathing magma. Complete automation.  No manual switches, it must completely cycle with automation.  A few of the designs I read about used water driven logic.  This essentially involves a water source, floodgates, and pressure plates.  Some of the designs reminded me of a digital logic truth table, which makes sense in retrospect.  At this point, I had abandoned fortifications entirely and was working with a pure grate system, with bridges as walls along the hallway length.  Ultimately, it worked, but not to my satisfaction, as drainage was a continual problem, and there were limited choices regarding location with this design.

Logic problems with #5 were related to using sequential pressure plates.  This doesn't work reliably.  Primarily it's due to the nature of flowing water and drainage.  You can build a one-shot stateful system, but multiple states in the same logic flow was ultimately a failure.  So I redid it with parallel flows, and it worked better.  Timing was still a problem, in that if you wanted SLOW events, but reliable, that was harder that fast events.  In any case, I refined it down to water_source->floodgate->pressure_plate->floodgate->drain.  This basic logic flow has served me well from this point on.  It basically allows for a given trap system to remain in a given state indefinitely, until affected by another outside event.  For example, if you tie your magma source to the pressure plate in the logic flow, and the creature driven pressure plate to the first floodgate, it will open momentarily, put enough water on the logic pressure plate to open the magma, and stay that way forever, until the second floodgate is opened.  This, for me, was an essential piece of the puzzle.

Fillage.  The "room full detector" worked fantastic, if a little fast.   In later versions I delayed the detector with a longer fill hallway to ensure 100% burnage.  In this first incarnation, it killed everything, guaranteed, but it didn't BURN everything.  There were often corpses and bits of silk underwear in the grate room below, and that just wouldn't do.

Drainage.  Magma drainage was a constant problem here, but I learned some valuable lessons regarding the order in which things should be built, the order in which mechanisms should be tied, and how quickly magma will drain given ideal and not ideal conditions.   Magma evaporation is completely unreliable.  It should never be relied upon for trap reset or timing or pathing, or anything related to the start, stop, execution, state, or reset of any system.  Bah on magma evaporation, bah I say! (more on this in the sixth attempt)

Manual levers.  I also started putting manual levers in place to control the hallway containment walls, bridge floors, magma pumps and magma source hatch, and put them in every design from this point on.  This allows for testing, but also the removal of those annoying forgotten beasts and titans that show up and don't trigger pressure plates.

Sixth Attempt.  Long hall (40x3 worth of retracting-bridge-floors), pressure plate in the middle, 4 Z-Levels required.  Gravity driven drainage.  This was the 1.0.  It worked, it actually worked!  Trolls walked down the hall, tripped the pressure plate, walls went up, magma went in, trolls immersed in magma, floor fell away, magma drained out, trap reset, floors and walls returned to normal, next round of monsters are free to enter.

However (and of course you knew this was coming) there were two problems in the long term.  These took years of in-game time to show up, but they became extremely inconvenient.  The first was magma evaporation of the pressure plate and the second was monsters occasionally escaping the room prior to the containment walls going up (they can run a fair distance in 100 ticks!).  This design was definitely fun though, and bolstered my desire to continue on.  It was at this point that I abandoned having the pressure plate INSIDE the room, as the magma evaporation problem has no solution that I'm aware of.  Even if it's one tile surrounded by nothing but bridge-floors, it can be months of in game time before it will evaporate and permit creature pathing again.

Seventh attempt. Long hall, pressure plate at the start at first, then at the end of the hallway.  This was primarily an exercise in timing, but I also ran into a third long term problem.  If used enough, the catch basin (the lowest point of the entire system) can FILL UP.  As my "the trap is drained, reset" indicator is triggered off of magma level, you can see where this would be a problem.  If the room below fills up, and then fills up the lower grate room, the trigger never shuts off, so it doesn't reset the trap properly, and the magma source stays on, and the ... oh noes!  magma filling the fort!  Yeah.  So, bigger catchbasin, it's now 50x100 with engraved fortifications to the entire map edge on the north and south edges.

Having the creature driven pressure plate at the start of the hallway creates the problem of the goblins standing ON the plate indefinitely, keeping the trap cycling indefinitely.  The logic I built ensures that, unless there's an anomolous condition, the containment walls are the first to go up and the last to go down.  This means with them standing on the plate, it will never let them in.  Bad.  Ok, so I moved the pressure to the end.  Great, except under one condition, which is exactly the same as having it at the start of the hallway.  Goblins standing ON the pressure plate, trying to escape the fort after the siege has failed.  They force the trap to continously cycle, and again, it will stay this way forever.

To address that problem, and I'm not sure there's a 100% solution, but for the moment, I've built an additional drawbridge wall down-path from the magma hallway; between the magma hallway and the traps that are my last line of defense before my fort/trade-depot.  This  prevents the cowardly goblins from pathing OUT of the fort temporarily.  Initially I had though to create two drawbridge walls that would pop up immediately adjacent to the creature-pressure-plate but this only ensures the goblin remains on the plate, which is bad in my system.  I want them to move off it/past it, so this current design permits and encourages that.  There has been a situation occur since this, where a small group of a few goblins were caught in this area retriggering but not standing on the creature-pressure-plate.  In this instance, I manually opened the containment walls with a lever to allow them to 'escape' then shut it and burned them all, of course.  Sheesh, what did you think, I would have mercy on goblins?  As if !

Annoyances:
-embarking with proficient mechanics, but having them choose the least magma safe materials for mechanisms before the bookkeeper gets their act together.  Surrounded by nothing but obsidian for 10 Z-levels and all other directions, those Mechanics will choose microcline 50 Z-levels away.  Thumbs up, dwarf-dudes.
-goblins standing ON pressure plates.  For a long time.  Move, you cursed fiends!
-monsters that give up too easily.   Don't run away! You haven't bathed in magma yet!  You shouldn't say no until you've tried it...

Problems that need long term 100% solutions:
-magma evaporation on pressure plates takes too long & prevents pathing, while required to be a chokepoint for pathing.
-fleeing/cowardly creatures pathing back across the original trigger.

I recognize there are some "dwarfy" solutions to some of these problems, that is, you could push the goblins off the trigger with water, to ensure they don't constantly re-trigger it, or build a second adjacent magma hallway down-path from the original, and so-on, but I wanted to see how far I could personally push the idea I had in my head, and this is where it led me.  Good times!  As a final note, my current design has been running for 12 in-game years, survived at least 10 sieges, one titan, vaporized over 750 goblins & trolls, and my dwarves have collected every single scrap of goblinite they were carrying. 8)

DarkWolfXV

  • Bay Watcher
  • Infernally rotten to the gore.
    • View Profile
Re: A Tale of Magma and Woe
« Reply #1 on: September 24, 2011, 04:03:46 pm »

U srs? Magma trap is very simple, and u couldnt do a MAGMA trap? what kind of overlod are you?
Levers are good, expecially in main meeting hall, so lots of dwarves have chance to activate one, you could make magma drop and make magma flow into a series on tunnels in which it would evaporate, that is, if u have infinite magma source.
Logged
Goats will ignore your grass and eat the neighbours' roses. They're just evil bastards like that.
Probably thats why they are used with pentagrams on covers of Satanic Black Metal albums.
BURNING SHIT AND EATING ROOSESSSSSS DDOFOFAOAARRRAHYYYE

thegoatgod_pan

  • Bay Watcher
    • View Profile
Re: A Tale of Magma and Woe
« Reply #2 on: September 24, 2011, 08:50:38 pm »

U srs? Magma trap is very simple, and u couldnt do a MAGMA trap? what kind of overlod are you?
Levers are good, expecially in main meeting hall, so lots of dwarves have chance to activate one, you could make magma drop and make magma flow into a series on tunnels in which it would evaporate, that is, if u have infinite magma source.

You sir are underrating the immense scope and grandeur of this venture: note
I wanted everyone breathing magma. Complete automation.  No manual switches, it must completely cycle with automation. 


To Vjek: bravo, bravo! True dwarven spirit of experiment
Logged
More ridiculous than reindeer?  Where you think you supercool and is you things the girls where I honestly like I is then why are humans on their as my people or what would you?

CapnUrist

  • Bay Watcher
  • Sure, it's safe to drink!
    • View Profile
Re: A Tale of Magma and Woe
« Reply #3 on: September 24, 2011, 11:29:54 pm »

Impressive! You certainly grasped far more than I did when I started toying with Armok's Ale. Complete automation has been a goal of mine too, but I have found a way to ensure near-maximum drainage, especially when it comes to collecting goblinite. Instead of dropping magma on my invaders, I used pumps to pressurize the magma and cause it to rise up out of the floor, which is completely magma-safe grates, activated by a series of pressure plates on solid floor along the center and sides of the hall. Activated plates start the magma rising; when no plates are on, the magma is allowed to recede and drain, leaving nothing but goblinite. My trap had one large problem though: due to the length of the hallway and the lack of a proper reservoir feeding the trap, it ran very slowly; filling the chamber and then emptying it could take a month in-game.

Your report has inspired me to pick it up again though; I've been experimenting with dwarven water logic and I'm sure with some proper implementation it can be perfected!
Logged
"My doctor says I have a malformed public duty gland and a natural deficiency in moral fiber [...] and that I am therefore excused from saving Universes."

Mitchewawa

  • Bay Watcher
  • My pick is the pick that will pierce the heavens!
    • View Profile
Re: A Tale of Magma and Woe
« Reply #4 on: September 25, 2011, 03:29:47 am »

Fantastic and detailed story; and I liked it. I might try my hand at 'automated' lava machines soon.

What I had done in the past is quite different; due to the lack of volcanoes and the time it takes to get pump stacks from the magma sea I had simply used water drowning chambers. Elvish in toughness but dwarven in effectiveness. To simulate a non-pussy method of mass genocide I used a repeat lever connected to upright spikes to put their blood in the water to make it look like lava.
Logged
Mitch cancels sleep: Interrupted by Clowns

vjek

  • Bay Watcher
  • If it didn't work, change the world so it does.
    • View Profile
Re: A Tale of Magma and Woe
« Reply #5 on: September 25, 2011, 06:14:03 pm »

Thanks for the kind words, those that gave them!
...  I used pumps to pressurize the magma and cause it to rise up out of the floor, which is completely magma-safe grates, activated by a series of pressure plates on solid floor along the center and sides of the hall.  ...

Capn, did you have any problems with Trolls wanting to bash the grates, with this design?  I hesitated to put anything "destroyable" in the hallway, as they seem to want to bash everything they can get their furry claws on..

In consideration of your idea, though, pumping the magma upwards under pressure should work, even if you had to use retracting bridges as hatch covers instead of grates.  I could see a system of two retracting bridges, on two z-levels below the drowning area.  Release the upper-most one to burn, then release the lower-most to drain, then pump it up again after reset.  You could re-use the magma as well, if you build the catchbasin with an overflow drain to ensure it didn't overfill.

But my "the room is full" indicator would work with your system as well.  Just a single channel above the room linked to a pressure plate at the end of a short hallway ( channel-floor-floor-floor-floor-pressureplate )  And if there's not enough pressure, experience has taught me: add more pumps.  :D

Multiple pressure plates are a solution I thought about using, but I didn't experiment with it.  My concern was always that the goblins would step around them, even if randomly.  I suppose there's no harm in having both!  That way if they miss the one in the hall, the first one to exit at least will trigger it for the majority behind them. hm hm.

Volcanos are pretty much required (or extremely convenient!) in systems like this, and even with them, I've had sieges so large the top three layers of magma are drained off the volcano before the goblinite-carriers break and run.  It refills though, so no worries there.

CapnUrist

  • Bay Watcher
  • Sure, it's safe to drink!
    • View Profile
Re: A Tale of Magma and Woe
« Reply #6 on: September 25, 2011, 07:59:39 pm »

I actually had no problems with trolls wanting to bash the grates for a few reasons:
Firstly, the trolls were far too busy attempting to deconstruct the glass disc traps that I'd laid down before the magma chamber. I'd been using glass in disc traps for a few forts and I noticed that trolls like to sit on them, bruise their hands to hell and back, and exhaust themselves by constantly getting whacked with sharpened glass while trying to pull it apart.
Secondly, the trap I'd used this in actually used a dodge-me trap to toss the goblins into the magma chamber, ensuring they wouldn't escape either way. When the trap wasn't in use, raising bridges covered the empty space beside the center corridor.
Thirdly, though no trolls did make it down there, from what I've seen the trolls take longer to pull grates away than the trap did in raising the magma to the chamber level. It filled slowly, but as soon as anything was burned it started rushing about trying to avoid the first bubbles of magma.
Logged
"My doctor says I have a malformed public duty gland and a natural deficiency in moral fiber [...] and that I am therefore excused from saving Universes."