PDA

View Full Version : A new idea...



JackClare1995
January 17th, 2014, 07:05 AM
Greetings all,

As some of you may be aware, I have recently been searching for a rule that would allow me to drive a train/tram along a route with another system switching the points/junctions for me so I wouldn't end up flying down some random branchline over yonder. Turns out, that pretty much can not be done.

However, what about a rule that trigger a point/junction to a certain direction when a certain vehicle number passes over it, such as "1001". That way, I'd be able to tell it which trams/trains I'd want it to switch left for, and which I'd want it to switch right for (of course, a tram would then have to stay on the same line all day) but I wonder, is it possible? Has anyone heard of anything like this?

Regards, Jack

fran1
January 17th, 2014, 07:10 AM
If your driving it why not use ctrl j.

JackClare1995
January 17th, 2014, 07:27 AM
It's to attempt to simulate an automatic system used on the Manchester Metrolink where the detectors read the code of the tram, know where it is going and so switch the points accordingly. It's just on those complicated, busy sections where you have a billion signals to look at as well as a load of other trams. I just need a driver command that will switch a junction to a particular state when a tram hits a trigger. I have another tram parked elsewhere on the board with the 'Wait until trigger' command in it's command string, set to 'Wait until trigger Approach is triggered by 1001' but now all I need is a command to tell it to switch Junction 0 to 'right'

Gah, Trainz :(

nicky9499
January 17th, 2014, 07:35 AM
Jack, off the top of my head you can use WaitFor > Trigger > SetPath or SetJunctions and/or in conjunction with SetSignals. Trigger settings determine which train sets it off. Use multiple triggers for different types of trains to trigger different paths.

Cheerio,
Nicholas

oknotsen
January 17th, 2014, 07:39 AM
Sounds like something that could be done by simply using triggers and junction rules. Or at least that's how I do it: Trigger X get triggered by consist Y, which causes junction Z gets switched to the right.

JackClare1995
January 17th, 2014, 07:43 AM
That's pretty much how I've got it set up now. There's an extra tram parked on a separate section of board with the Wait until Trigger command. I just can't find a driver command to switch the junction, or a path rule :( I have the rule called "Path Rule" but that asks for a yard and I get stuck with it :hehe:

Jack

oknotsen
January 17th, 2014, 07:47 AM
A command like "Navigate To Trackmark" will automatically set the junctions along the way. It is up to you to position the Trackmarks in such a way that your tram will take the correct route.

JackClare1995
January 17th, 2014, 07:49 AM
I've tried that but that only works with computer driven trams :( all I need is a basic junction control command, does anyone know of one...do they even exist? :confused:

oknotsen
January 17th, 2014, 07:55 AM
I've tried that but that only works with computer driven trams :( all I need is a basic junction control command, does anyone know of one...do they even exist? :confused:
Didn't Fran already answered that?

If your driving it why not use ctrl j.

JackClare1995
January 17th, 2014, 08:11 AM
I think I may have over-complicated this. Let me start again.

I have a tram on a separate piece of track controlling the alignment to the diverging junctions as I approach them. I have the Wait until Trigger command set up on the separate tram telling it to wait until I hit a certain trigger. I now need to give that tram a command to switch the junction to the left or right when my tram hits that trigger. So for example, I'm approaching Cornbrook. The separate tram (the one controlling the switches for my tram) has this in it's command box:

Wait for Trigger 'Cornbrook Diverge' to be triggered by 1001 (my tram (there is a driver command for this part))

Now I need a command (if there is one) to switch the junction to the left (going to Eccles or MediaCity UK) or right (going to Altrincham or East Didsbury) so the command box looks like this:

Wait for Trigger 'Cornbrook Diverge' to be triggered by 1001
Switch junction Cornbrook Diverge to the (right/left (dependent on which way my tram is intending to travel))

Apologies for being confusing :)

Jack

fran1
January 17th, 2014, 08:39 AM
But your tram is always going to have to go the way the trigger tram is setting that one junction, if you want to go another way you'd have to use ctrl j ( and then stop the trigger activation) and then another trigger tram or trams for the other junctions on the alternative route.
If it's always going to be the same tram your driving oknotsen's post #5 would do the job.
How about the jrsTRF-Path trigger, kuid 2:192081:15:4., description-create paths for your train, set them by trigger.

JackClare1995
January 17th, 2014, 08:55 AM
The way I'd do it would be to create a Schedule library for all the AI vehicles to follow, and then in the schedule library create a schedule to give to the trigger tram with all the Wait until Trigger commands and subsequent Junction control commands in the order of the route. I'd make one for each route to follow and then obviously when I have to go back to the depot at the end of the day I'd create a schedule in the schedule library to send me close to the depot. I've just tried it with the JunctionControl and JunctionFree assets and it worked very well when mixed with AI however I will also have a look at the jsTRF-Path Trigger asset as that may be even better at doing the job in question. Plus, the JunctionControl and JunctionFree assets would limit me to one tram (without changing every Wait until Trigger command every time) so I'm going to have a look at the jsTRF stuff now, thanks very much! :)


Edit: I've just downloaded the jsTRF-Path Control and jsTRF-Path Trigger assets but there seems to be an error with the trigger asset:

No selection for tag 'category-era' in behaviour.
The tag 'path'" in container 'string-table' is empty.
The tag 'przebieg'" in container 'string-table-pl' is empty.

Jack

Kennilworth
January 17th, 2014, 09:28 AM
Hi

Frans suggestion is the way that I would tackle this problem. You set up the possible paths through a junction or junctions and each one is linked to a particular trackmark. All each tram would need would be an Autodrive command to either drive to or through the appropriate trackmark and it will set its own route. I have King's Cross station set up this way on the ECML route and all inbound trains will find their own paths using the appropriate platform trackmark in the Path Trigger rule.

You will need the "jsTRF-Path Control" and "jsTRF-Path Trigger" rules and the "Autodrive" and "PathControl setpath" driver commands which I believe are on the DLS. There is a website http://www.js-home.org/trainz/index.php which has some guides on how to set it all up.

There is a jsTRF-Timetable rule which allows you to set up complete timetables for a route but it takes quite a bit of understanding and it took me a long time to work out how to use it.

If you had been using TS12 I would have suggested using the SCS2013 rule which has some sophisticated decision making commands for situations like this but because of the different structure of route files it won't work in anything below TS12.

Regards

Brian

Regards

Brian

Kennilworth
January 17th, 2014, 09:41 AM
Hi again Jack

Open the config file and look for the tag "category-era-0" which is set to "all". Edit "all" to "2000s" and the error will clear. This error doesn't seem to occur in TS12.

Regards

Brian

trev999
January 18th, 2014, 05:43 AM
Now I need a command (if there is one) to switch the junction to the left (going to Eccles or MediaCity UK) or right (going to Altrincham or East Didsbury)


Jack: Look at driver command Control Junction <kuid:131986:1011>.


Cheers - Trevor

JackClare1995
January 19th, 2014, 08:25 AM
Cheers for the advice guys! I've found what seems like a great method now! I can't thank you all enough, have a pint on me! :D

Jack

fran1
January 19th, 2014, 03:41 PM
Cheers for the advice guys! I've found what seems like a great method now! I can't thank you all enough, have a pint on me! :D

Jack

Had to pay for 5 of my own :eek:. Anyhow have fun going to salford docks (media city).