News:

Use the "Forum Search"
It may help you to find anything in the forum ;).

[patch] support for broad tunnel portals

Started by gerw, October 10, 2009, 11:28:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gerw

With this patch, one can define tunnels, which have also a broad portal (if you build two or more tunnels on neighboured slopes, they will have another image).

The dat is like (you need a new makeobj)
Obj=tunnel
Name=RailTunnel
copyright=Timothy Baldock
waytype=track
cost=100000
maintenance=5000
topspeed=120
max_weight=100
intro_year=1825
intro_month=1
retire_year=2000
retire_month=1
icon=> box-tunnel.2.3
cursor=box-tunnel.2.2
BackImage[N]=box-tunnel.2.0
BackImage[S]=-
BackImage[E]=-
BackImage[W]=box-tunnel.2.1
BackImage[Nl]=box-tunnel.2.0
BackImage[Sl]=-
BackImage[El]=-
BackImage[Wl]=box-tunnel.2.1
BackImage[Nr]=box-tunnel.2.0
BackImage[Sr]=-
BackImage[Er]=-
BackImage[Wr]=box-tunnel.2.1
BackImage[Nm]=box-tunnel.2.0
BackImage[Sm]=-
BackImage[Em]=-
BackImage[Wm]=box-tunnel.2.1
FrontImage[N]=box-tunnel.0.0
FrontImage[S]=box-tunnel.0.2
FrontImage[E]=box-tunnel.0.3
FrontImage[W]=box-tunnel.0.1
FrontImage[Nl]=box-tunnel.4.0
FrontImage[Sl]=box-tunnel.4.2
FrontImage[El]=box-tunnel.4.3
FrontImage[Wl]=box-tunnel.4.1
FrontImage[Nr]=box-tunnel.6.0
FrontImage[Sr]=box-tunnel.6.2
FrontImage[Er]=box-tunnel.6.3
FrontImage[Wr]=box-tunnel.6.1
FrontImage[Nm]=box-tunnel.5.0
FrontImage[Sm]=box-tunnel.5.2
FrontImage[Em]=box-tunnel.5.3
FrontImage[Wm]=box-tunnel.5.1

The images with single character are the normal 'small' tunnels. *r stands for the right, *l the left and *m for the middle part of a broad tunnel. It works also with winter images.

www.tu-chemnitz.de/~gerw/patches/broad_tunnel.patch

Due to my limited graphic skills, the picture isn't very nice, but it shows the possibilities.

mobo

Nice new feature!

Though I'm not really looking forward to drawing new tunnels, It's not very amusing to do.

But once someone did it they'll look nice i hope.

The Hood

That looks great - I remember asking for something like that a couple of years back :)  Would it be possible to do something similar for bridges as well?

gerw

Quote from: The Hood on October 10, 2009, 12:29:43 PM
Would it be possible to do something similar for bridges as well?
Sure. But somebody has to code it :)

The Hood

Quote from: gerw on October 10, 2009, 03:57:57 PM
Sure. But somebody has to code it :)

One of these days they will invent something that means when you come up with an idea it codes itself automatically...

What I was actually getting at was, if you have already coded something for tunnels, how similar is it to code something similar for bridges?  Does it re-use the same sort of code or is it completely different?  Obviously I was hoping it was the former, but given I my knowledge of C++ is one letter and two mathematical symbols, you never know!

prissi

Since bridges have also middle tiles and pillars and could (at least form the codebase) also intersect, the briges will be more complex.

Fabio

great! wonderful! awesome!

I will definitely use it for some of the road tunnels under designing and for all the railways tunnels (a longer-in-time project, though)...

prissi

After finally drawing something this is in the nightlies in r3142

gauthier

Very nice feature  :o
You gave me work, now I have to adapt MLM dev. tunnels for pak128  ;D ... In fact I will completely remake them because they're simply ... horrible  :-X