Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Assembling Structure  (Read 947 times)

TSTwizby

  • Bay Watcher
    • View Profile
Assembling Structure
« on: January 17, 2012, 09:58:34 pm »

In short, I intend to create a device in Dwarf Fortress which, once constructed, will allow me to create arbitrary structures of a certain area out of obsidian. Ideally this could be used to do things like build labyrinths/towers/etc without wasting miners' or masons' time, and with no chance of trapped/crushed dwarves.

I have a couple of basic design ideas, and before I decide which to go with, I just have a couple questions about caveins. If I get no answers for a few days, I'll stop being lazy and figure it out myself.
First: If water and magma are mixed to form obsidian on a tile which is on top of a (currently extended) bridge and that tile is surrounded by tiles which are empty apart from the bridge, will the obsidian fall when the bridge is retracted?
Next: How about if you replace 'bridge' with 'hatch cover' or similar?
Penultimately: Can bridges be built, supported by nothing but other bridges?
     Corollary: If this is done, and one bridge supporting another is retracted, will the other bridge fall?
Finally: If magma is falling vertically in some area, forming a pillar as it were, and water is sent flowing down a construction so that it falls off the construction in exactly the same place as the magma is, will the resulting obsidian fall or be stuck to the construction?


Here's what I've decided on so far for sure:
The main controller for the device will be a couple of large arrays of levers. A lever being pulled means that an equivalent spot in the final area will be filled in with a wall, in the first array, floor in the second array. Either I'll do one floor of the structure at a time, or I'll have multiple floors of the array (With each meant to build one floor of the final structure). It will make everything by casting in obsidian in successive layers. Unfortunately, stairs and ramps are impossible using this method, as well as unsupported floors, but I can think of no automated method which could do better.

I intend to start with a very simple, 4x4x2 assembler, just to test the principle. Once I've got that figured out, I'll try larger structures, and maybe try to figure out some sort of water based substitute for stairs. I can't think of any way to do it, but it would be great if I could somehow move the structure out of the 'casting area', either by dropping it or by setting up some kind of system to move the water and magma around easily.

Thoughts? Answers? Questions? Concerns?
Logged
I got a female and male dragon on my embark. I got cagetraps on the exits but im struggling to find a way to make them path into it.
Live bait.
3 dwarfs out of 7 dead so far

Vehudur

  • Bay Watcher
  • [evil]
    • View Profile
Re: Assembling Structure
« Reply #1 on: January 17, 2012, 10:33:11 pm »

Bridges cannot support structures, ground or each other. 

If it is touching the construction, it will stick.  If not, it will fall and generate cave-in spam.
Logged
Quote
...and a third died in his bunk of natural causes - for a dagger in the heart quite naturally ends one's life.

I used to have an avatar, but I was told to remove it after it kept making people go insane.

Kofthefens

  • Bay Watcher
  • Keep calm and OH GOD CAPYBARAS
    • View Profile
    • Marshland Games
Re: Assembling Structure
« Reply #2 on: January 17, 2012, 11:01:11 pm »

+Dwarf points if you can make a von Neuman device
Logged
I don't care about your indigestion-- How are you is a greeting, not a question.

The epic of Îton Sákrith
The Chronicles of HammerBlaze
My website - Free games

TSTwizby

  • Bay Watcher
    • View Profile
Re: Assembling Structure
« Reply #3 on: January 17, 2012, 11:14:49 pm »

The problem with self-replication is that almost anything which can do anything uses levers/pressure plates to do something. Which you can't make automatically. I suppose I could try to make some kind of mold which, when magma and water are poured on it in the right place, will create a replica right underneath.
Logged
I got a female and male dragon on my embark. I got cagetraps on the exits but im struggling to find a way to make them path into it.
Live bait.
3 dwarfs out of 7 dead so far

Sphalerite

  • Bay Watcher
    • View Profile
    • Drew's Robots and stuff
Re: Assembling Structure
« Reply #4 on: January 18, 2012, 08:44:34 am »

First: If water and magma are mixed to form obsidian on a tile which is on top of a (currently extended) bridge and that tile is surrounded by tiles which are empty apart from the bridge, will the obsidian fall when the bridge is retracted?

If the obsidian is not supported by anything but the bridge, they will fall instantly, destroying the bridge in the process.  You can't support obsidian with a bridge.

Quote
Next: How about if you replace 'bridge' with 'hatch cover' or similar?

A hatch cover requires an adjacent construction for support when it is built - you can only build one next to a wall or floor or other supporting construction.  If you form obsidian on top of the hatch cover, that adjacent construction will also support the obsidian.  Also, the hatch cover will be destroyed when obsidian forms in that space.

Quote
Penultimately: Can bridges be built, supported by nothing but other bridges?

Allegedly, yes.  I haven't tried it, but I've seen screenshots of it being done.

Quote
Corollary: If this is done, and one bridge supporting another is retracted, will the other bridge fall?

From what I've seen, if you build bridge A and then build bridge B supported only by bridge A, and then retract bridge A, bridge B will collapse.  However, if you retract bridge B first, then retract bridge A, then extend bridge B, bridge B will appear mysteriously floating in mid-air with no apparent means of support.  It won't collapse unless bridge A is retracted while bridge B is extended.  However, this is from memory from an older version and might have been changed since then.

Quote
Finally: If magma is falling vertically in some area, forming a pillar as it were, and water is sent flowing down a construction so that it falls off the construction in exactly the same place as the magma is, will the resulting obsidian fall or be stuck to the construction?

When obsidian forms, if there is any supported construction in any adjacent space, the obsidian will stick in place.  Otherwise, it will fall.  In your example, the obsidian will stick to the construction that the water is flowing off of.
Logged
Any intelligent fool can make things bigger and more complex... It takes a touch of genius --- and a lot of courage to move in the opposite direction.