Railroad crossing earlier closing

marciekemp13

New member
Hello,

I have a question, because I want to know how I can customize that a (railroad) crossing earlier get to close.

Sincerely,
Marc

And that is for: Trainz 2009
 
Search for boat's ATLS crossing assets on the DLS. As far as I'm aware, this is the only system which will allow you to alter the point at which a crossing will operate. It's very flexible and quite easy to use too.
 
Why would you want to adapt the script?

ATLS works for any crossing
No. You cannot modify the script. It's a built-in script called "crossing.gs", and I have tried to modify it. If you do so, the script will not run at all!

Boat's ATLS system works great! And use the BNSF50 (for USA) crossings, you will find that there is a new version that allows you to set the delay from lights flashing to gates closing, when the bells ring, etc.

I use ATLS in the 2-direction 4 trigger system, but I often use more than the required 4 triggers, placing additional triggers at different distances from the crossing, and setting train priority for them. This way, if I have a train that is moving slowly, I set its priority to 2, and it will only activate the crossing when the train hits the priority 2 triggers. If it's a faster train, I set priority to 1, and it activates the more distant triggers.

The only thing I do not like about the ATLS system is that it cannot detect the direction of the train, just that a trigger has been hit. So, if you stop the train on the crossing, or before it reaches the crossing, and then reverse the train, you will get odd results.

I am hoping to work on Boat's script and come up with a way to detect train direction. That would pretty much make the system perfect!
But don't hold your breath for this.

FW
 
No. You cannot modify the script. It's a built-in script called "crossing.gs", and I have tried to modify it. If you do so, the script will not run at all!

Boat's ATLS system works great! And use the BNSF50 (for USA) crossings, you will find that there is a new version that allows you to set the delay from lights flashing to gates closing, when the bells ring, etc.

I use ATLS in the 2-direction 4 trigger system, but I often use more than the required 4 triggers, placing additional triggers at different distances from the crossing, and setting train priority for them. This way, if I have a train that is moving slowly, I set its priority to 2, and it will only activate the crossing when the train hits the priority 2 triggers. If it's a faster train, I set priority to 1, and it activates the more distant triggers.

The only thing I do not like about the ATLS system is that it cannot detect the direction of the train, just that a trigger has been hit. So, if you stop the train on the crossing, or before it reaches the crossing, and then reverse the train, you will get odd results.

I am hoping to work on Boat's script and come up with a way to detect train direction. That would pretty much make the system perfect!
But don't hold your breath for this.

FW

Hi,

If you know scripting you might be able to work something with my Directional Trigger, http://www.auran.com/TRS2004/DLS_viewasset.php?AssetID=173656

Its not an ATLS one though.

I can see there may be a case for an ATLS Directional Trigger. I'll put it on the list!

Boat
 
I'll be looking at it as well. If I can come up with a mod before you do, I'll send it to you.

FW

The main problem is that any mods to the Controller would mean an update.... which would now have to be trainz build 2.7.... Thus making the Controller invisible to earlier versions. Unless I give the new controller a new kuid.

I won't be rushing, so have a go. :)

Boat
 
The only thing I do not like about the ATLS system is that it cannot detect the direction of the train, just that a trigger has been hit. So, if you stop the train on the crossing, or before it reaches the crossing, and then reverse the train, you will get odd results.
FW

Directional triggers still wont solve the problem of a train changing direction on the crossing. It will detect when train enters but not on leaving so total triggers hit will be wrong. In your 4 trigger set up, as long as 4 triggers are passed it works. If you cant pass 4 triggers then use the ATLS trigger command to add the difference, 1 trigger command equals 1 trigger. Just place in the drivers command list.
 
Directional triggers still wont solve the problem of a train changing direction on the crossing. It will detect when train enters but not on leaving so total triggers hit will be wrong. In your 4 trigger set up, as long as 4 triggers are passed it works. If you cant pass 4 triggers then use the ATLS trigger command to add the difference, 1 trigger command equals 1 trigger. Just place in the drivers command list.
TrainzScript has a "trigger enter" event, and a "trigger leave" event, so I think it can be done.

FW
 
The main problem is that any mods to the Controller would mean an update.... which would now have to be trainz build 2.7.... Thus making the Controller invisible to earlier versions. Unless I give the new controller a new kuid.

I won't be rushing, so have a go. :)

Boat
I agree, it would need a new KUID. We don't want to do what N3V seems intent on doing, shutting out those who don't want to upgrade.

FW
 
Back
Top