The International Simutrans Forum

Development => Bug Reports => Topic started by: gauthier on July 21, 2014, 06:08:22 PM

Title: [S.RC 120.0, r7175] Can't extend tunnel upward
Post by: gauthier on July 21, 2014, 06:08:22 PM
I have an underground track and I want to extend it upward. I use the appropriate cliff tool on a dead end to turn it into a slope going upward. Then I can't build track from the upper end of the slope, neither in underground view nor in sliced view.

(Using pak128 [r?] - couldn't commit it :/ - but also happens with older versions of it).
Title: Re: [S.RC 120.0, r7175] Can't extend tunnel upward
Post by: Ters on July 21, 2014, 08:54:19 PM
I wonder if this has ever worked, because I can't remember building upwards, only downwards. It might just be because I can't see the slope when at the upper level.
Title: Re: [S.RC 120.0, r7175] Can't extend tunnel upward
Post by: Aquin on July 21, 2014, 09:42:11 PM
In 112.3 you can do the following (just tested it with 112.3 and pak128):
- create some dead end tunnel
- convert the dead end into a upward slope
- click and hold on that slope
- change level 1 up
- drag some tunnel road
Title: Re: [S.RC 120.0, r7175] Can't extend tunnel upward
Post by: kierongreen on July 21, 2014, 09:47:05 PM
I also encountered this in pak64 although I never found this problem in pak128.Britain.

--

Edit: Now confirmed in both pak64 and pak128.Britain. This must be a recent change that someone has made as this was working previously.
Title: Re: [S.RC 120.0, r7175] Can't extend tunnel upward
Post by: gauthier on July 22, 2014, 08:23:41 AM
Quote from: Aquin on July 21, 2014, 09:42:11 PM
In 112.3 you can do the following (just tested it with 112.3 and pak128):
- create some dead end tunnel
- convert the dead end into a upward slope
- click and hold on that slope
- change level 1 up
- drag some tunnel road
What is the key to change level in sliced view ? I can only do this through the display settings.
Title: Re: [S.RC 120.0, r7175] Can't extend tunnel upward
Post by: Ters on July 22, 2014, 08:25:52 AM
It would make a lot more sense if one could actually see the slope one was supposed to continue building from, but that's a digression I guess, and perhaps a small can of worms.

Quote from: gauthier on July 22, 2014, 08:23:41 AM
What is the key to change level in sliced view ? I can only do this through the display settings.

+ and -
Title: Re: [S.RC 120.0, r7175] Can't extend tunnel upward
Post by: gauthier on July 22, 2014, 10:44:37 AM
Quote from: Ters on July 22, 2014, 08:25:52 AM+ and -
Doesn't work in pak128, these keys change brightness instead.
Title: Re: [S.RC 120.0, r7175] Can't extend tunnel upward
Post by: captain crunch on July 22, 2014, 12:22:03 PM
Quote from: gauthier on July 22, 2014, 10:44:37 AM
Doesn't work in pak128, these keys change brightness instead.
Pressing the Function key F1 should open a window that shows which key does what. Maybe the keys PageUp and PageDown let you switch the underground level.

Title: Re: [S.RC 120.0, r7175] Can't extend tunnel upward
Post by: captain crunch on July 22, 2014, 12:28:10 PM
Quote from: Ters on July 22, 2014, 08:25:52 AM
It would make a lot more sense if one could actually see the slope one was supposed to continue building from, but that's a digression I guess, and perhaps a small can of worms.
It works with building a down slope, the slope is visible in the level below. When building an up slope, the track is not visible in the level above, though.
Another bug seems to be that when one build a down slope, it is possible to connect a horizontal track on that point, i.e.:

Build down slope:
_____
     \

Connect on that point:
__________
     \


Title: Re: [S.RC 120.0, r7175] Can't extend tunnel upward
Post by: Fabio on July 22, 2014, 05:00:31 PM
Do you have enough underground levels above?


Sent from my iPhone using Tapatalk
Title: Re: [S.RC 120.0, r7175] Can't extend tunnel upward
Post by: gauthier on July 22, 2014, 05:22:32 PM
Quote from: captain crunch on July 22, 2014, 12:22:03 PM
Pressing the Function key F1 should open a window that shows which key does what. Maybe the keys PageUp and PageDown let you switch the underground level.
I didn't even think to that ... it was "end" and "home" keys.

QuoteIn 112.3 you can do the following (just tested it with 112.3 and pak128):
- create some dead end tunnel
- convert the dead end into a upward slope
- click and hold on that slope
- change level 1 up
- drag some tunnel road
-> doesn't work in RC 120 :/
Title: Re: [S.RC 120.0, r7175] Can't extend tunnel upward
Post by: kierongreen on July 24, 2014, 05:30:10 PM
This behaviour started in commit 6966:

r6966 | dwachs | 2013-12-06 15:23:26 +0000 (Fri, 06 Dec 2013) | 1 line

FIX: tunnel building works correctly with (possibly double) underground slopes


Trying to sort out what went wrong with this...
Title: Re: [S.RC 120.0, r7175] Can't extend tunnel upward
Post by: kierongreen on July 24, 2014, 07:52:26 PM
Right - think that's solved now in 7268. I'm not sure why the changes made in 6966 were as extensive as they were - a lot of the extra code added seems unnecessary. I more or less reverted the affected sections of code to r6965, then added new code in to check for steep slopes. This seems to work fine with both pak64 and pak128.Britain.

Apologies to Dwachs if I misunderstood the intention behind his changes in 6966.
Title: Re: [S.RC 120.0, r7175] Can't extend tunnel upward
Post by: gauthier on August 01, 2014, 11:01:35 AM
r7268 is still not available on nightly site, is that intended ?
Title: Re: [S.RC 120.0, r7175] Can't extend tunnel upward
Post by: Ters on August 01, 2014, 03:54:05 PM
I'm not sure the one responsible for the nightlies regularly reads this forum. Only he can tell. He might be more active on the German forum.
Title: Re: [S.RC 120.0, r7175] Can't extend tunnel upward
Post by: prissi on August 01, 2014, 10:56:29 PM
There are currently no new nightlies for technical reasons for about three weeks. So you have to compile yourself or wait until the nightly generation works again.
Title: Re: [S.RC 120.0, r7175] Can't extend tunnel upward
Post by: An_dz on August 02, 2014, 02:51:03 PM
Here's a compiled r7277 Windows GDI (http://simutrans-germany.com/files/upload/simgdi-r7277.7z).
And here's makeobj (http://simutrans-germany.com/files/upload/makeobj-r7277.7z).
Title: Re: [S.RC 120.0, r7175] Can't extend tunnel upward
Post by: gauthier on August 05, 2014, 09:29:56 AM
Thanks for uploading. Building underground slope upwards is still impossible for me :/
Title: Re: [S.RC 120.0, r7175] Can't extend tunnel upward
Post by: kierongreen on August 05, 2014, 10:05:38 AM
Anyone else having this problem?
Title: Re: [S.RC 120.0, r7175] Can't extend tunnel upward
Post by: gauthier on August 05, 2014, 11:05:10 AM
Is it possible to make the game automatically build a piece of track just after the upper end of the slope, in the same manner building a tunnel entry builds a piece of track just after the entry ?
Title: Re: [S.RC 120.0, r7175] Can't extend tunnel upward
Post by: Ters on August 05, 2014, 11:21:03 AM
Quote from: gauthier on August 05, 2014, 11:05:10 AM
Is it possible to make the game automatically build a piece of track just after the upper end of the slope, in the same manner building a tunnel entry builds a piece of track just after the entry ?

It will be a bit bothersome to clean up if one accidentally uses the wrong tool, but I think the benefits outweigh it. This will also give an error if there is no room to continue building on the next level.

Quote from: kierongreen on August 05, 2014, 10:05:38 AM
Anyone else having this problem?

Full underground works, sliced underground does not work. r7281
Title: Re: [S.RC 120.0, r7175] Can't extend tunnel upward
Post by: kierongreen on August 05, 2014, 03:23:06 PM
QuoteFull underground works, sliced underground does not work. r7281
Ah that explains it - I hardly ever used sliced view. That's a separate issue then to do with displaying slopes from tiles below. I'll work on that.
Title: Re: [S.RC 120.0, r7175] Can't extend tunnel upward
Post by: kierongreen on August 05, 2014, 05:41:02 PM
7282 should show slopes from the level below hence allowing you to extend upward slopes in sliced mode as well.