Asymmetric Tunnel Entrances
Posted: 18 Jul 2013 14:15
Hi all;
I did the obligatory scan of suggestions and hadn't come across this before. It was an idea that just came to me as I was playing a very mountainous Canadian Set themed game. I try to mimic realism and have my own house-rules for playing like no-90deg turns and at least 5 tiles before elevation change in track level (climb/descend). This means I get a lot of fun to construct mountain climbing helixes to reach those snowy towns on Arctic maps, with bridges going over tracks and tracks going over tunnels as trains climb and hug the ridges to ascend big mountains.
I've never looked at the oTTD codebase or done any modding of the game, but as a programmer but understand how some of the oTTD systems work mostly from discussions on the forums. I know that the traditional implementation of rail and road tunnels are using 'warps' where the vehicles disappear from the map somehow and proceed from entry to exit point? (I'm not sure how they remain track-able in the vehicle info windows). My suggestion, or question really, is how feasible is it to implement asymmetric tunnel entrance/exit points? My question revolves around three primary cases for the 'asymmetric tunnel entrances' suggestion.
1.) Straight tunnels that can exit at +1/-1 elevation change (similar to how, using bridge heads, bridges can span a section that has a +1/-1 elevation change).
2.) Tunnel portals that are not built on a straight line. For example, a tunnel with a 90-degree or 180-degree curve (this idea came to me in trying to create aesthetic 'helixes' for my mountain climbing game). Could tunnels be made in such a way that two portals could be mapped to each other that are not in a straight line?
3.) Tunnel portals that can be both not in a straight line and not on the same elevation level.
I'm not looking to exploit the tunnel mechanic so that i could have a unit enter a tunnel, make a 180, climb 5 units in elevation, and exit right on top without losing speed... though that would certainly be a neat mechanic to play with too. Anyways I just wanted to record this suggestion to the board and see if the experts had any thoughts regarding difficulty or feasibility. Thanks for your time.
I did the obligatory scan of suggestions and hadn't come across this before. It was an idea that just came to me as I was playing a very mountainous Canadian Set themed game. I try to mimic realism and have my own house-rules for playing like no-90deg turns and at least 5 tiles before elevation change in track level (climb/descend). This means I get a lot of fun to construct mountain climbing helixes to reach those snowy towns on Arctic maps, with bridges going over tracks and tracks going over tunnels as trains climb and hug the ridges to ascend big mountains.
I've never looked at the oTTD codebase or done any modding of the game, but as a programmer but understand how some of the oTTD systems work mostly from discussions on the forums. I know that the traditional implementation of rail and road tunnels are using 'warps' where the vehicles disappear from the map somehow and proceed from entry to exit point? (I'm not sure how they remain track-able in the vehicle info windows). My suggestion, or question really, is how feasible is it to implement asymmetric tunnel entrance/exit points? My question revolves around three primary cases for the 'asymmetric tunnel entrances' suggestion.
1.) Straight tunnels that can exit at +1/-1 elevation change (similar to how, using bridge heads, bridges can span a section that has a +1/-1 elevation change).
2.) Tunnel portals that are not built on a straight line. For example, a tunnel with a 90-degree or 180-degree curve (this idea came to me in trying to create aesthetic 'helixes' for my mountain climbing game). Could tunnels be made in such a way that two portals could be mapped to each other that are not in a straight line?
3.) Tunnel portals that can be both not in a straight line and not on the same elevation level.
I'm not looking to exploit the tunnel mechanic so that i could have a unit enter a tunnel, make a 180, climb 5 units in elevation, and exit right on top without losing speed... though that would certainly be a neat mechanic to play with too. Anyways I just wanted to record this suggestion to the board and see if the experts had any thoughts regarding difficulty or feasibility. Thanks for your time.