The International Simutrans Forum

 

Author Topic: Underwater tunnel is broken  (Read 2782 times)

0 Members and 1 Guest are viewing this topic.

Offline Yona-TYT ve

  • Devotee
  • *
  • Posts: 1232
    • Simutrans-BLOG
  • Languages: ES
Underwater tunnel is broken
« on: December 09, 2014, 03:58:51 AM »
By lowering the lake level, the underwater tunnel is destroyed.












Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2727
  • Languages: EN
Re: Underwater tunnel is broken
« Reply #1 on: December 09, 2014, 05:08:54 AM »
One of the funniest bugs I have seen lol.

I am guessing when lowering the water level it should check if there is a tunnel directly under and if so then convert it into an artificial wall.

Offline Yona-TYT ve

  • Devotee
  • *
  • Posts: 1232
    • Simutrans-BLOG
  • Languages: ES
Re: Underwater tunnel is broken
« Reply #2 on: December 09, 2014, 05:26:29 AM »
One of the funniest bugs I have seen lol.

I am guessing when lowering the water level it should check if there is a tunnel directly under and if so then convert it into an artificial wall.
:o

Offline kierongreen

  • Dev Team, Coder/patcher
  • Devotee
  • *
  • Posts: 2269
Re: Underwater tunnel is broken
« Reply #3 on: December 09, 2014, 08:05:56 AM »
Rather the check for if tunnels are below seabed should check all 4 corners of a tile not just one....

Offline DrSuperGood

  • Dev Team
  • Devotee
  • *
  • Posts: 2727
  • Languages: EN
Re: Underwater tunnel is broken
« Reply #4 on: December 09, 2014, 12:52:55 PM »
Quote
Rather the check for if tunnels are below seabed should check all 4 corners of a tile not just one....
That means there are two possible ways to handle it.

1. Tunnels that are directly below the surface on an edge of an elevation change result in artificial walls when the water is drained. This would not disrupt any existing tunnels and would be kind of neat to see the tunnel after draining.
2. Tunnels cannot be placed so close to the edges of a lake. As you mentioned it could check all 4 corners of the placed tile checking for clearance so that an appropriate ramp has sufficient place to be created without disrupting the tunnel during draining.

Personally 1 would be the best as it would give you more space next to water for placement of tunnels while still supporting draining and has perfect legacy support (as placement has not changed). 2 would also be a valid way to handle it but could result in several legacy tunnels (placed before the change) existing in invalid places but would stop any more from being made.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 9565
  • Languages: De,EN,JP
Re: Underwater tunnel is broken
« Reply #5 on: December 09, 2014, 11:37:56 PM »
I think the legacy support is not very pressing, since this feature is new and only few games could have it at all. Moreover, at least in pak64 only the public player can drain a lake.

A tunnel should (and does) usually test for full hight with other tunnels. The same shoudl apply for sea beds.