The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Yona-TYT on October 10, 2016, 01:54:01 AM

Title: [Tutorial] I can not build a tunnel
Post by: Yona-TYT on October 10, 2016, 01:54:01 AM
For some reason I can not build a tunnel here.


Scenario: Tutorial-ch3.zip (http://www.mediafire.com/file/336ut0s3ytp167q/Tutorial-ch3.zip)
Savegame: Tutorial3.sve (http://www.mediafire.com/file/yqrw13jujj4u42h/Tutorial3.sve)


(https://www.mediafire.com/convkey/e8d2/891jwtx73pw9pff6g.jpg)
Title: Re: [Tutorial] I can not build a tunnel
Post by: DrSuperGood on October 10, 2016, 02:37:49 AM
There is a rail on that slope. The rail is only a single height incline rail and it is on a double height slope (bug, should not be possible/allowed). Tunnel entrances are not allowed on single height inclines hence a tunnel entrance cannot be built.

To build a tunnel entrance in pak128 using rails, or any other ways which only support single height inclines, one has to build the tunnel on a clear double height incline and then drag the way to the tunnel mouth to form a connection.
Title: Re: [Tutorial] I can not build a tunnel
Post by: Yona-TYT on October 10, 2016, 08:56:32 AM

@DrSuperGood

I do not think that's the problem, I tried without the script and it works well, also remove the rails and the message is the same.
Something very strange is happening here.


(https://www.mediafire.com/convkey/1d59/barv1w76qdalhx76g.jpg)
Title: Re: [Tutorial] I can not build a tunnel
Post by: Tjoeker on October 10, 2016, 10:30:03 AM
Tunnels need to start on double height slopes, not a single height. ;)
As everything needs a clearence of 2 heights in simutrans, otherwise half of the tunnel would stick out...
Title: Re: [Tutorial] I can not build a tunnel
Post by: Spenk009 on October 10, 2016, 10:58:52 AM
Check that the other end of the tunnel is a slope that is at the correct height and steepness for an exit/entrance to be built. The solution to your issue is to hold CTRL while constructing the tunnel entrance to only build an entrance.
Title: Re: [Tutorial] I can not build a tunnel
Post by: Yona-TYT on October 10, 2016, 01:16:03 PM

I solved the problem was that the the other side of the tunnel trying changed the ground, but this tool is restricted.


The solution  is simply modify the savegame so that in the tunnel is not generate a terraforming to the other end. ;)
Title: Re: [Tutorial] I can not build a tunnel
Post by: DrSuperGood on October 10, 2016, 03:52:30 PM
Quote
The solution  is simply modify the savegame so that in the tunnel is not generate a terraforming to the other end.
So was this a scripting issue or a game mechanics issue?

One can start tunnels as Spenk009 suggested. This gives full control over exit placement.
Title: Re: [Tutorial] I can not build a tunnel
Post by: Yona-TYT on October 11, 2016, 12:51:41 AM

@DrSuperGood
Actually it was my mistake, I did not know that the terraforming of the tunnels was detected by "is_work_allowed_here".  :o


@Dwachs
if you want you can eliminate this theme.
Title: Re: [Tutorial] I can not build a tunnel
Post by: Dwachs on October 11, 2016, 06:26:31 AM
Quote from: Yona-TYT on October 11, 2016, 12:51:41 AM
Actually it was my mistake, I did not know that the terraforming of the tunnels was detected by "is_work_allowed_here".  :o
I did not know that either.