PDA

View Full Version : Linking signals



Mordachai
April 29th, 2009, 03:19 PM
I'm experimenting a bit with signaling and have among othe things tried the "Trigger Multiple Signals" rule which I find bit labourous to use.

Is there any simple rule or such to link signals, i.e. one sets the state of the other? I'm not a programer but It feels like a fairly simple thing to do?

This would be very useful on single track routes for instance.

Cheers


Edit: There is an old rule called "Junction controller" from 2004 that is able to interlock junctions, would it be possible to use this to make something for signals perhaps? Maybe it's time for me to learn some programing... :)

/Mord

angelah
April 30th, 2009, 04:52 AM
I wish this were the case.

Many moons ago I suggested that there were more controls attached to a signal as it is placed, for instance a small menu that would afford you some options like linking to another signal and so switching it to Clear, and also to a point (switch) so that as the signal you are placing change to red it would change the point ahead to another track and set that tracks signal to Clear (green) and release a consist (train) automatically.

This option was available way-back-when in a program called EEP so it sould have been possible to impliment it into Trainz.

As far as I know there is no way to link signals, but I may be proved wrong...

Angela

stagecoach
April 30th, 2009, 07:45 AM
What would be the purpose of one signal linking to another? If its to control signals on a single line then try the static block rule by Wulf 9

Mordachai
April 30th, 2009, 10:59 AM
Without going into details I think there would be several types of crossings where interlocking singals would be a great asset.

I'm no expert but wouldn't it be useful to avoid cornfield meets as well.

I haven't tried the "static block rule" yet, but I'll be sure to do that!

Can't be a bad thing to have some more signal options, right? :)

john259
April 30th, 2009, 11:22 AM
GameScript includes all these functions:
Trackside.GetSignalState()
Junction.GetDirection()
Navigate.SetSignal()
Navigate.LockJunction() (this one sets a junction's direction)

I haven't tried it but I think it's highly likely that a TRS2004 scenario could monitor objects and change the state of other objects as a result. Therefore AFAIK it should be possible for someone with enough programming knowledge to create a Rule which does the same thing. But I must stress that this is all unproven theory and there may be some difficulty with it that I am not aware of.

John

norfolksouthern37
April 30th, 2009, 11:49 PM
I'm experimenting a bit with signaling and have among othe things tried the "Trigger Multiple Signals" rule which I find bit labourous to use.

Is there any simple rule or such to link signals, i.e. one sets the state of the other? I'm not a programer but It feels like a fairly simple thing to do?

This would be very useful on single track routes for instance.

Cheers


Edit: There is an old rule called "Junction controller" from 2004 that is able to interlock junctions, would it be possible to use this to make something for signals perhaps? Maybe it's time for me to learn some programing... :)

/Mord


i have one that works exactly like the junction controller. you drop the cube down in surveyor and tell it what signals to link together. one as a parent and the other as a child. there are two ways of doing this. one way the child signal will display exactly what the parent signal does, and the other way is that it only clones the danger state, under any other aspect they are automatic (normal). it was a small side project that never really got developed fully but it would be worth a try.

get it here (http://www.jointedrail.com/content/Freeware/Trackside/SignalLink.cdp) and let me know how it goes.

i also have a token block controller that is very similar but is more complex to set up, you can have multiple triggers and signals.

Mordachai
May 1st, 2009, 01:46 AM
Sounds very promising!

I'm at work at the moment and going away for a few days but I hope I'll be able to test it during the weekend.

Is there any word on if they'll improve signalling in TRS2009 EE and/or TRS X?

Cheers!

Lots_Trains
May 1st, 2009, 02:13 AM
Hi :wave:

Signaling 09 has been improved check the Trainz Dev wiki. You can now run repeaters really well

Cheers

Lots :wave:

sauleve
May 2nd, 2009, 10:10 AM
I wonder if someone can point me to a rule to solve a puzzle in TS 2009. What I'm after is the logic ..

when switch set to left -- signal is auto
when switch set to right -- signal is red

even better would be..

when svar =0 -- signal is auto
when svar =1 -- signal is red

Kennilworth
May 2nd, 2009, 11:24 AM
Hi sauleve

You would be able to do both these things using the SCS2006 rule (assuming you are using 2006 or later) There is a set signal state command in there that allows you to set a signal to red, yellow, green or automatic. You can set variables and use an If....Else statement to allow different actions to occur depending on how a variable is set.

Regards

Brian

sauleve
May 2nd, 2009, 11:40 AM
Thanks Kennilworth, sorry should have said I'm trying to do things without using the SCR2006 rule, I may have to admit defeat on that one though :confused:

stagecoach
May 2nd, 2009, 04:41 PM
Thanks Kennilworth, sorry should have said I'm trying to do things without using the SCR2006 rule, I may have to admit defeat on that one though :confused:

Yes there is a rule that sets the signal depending on the way a junction is set. The creator James Thorpe though never releasded it on the DLS. It was called switch signal rule and ive used it a lot on my routes. Did suggest that it was uploaded but nothing came of it.

Mordachai
May 9th, 2009, 02:23 AM
i have one that works exactly like the junction controller. you drop the cube down in surveyor and tell it what signals to link together. one as a parent and the other as a child. there are two ways of doing this. one way the child signal will display exactly what the parent signal does, and the other way is that it only clones the danger state, under any other aspect they are automatic (normal). it was a small side project that never really got developed fully but it would be worth a try.

get it here (http://www.jointedrail.com/content/Freeware/Trackside/SignalLink.cdp) and let me know how it goes.

i also have a token block controller that is very similar but is more complex to set up, you can have multiple triggers and signals.

Hi,
Thank you very much for the Junction Linker! Now I've had the time to try it out a bit and it duplicates the signal state just as you described. I'm having one "slight" problem though; The signal child signal changes to "danger" nicely when the parent singal is at "danger" but it will not go back to "clear" whent he parent signal does, maybe I'm doing something wrong?

Is the block controller you mention by any chance available at the DLS?

Cheers!

/Fredrik

train20
December 14th, 2012, 08:01 PM
hey norfollsouthern37 i was wondering if the signal linker whould make the signals change from one signal block to the other signal block.