Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Dropping aquifers to the cavern?  (Read 1059 times)

kenpoaj

  • Bay Watcher
    • View Profile
Dropping aquifers to the cavern?
« on: February 19, 2015, 12:48:01 pm »

I've been thinking of making a waterfall shower around my main stairwell, but to avoid the fps hit of water draining out the side of the caverns, I was wondering if its possible to collapse some aquifer tiles down to the cavern level so they can absorb the falling water. Has anyone tried this? If not, Ill be trying it out this weekend.

The cheat solution would be to use dfhack to designate river source tiles down there but I'd like to do it in proper dwarven fashion; putting lives at risk during construction.
Logged
This forum is a bunch of nutters, and you couldn't point to anything to contradict it.

wierd

  • Bay Watcher
  • I like to eat small children.
    • View Profile
Re: Dropping aquifers to the cavern?
« Reply #1 on: February 19, 2015, 01:18:28 pm »

I dont understand... waterfalls eat up FPS worse than draining water off the map does...
Logged

kenpoaj

  • Bay Watcher
    • View Profile
Re: Dropping aquifers to the cavern?
« Reply #2 on: February 19, 2015, 02:13:45 pm »

Part of it is that i just want to have zero waterflow on the bottom floor. But does the reason matter all that much? Dropping an aquifer to the cavern for science if no one has done it before seems like a necessity!
Logged
This forum is a bunch of nutters, and you couldn't point to anything to contradict it.

evictedSaint

  • Bay Watcher
  • if (ANNOYED_W_FANS==true) { KILL_CHAR(rand()); }
    • View Profile
Re: Dropping aquifers to the cavern?
« Reply #3 on: February 19, 2015, 02:31:57 pm »

Let's see...not only would you have to breach an aquifer, you would also have to cut out a chunk of aquifer and drop it into the cavern, with a wall to capture the flooding from the edges of the chunk.  Then, you'd have a waterfall from the hole you cut, and to top it off I'm not 100% sure an aquifer maintains its aquifer status when it drops.

kenpoaj

  • Bay Watcher
    • View Profile
Re: Dropping aquifers to the cavern?
« Reply #4 on: February 19, 2015, 02:36:53 pm »

That last part is the only detail that concerns me at the moment. The bleeding edge problem is solvable.  The containment at the bottom is trivial. I'll do it this weekend and update or make a new post with the results.
Logged
This forum is a bunch of nutters, and you couldn't point to anything to contradict it.

i2amroy

  • Bay Watcher
  • Cats, ruling the world one dwarf at a time
    • View Profile
Re: Dropping aquifers to the cavern?
« Reply #5 on: February 19, 2015, 04:22:57 pm »

IIRC aquifers lose their properties during cave-ins.

That said if you really plan to do this just designate a tunnel with edge width = to your outflowing aquifer tiles and use it as an exit drain. Assuming everything balances right the only tiles that require calculation should be the very edge tiles at the start of the waterfall and the edge of the map, so it shouldn't cause any more lag than an average river should. The key is that you will need to balance the outflow with the inflow just right so that everything fills up to 7/7 instead of either less than 7/7 which requires more processing or overflowing to fill up the whole cavern.
Logged
Quote from: PTTG
It would be brutally difficult and probably won't work. In other words, it's absolutely dwarven!
Cataclysm: Dark Days Ahead - A fun zombie survival rougelike that I'm dev-ing for.

milo christiansen

  • Bay Watcher
  • Something generic here
    • View Profile
Re: Dropping aquifers to the cavern?
« Reply #6 on: February 20, 2015, 02:24:07 pm »

Make your catch basin and drain more than one z-level tall with a one z tunnel connecting them, that way the tunnel will always be full and pressure will make any "overflow" drain out the upper level of the drain. If that makes any sense?

Water falls from above slightly faster than a single z-level of drain can take it away, when the second z-level starts to fill water will be teleported to the second z-level in the drain area, thereby giving a minimum of flow calculations. It would be a good idea to make your catch basin taller than you think you will need just in case...
Code: [Select]
Side view:

<space> = open space
d = map edge drain
. = solid block

...   .
d..   .
d     .
......
[\code]
Logged
Rubble 8 - The most powerful modding suite in existence!
After all, coke is for furnaces, not for snorting.
You're not true dwarven royalty unless you own the complete 'Signature Collection' baby-bone bedroom set from NOKEAS