Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: water fortification bug?  (Read 1187 times)

Kami

  • Bay Watcher
    • View Profile
water fortification bug?
« on: June 18, 2009, 03:51:04 am »

==Water and Fortification - BUG?==

http://mkv25.net/dfma/movie-1407-pressurebugwithfortification

 W≈≈≈##      ## z  0
 ######### z -1
 ######### z -2
 ###≈≈F≈≈### z -3
 ########### z -4

 W - Water from a water source
 # - Solid wall
 ≈ - Water
 F - Fortification

Because of the fortification, the water does not go up to the z-level it came from.

df_28_181_40d_s
Logged

Karlito

  • Bay Watcher
    • View Profile
Re: water fortification bug?
« Reply #1 on: June 18, 2009, 04:00:37 am »

I'm not actually sure if that counts as a system under pressure.  Can you say for certain that the fortification is causing it?  What happens if you remove the fortification?
Logged
This sentence contains exactly threee erors.

Kami

  • Bay Watcher
    • View Profile
Re: water fortification bug?
« Reply #2 on: June 18, 2009, 06:10:26 am »

Ok, i didnīt test it before, you are right. If you have no fortification, the behaviour is the same. Didnīt expet it, so didnīt try. There is something wrong in general...
Logged

Kittah_Khan

  • Bay Watcher
    • View Profile
Re: water fortification bug?
« Reply #3 on: June 18, 2009, 06:43:42 am »

True, the current system is hardly perfect, but it works fairly well in most cases.

Another example of the current system being broken is found by tunneling into an ocean from the bottom, your fortress will be flooded in a single frame.
Logged

Draco18s

  • Bay Watcher
    • View Profile
Re: water fortification bug?
« Reply #4 on: June 18, 2009, 11:31:34 am »

Ok, i didnīt test it before, you are right. If you have no fortification, the behaviour is the same. Didnīt expet it, so didnīt try. There is something wrong in general...

No, nothing is wrong.  This is exactly how pressure works.  Consider this:


...#...
##.#7##
##7#7##
##7#7##
##777##
#######


Under the current system that is stable.  Under your assumption of how pressure works, that top level 7 would jump back and forth between the two highest points.  Under a realistic system it would split in half and be a 3 on both sides.

Why is it stable?  Because pressure is that if there is a 7 in a non-stable system it looks for a location connected to water that is not stable, is a 7, and is adjacent to un-watered area.  If it finds one, it teleports.  It never checks its own z-level because then it could teleport back.
Logged

Kami

  • Bay Watcher
    • View Profile
Re: water fortification bug?
« Reply #5 on: June 19, 2009, 03:29:54 am »

This may be how pressure works in the game.
But that doesnīt make it "right". ;)

I admit that this could be considered as "Itīs not a bug, itīs a feature.", because it is the defined behaviour, and working as defined. But it should be changed if possible.
True, the current system is hardly perfect, but it works fairly well in most cases.

PS: In my example there is a watersource on one side, so a circular teleporting would be prevented either. But also a balancing between both sides should be possible. The actual system seems more than a little bit curious. I know this is hardest work, and I have greatest respect for it. But it should be changed.

Is there any deeper documentation of how it works?
Logged

Draco18s

  • Bay Watcher
    • View Profile
Re: water fortification bug?
« Reply #6 on: June 20, 2009, 02:20:03 pm »

Is there any deeper documentation of how it works?

One of the interviews with Toady that showed up as a transcript had a nice picture or three.  I've forgotten where to find it though.
Logged