Script SC52 Platform warp forward
Script 52: Platform warp forward
This script moves trains in a line stop or off-shift forward along platform, toward exit.
• Key features:
° Two independent triggers: set time(s) of the day, and passing trains
° Three set times possible (two weekdays and one weekend) – total 12 per week
° Can add time zone adjustment to use local time
° Configurable interval between train movements. Longer interval emulates single driver moving all trains
° Configurable gap between trains (0.5-3.15m)
° Can limit effect to trains with a set tag only
° Trains warp along platform at 10.8 km/h (3m/s) in 30cm steps
• Use cases:
° Move unassigned trains to front of platform in depot. Works for both through and deadend tracks
° Move trams/buses on a long break to front of platform
° Compact trains on a track from standard 3.15m gap to a shorter gap.
• How it works:
° Trains must be on a station platform created using advanced oversized method.
° Add script to a signal trains pass through (e.g. platform departure signal). Script activates on train passing and will run at either next set time of the day or after a short period following train passing ("Time between moves")
Place a marker at desired 1st train’s head stop position. IMPORTANT: Ensure marker arrows point toward exit.
° Check "Run on each train" box to move trains after each departure.
° Fill time(s) to move trains at desired times (weekday or weekend). Train passing and time triggers can be active simultaneously.
° Set shortest train length to scan the platform.
• Deployment notes:
° Script scans platform front to end at train length steps. Scan starts after "Time between moves" following trigger.. Detected trains are assessed for warping towards marker. Trains are warped in 30cm steps aiming to bring within +/-15 cm of target.
° Trains are positioned at the desired gap from each other (0.5-3.15m). If trains crawl upon each other or if you have collisions reported, increase the gap.
° If a tag is set, train without it (and any trains behind it) will not be warped. Tags are checked for line, train, schedule and shift.
° Platform scan might take a couple of minutes. If another train departs during this time, the scan restarts for fastest warp.
° Maximum platform length 500m.
• How to compact trains on platform (less than 3.15m in between):
° Add script to a signal (path signal, marker) that arriving trains pass.
° Set enough time to give train time to arrive and stop
° Ensure Run on each departure box is checked.
KNOWN ISSUES:
The game does not always timely detect location of a warped train and those around. In one case, a tram that was behind another tram and was due to depart earlier took off, colliding into the tram in front of it. Ultimately both trams departed on their own, but reported 440 collisions 🙂 during the 44 seconds this situation continued. This is non-standard game behavior. If you experience issues, please let me know. Also try to increase the gap between trains to the standard 3.15m.