tunnel under sloped ground?

Got an idea for a new feature in TTDPatch? Post it here.

Moderator: TTDPatch Moderators

Post Reply
Altarius
Engineer
Engineer
Posts: 1
Joined: 16 Mar 2010 15:32

tunnel under sloped ground?

Post by Altarius » 16 Mar 2010 15:44

hi everyone,
i searched the forum for some hours now, but couldn't find anything so i'll post a new thread.

because it's difficult to translate it totranslate everything without loosing the meaning, i start with a picture first
Image

the idea is, to have some arcaded tracks where normally no tunnel can be build.
what do you think about this?

ZxBiohazardZx
Tycoon
Tycoon
Posts: 1534
Joined: 14 Mar 2006 12:46
Location: Netherlands
Contact:

Re: tunnel under sloped ground?

Post by ZxBiohazardZx » 24 Mar 2010 15:26

problem is that the train isnt visable anymore, it just disappears and comes back if im correct, so there would be issues with where the train is in the tunnel, and some overlay issues

but then again im not 100% sure on that

User avatar
cmoiromain
Chief Executive
Chief Executive
Posts: 655
Joined: 15 Jan 2007 21:45
Location: FRANCE
Contact:

Re: tunnel under sloped ground?

Post by cmoiromain » 27 Mar 2010 17:33

That is indeed one problem. But not the main: we could replace that with a concrete wall. The problem is the coding.
I am little, ugly, and nasty. How do you do?

User avatar
JGR
Tycoon
Tycoon
Posts: 1947
Joined: 08 Aug 2005 13:46
Location: Ipswich

Re: tunnel under sloped ground?

Post by JGR » 27 Mar 2010 21:32

The real problem is that it totally breaks the existing assumption on how land altitude and slope is stored in the landscape array.

Only one altitude is stored per tile (the north corner). The net effect of this is that discontinuous landscapes like you're suggesting aren't really possible.
This cannot realistically be changed, and trying to make an edge case for the tunnels like that would be hideous and ugly to code, as well as computationally expensive. (Hacks like scanning the map array for tunnels when working out altitudes and slopes (this happens very frequently) would absolutely destroy performance).
Trying to make all the tiles above the tunnel "special" just introduces whole new containers of marine wildlife, and is infeasible due to landscape array constraints (compounded as any tile is possible above a tunnel) and having to basically rewrite half the land and tunnel code.

For these reasons, I have a certain degree of doubt that it'll be implemented in the near future.
Ex TTDPatch Coder, Grumpy Greymuzzle
Avatar by MoonsongWolf.
Patch Pack, Github
Dad-Coder since April 2018

Post Reply

Return to “Suggestions”

Who is online

Users browsing this forum: No registered users and 1 guest