Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Observations regarding obsidian bombing  (Read 1044 times)

walberg

  • Bay Watcher
    • View Profile
Observations regarding obsidian bombing
« on: May 15, 2013, 10:16:29 am »

Getting a little bored with simply tweaking the hippies by offering them a non-descript "featherwood training sword", I decided to embark on a project to develop a slightly more significant tweak button. I'm imagining something like this:

Quote
This is a masterwork obsidian mug. It is infused with the essence of mongoose demon (beware it's insta-death bloody goo). It is encircled with bands of nether-cap (to keep your pansy strawberry juice cool). It menaces with slivers spikes of glumprong. On the object is an image of an elf in goblin-cap. The elf is screaming. On the object is an image of elves in blood thorn. The elves are dying.

I've seen the dwarven checkerboard idea and several others, but considered it too "safe" - where's the risk of one particularly speedy flier getting through the setup before Urist McLeverPuller finds his way to his station, or the risk of Urist McBoozer running off to find a drink instead of attending to the lever? So, I started setting up a semi-elaborate clown infusion obsidian farm. The setup is basically this:

  • Level Z - a 20x20 maze of constructed fortifications that the clowns have to enter on one corner and exit on the opposite corner; will be filled with kittens or some such to keep them occupied for a bit to help with timing
  • Level Z+1 - empty space
  • Level Z+2 - an 18x18 floor suspended by a support as the first line of offense - allow the maze to fill and drop the floor first to handle the first wave
  • Level Z+3 - 4 10x10 retracting bridges covered to 7/7 with magma
  • Level Z+4 - empty space - the wiki and other sources seem to indicate you want to dump water from at least 2 Z-levels above the magma, otherwise you just get steam
  • Level Z+5 - 4 10x10 retracting bridges covered to 7/7 with water

The bridges on Z+3 and Z+5 are all hooked to the same lever; the idea being that both the magma and the water will fall, maintaining some separation, until the magma splashes down in the maze, followed very quickly by the water, to turn the inhabitants of the maze into shiny obsidian blocks. Seemed like a sound design on paper. Water above magma, because the wiki and other sources say that's the better plan.

Anyway, decided to make a copy after I completed construction to do an un-dwarvenly test run. It was a spectacular, steam and magma-mist filled glorious..... failure. The magma and water both fell, as expected, they mixed mid-air, producing lots of steam, but absolutely no obsidian. When the steam cleared, I had a maze full of magma, with no water in sight. Which led me to play around a bit with DFHack liquids in arena mode, where I found some things that, at least to my initial searching, had not been sufficiently investigated before. A new branch of !!science!!, so to speak. So I thought I'd put my results here, in case someone else ever wonders.

In my brief searching, I did also come across a couple other ideas for obsidian drops, that seem to work, but it now seems that, it's probably a case of it working stochastically - i.e. it depends on the exact timing of whether the magma or the water hits the open space first, which will naturally vary, and give some mix of successful firings with mis-firings.

So, in the arena, I tested a) putting the water above the magma vs putting the magma above the water, b) placing the water first vs placing the magma first (assuming this would sort of simulate the timing difference when bridges are used, due to their construction and triggering order, even when attached to the same lever) and c) placing one liquid directly above the other vs leaving a Z-level in between. I'll use the notation MW/M0 to indicate "magma placed first, then water / with magma on the bottom, with zero Z-levels between". The lowest liquid was 2Z above the floor in all cases. Four separate rounds were run. The results I found were:

  • For the cases where the magma was on the bottom (*/M*), no obsidian at all was formed. All water was converted to steam during the fall, leaving only magma on the floor.
  • For the water on the bottom cases (*/W*), obsidian was reliably created, although not always in the shape of the dropped liquids. 3 of the */W0 cases exhibited some spread, while 5 of the */W1 cases spread out. The spreading was after the liquids hit the floor (or the top of newly formed walls), though, so is not particularly unusual.
  • The cases where there was more separation between the liquids (*/W1) also exhibited some cave-ins, as obsidian formed in unstable locations. The */W0 cases did not seem to have any caveins.
  • The order of placing the two liquids (MW/* vs WM/*) did not seem to have a significant influence. The additional timing factors of using bridges vs DFHack liquids might make some difference, but more testing is necessary, and takes a bit more time to set up.

So, it would seem to me that, while the general lore's recommendation to drop water onto magma instead of the other way around works just fine for the cases where you are dropping water onto magma that's already stable on a floor, when both liquids are going to be falling, it's definitely better to do things in the other order - drop the magma on top of the water. Not quite sure if these results are due to Dwarven physics, or just order of evaluation of events in the simulator (a side note - it seems, after single-stepping through this simulation, that the order in which tiles are processed for fluid-gravity interactions is randomized somewhat, because I would see some tiles fall before others, and it would be some number of ticks before an entire block of liquid had descended one level; not sure if the order of tile processing is the same on every Z-level, or if it might be different on each level - I suspect it's the same, though).
Logged

Geldrin

  • Bay Watcher
    • View Profile
Re: Observations regarding obsidian bombing
« Reply #1 on: May 16, 2013, 04:23:59 am »

Really interesting idea!

Regarding to the mid-air mixture problem: what happens, if you leave more vertical space between the magma and the water reservoir, keeping the original arrangement?
« Last Edit: May 16, 2013, 04:27:20 am by Geldrin »
Logged

walberg

  • Bay Watcher
    • View Profile
Re: Observations regarding obsidian bombing
« Reply #2 on: May 16, 2013, 06:28:03 am »

Don't know for sure yet - my current arena setup didn't have enough sky Z-levels to separate the two liquids more. I'm not sure what the magic number is, but I suspect that there would be a certain level of separation at which the two liquids don't get close enough to each other to mix on the way down, in which case my original idea would work out ok.
Logged

laularukyrumo

  • Bay Watcher
  • Needs More Socks
    • View Profile
Re: Observations regarding obsidian bombing
« Reply #3 on: May 16, 2013, 03:08:18 pm »

I'm not a hundred percent sure but I think that, while you CAN define custom arena setups, you might be limited to a hardcoded limit of being stuck between z-4 and z+4. I don't know, but I think this might be the case. If not, then you can always go into one of those fancy shmancy arena editor programs and poop out a file with 9000 sky z-levels with appropriate scaffolding FOR SCIENCE.

Also, ptw because holy shit. You are a good man for joining the !!scientific!! community.
Logged
Quote from: Dwarfotaur
Everytime one of my militia has given birth in the Danger Room, it's lead to instant baby smoothies for everyone.

Gotta Catch 'Em All!

Dat Sig Thread

walberg

  • Bay Watcher
    • View Profile
Re: Observations regarding obsidian bombing
« Reply #4 on: May 21, 2013, 10:26:27 am »

A little more !!science!!. Did some more testing with falling water above falling magma to see if greater initial separation allowed for successful obsidian formation. The result seems to be that if there are at least 3 empty z-levels between the water and magma when they are released, some obsidian will be formed. With exactly 3 z-levels, only some (roughly half) of the blocks represented formed obsidian, and with 5 or more z-levels between, it appears to gain 100% coverage.

So, in summary, in order to have a successful obsidianization trap by dropping both water and magma (as opposed to dropping one onto the other), you need to either have the magma initially above the water, or to have 3 or more empty z-levels between the magma and the water if the water is going to be higher initially, with 5 z-levels or more giving the best results.
Logged