News:

SimuTranslator
Make Simutrans speak your language.

Bug: Tunnels going overground

Started by HDomos, April 01, 2012, 01:16:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

HDomos

It's easy to produce this:
1. Build a two level heigh artifical plateu

2. Build a tunnel on the secon level in it with ctrl
3. Drag the tunnel off the plateu

Other examples:




It occurs in the latest nightly (r5599) and the experimental version 10.11 too (i tested it in these)

kierongreen

Confirmed in sliced height mode. Working on fix.

kierongreen

simconst.h

// define this to disallow the harbour tunnel feature
//#define ONLY_TUNNELS_BELOW_GROUND

Somehow this got commented out at some point, years ago I think? If ONLY_TUNNELS_BELOW_GROUND is enabled behaviour is as it should be.

isidoro

I think that with sliced mode, building underground should be rethought, even for the ease of GUI.

Normal tracks should be the same under and above ground with overprice the same for all of them when building underground.  Entrance underground should be automatic when in sliced mode.

And entrances on vertical slopes should be allowed, one of the heavy reasons for it being that an overground diagonal track cannot keep diagonal if going underground...


kierongreen

Actually bug (which is same as old habour tunnels) happens in normal underground mode too. Was this left in as a feature - I thought it was removed?

prissi

It was removed, at least this was the intention. It was just shortly after underground mode, I think?

kierongreen

That was what I thought, however the code to allow it is still in trunk (and as can be seen, enabled by default).

Dwachs

Iirc there was consent to leave this "feature" in the code. But I think this was before the underground slopes came. So there is no need to keep it imho.
Parsley, sage, rosemary, and maggikraut.

Dwachs

Parsley, sage, rosemary, and maggikraut.