News:

Want to praise Simutrans?
Your feedback is important for us ;D.

Tram-only signals

Started by gwalch, January 27, 2011, 12:26:39 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gwalch

I hope i post in good topic...

I would create specific tramways signals...so signals for track, but shown on tramways toolbar.
I created a signal, with following datas :
Cursor=signaltram.1.4
Image[0]=signaltram.0.0
Image[1]=signaltram.0.1
Image[2]=signaltram.0.2
Image[3]=signaltram.0.3
Image[4]=signaltram.1.0
Image[5]=signaltram.1.1
Image[6]=signaltram.1.2
Image[7]=signaltram.1.3
obj=roadsign
waytype=tram_track
name=tramway_signal
cost=1500
copyright=Gwalch
is_signal=1


In the game, the signal is shown into tramway toolbar, i can put the signal, but it don't work... It is always red, and tramways ignore the signal ? And i can't put them on classic tracks (probably normal).
I tried to remplace "tram-track" by "track" : signal works well, with tramway tracks and normal tracks, but shown on tracks toolbar... It isn't that i want !

So, is it possible to create tramways specific signals ? Or signals for all tracks, but shown on tramways toolbar ?
French Elements Creator :
-By Rail with trains and trams : X3800 Picasso and BB36000 Astride - trams from Nantes, St Etienne, Strasbourg, Montpellier, Lyon, Bordeaux, Le Mans, Reims...
-By Road with Trucks : Main painter for the "french trucks company", with trucks from 50ies (Willeme "Squale Nose") to 2000 (Renault AE500 "Magnum) and a lot of trailers... and with Trolley and Buses : Irisbus Cristalis, Man Lion's City, Irisbus Magelys...
- Industry : Collaborator for french food with Wine and Cheese...

Erik

Great idea to make signals special for trams.

I believe in the source code, there are no signals for tram-track at all.
So it has to be programmed first.

Mainly it is possible to copy the signals from trains and alter it to trams.

I'm working of something similar by making a new type of signal.
http://forum.simutrans.com/index.php?topic=3713.0
But did not succeed jet. (Still waiting for help. Some one??)


Dwachs

Quote
I believe in the source code, there are no signals for tram-track at all.
So it has to be programmed first.
Yes that is the problem. One has to introduce a special check for tram signals...

For now use railroad signals.
Parsley, sage, rosemary, and maggikraut.

Fabio

Hi,
I tried to make a tram signal with this DATs:

obj=roadsign
copyright=Fabio Gonella
name=Tram_Signals
[b]waytype=tram_track[/b]
cost=500
[b]is_signal=1[/b]
intro_year = 1920
intro_month = 1
# RED
Image[0]=tram_signals.1.0
Image[1]=tram_signals.1.2
Image[2]=tram_signals.1.1
Image[3]=tram_signals.1.3
# GREEN
Image[4]=tram_signals.1.4
Image[5]=tram_signals.1.6
Image[6]=tram_signals.1.5
Image[7]=tram_signals.1.7
Icon=> tram_signals.1.8
Cursor=tram_signals.1.9

it does appear in the tram menu, but:
- it doesn't behave like a signal but like a normal road sign
- it crashes if it's dragged, with the following log:
Message: toolbar_t::init(): ID=32773d
Warning: two_click_werkzeug_t::init:
Message: two_click_werkzeug_t::move: Button: 0, Pos: 70,81,0
Message: two_click_werkzeug_t::move: Button: 0, Pos: 71,81,0
Message: two_click_werkzeug_t::move: Button: 0, Pos: 72,81,0
Message: two_click_werkzeug_t::move: Button: 0, Pos: 73,81,0
Message: two_click_werkzeug_t::move: Button: 0, Pos: 74,81,0
Message: two_click_werkzeug_t::move: Button: 0, Pos: 75,81,0
Message: two_click_werkzeug_t::move: Button: 0, Pos: 75,80,0
Message: two_click_werkzeug_t::move: Button: 1, Pos: 75,80,0
Message: two_click_werkzeug_t::start_at: Setting start to 75,80,0
Message: two_click_werkzeug_t::move: Button: 1, Pos: 75,81,0
Warning: ding_t::~ding_t(): couldn't remove 01712408 from 75,80,0


Václav

... oops ... I am sorry I did not tell you that it is impossible to make signals for trams if I know it - because I know about similar attempt inside French board.

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

Václav

Regardless of topic Tram signals not supported, I would like to know what face of tram signals did you choose.

As I made a little search, it would be good to use these (I chose only one signal):

Russian (but present also in some other countries - including the Czech republic)


British


or I can offer signals from some other countries - as they are described on Wikipedia - but link is to the czech written page; if something would be in need to translate, I can do it

Chybami se člověk učí - ale někteří lidé jsou nepoučitelní

Randy007

Simular in the german-Forum. The normal trainsignal working also on tramtracks. So the idea is to make new tram-images with with rail-dats.

Fabio

Actually programming them with waytype=track works (I knew this)

The problem is, they should NOT appear in train menu (although I set system_type=7) and should appear in tram menu (and only this set, not train normal signals).

Therefore, I move this to Extension Request.

ӔO

in toronto, the streetcar signals are exactly the same as standard road intersection lights, except they're black, don't have collars, doubled and have a sign to the side saying they are for streetcars only.
I'm guessing it was cheaper to just reuse what was available.

you can see them here.

http://maps.google.com/maps?q=spadina+and+college+toronto&hl=en&ll=43.657952,-79.399969&spn=0.001624,0.001996&sll=43.657954,-79.399969&sspn=0.006295,0.006295&layer=c&cbp=13,339.3,,0,27.7&cbll=43.657952,-79.399969&z=19&vpsrc=0&panoid=B3DuiqEs59dCXgLbF4UU3g
My Sketchup open project sources
various projects rolled up: http://dl.dropbox.com/u/17111233/Roll_up.rar

Colour safe chart:

Fabio

waytype=tram_track support for signals is needed before starting painting a tram signals set.

will this be hard to implement?

Lmallet

Quote from: fabio on August 17, 2011, 03:49:00 PM
waytype=tram_track support for signals is needed before starting painting a tram signals set.

Another idea would be to keep it as a track signal, but have a "is_tram_signal" parameter so it shows up in the right menu (that being said, fabio's idea would be simpler for painters/dat file writers, but I take it it would require creating a whole new waytype).

Quote from: AEO on August 17, 2011, 03:43:13 PM
in toronto, the streetcar signals are exactly the same as standard road intersection lights, except they're black, don't have collars, doubled and have a sign to the side saying they are for streetcars only.
I'm guessing it was cheaper to just reuse what was available.
Toronto streetcars are ruled by the Highway Traffic Act, which means they must obey the same signals as cars (not necessarily a good thing).


ӔO

@lmallet

for the sections where there is separation have their own signals, but for the sections that share the road you are correct.
My Sketchup open project sources
various projects rolled up: http://dl.dropbox.com/u/17111233/Roll_up.rar

Colour safe chart:

sdog

@AEO always wondered about that, it's quite distracting for road trafic, isn't it?

+1 to Fabio's extension request, having the tram signals in the tram menu would be quite an advantage.

jamespetts

I, too, agree with this suggestion.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.