Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: DFHack drainquifer problem... anyway to do it manually?  (Read 1473 times)

ShuangXi

  • Bay Watcher
    • View Profile
DFHack drainquifer problem... anyway to do it manually?
« on: November 22, 2012, 09:51:47 am »

I pretty much always use drainaquifer.  In this case, it still left behind a lot of 'damp' tiles.  I thought it was just an issue with not removing the tags.

However breaking one still is flooding my fort.  Luckily i tunneled to bottom of map, so temporarily the flooding isn't affecting me as it fills from the bottom up.

Running drainaquifer again does nothing.

Is there a way to remove these manually using other commands?

How about to remove the water it spawned?
Logged

ag

  • Bay Watcher
    • View Profile
Re: DFHack drainquifer problem... anyway to do it manually?
« Reply #1 on: November 22, 2012, 11:13:44 am »

Create some obsidian with liquids to plug the hole. Use the same to erase water. With dfhack r2 there even is a gui/liquids script:



Also maybe upload the fort so we can see what's wrong with drainaquifer.
« Last Edit: November 22, 2012, 11:16:34 am by ag »
Logged

ShuangXi

  • Bay Watcher
    • View Profile
Re: DFHack drainquifer problem... anyway to do it manually?
« Reply #2 on: November 22, 2012, 11:52:36 am »

Thanks.

I'm trying it upload the save, but it's going so slow.  Will post back when it's up.

Note:  I did use liquids to erase the water and flows, but in one mined out tile, it just won't quit.  I can make it stop, but anytime some action happens there (like a dwarf walks through it), it starts up again.
Logged

ShuangXi

  • Bay Watcher
    • View Profile
Re: DFHack drainquifer problem... anyway to do it manually?
« Reply #3 on: November 22, 2012, 12:12:15 pm »

Here's the link

http://dffd.wimbli.com/file.php?id=7161

I think it will be easier to see if you run 'reveal' first
Logged

Olly

  • Escaped Lunatic
    • View Profile
Re: DFHack drainquifer problem... anyway to do it manually?
« Reply #4 on: February 24, 2013, 04:27:18 pm »

I have had this problem, too.

I solved it by editing hack>scripts>drainaquifer.rb so that the if-statement checks for "b.designation\[x\][y].water_table" for every x and y between 0 and 15, inclusive.  (Doubtless it can be done with a loop, but I just wrote out all the possibilities, since I'm not familiar with Ruby.)

The result takes significantly longer and may very well be overkill, but is seems to work.  The script looks like this now:

Spoiler (click to show/hide)
« Last Edit: June 11, 2013, 11:26:07 am by Olly »
Logged