Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Cascading flood  (Read 405 times)

CogDissident

  • Bay Watcher
    • View Profile
Cascading flood
« on: October 08, 2006, 08:41:00 pm »

Its possible to have a flood fill your fortress  (from a floodgate) and then close the floodgate, and have the water endlessly cascade throughout it, moving in patches while the "unflood" code chases it. I can supply a savegame if Toady needs it. The following example will cascade forever, never actually flooding or unflooding fully.

Example endless room
X = wall
- = empty space
0 = well
F = flood
U = unflood

XXXXXXXXX
X-------X
X--O----X
X-------X
X-------X
X--O--O-X
X-UFF---X
XXXXXXXXX

Logged

Mechanoid

  • Bay Watcher
  • [INTELLIGENT]
    • View Profile
Re: Cascading flood
« Reply #1 on: October 09, 2006, 12:46:00 am »

quote:
Originally posted by CogDissident:
code:
XXXXXXXXX
X-------X
X--O----X
X-------X
X-------X
X--O--O-X
X-UFF---X
XXXXXXXXX


It is odd that it "flows forever" but it could also be explained as the superior engineering of the dwarves. Though, when it happens outside, it is seriously weird.

[Also, where is the placement of the floodgate?]

[ October 09, 2006: Message edited by: Mechanoid ]

Logged
Quote from: Max White
"Have all the steel you want!", says Toady, "It won't save your ass this time!"

CogDissident

  • Bay Watcher
    • View Profile
Re: Cascading flood
« Reply #2 on: October 09, 2006, 01:09:00 am »

Oh, the floodgate is 3 rooms over, that was my meetinghall. A few dwarves opened the door and let the flood and unflood into the rest of my fortress, this stuff cascades up and down every hallway.
Logged

Toady One

  • The Great
    • View Profile
    • http://www.bay12games.com
Re: Cascading flood
« Reply #3 on: October 09, 2006, 09:53:00 pm »

Yeah, I have some saves that exhibit this and I've done it myself.  Just one of those things that needs to be handled at some point.
Logged
The Toad, a Natural Resource:  Preserve yours today!