There are two general directions:
1. Add a pass-thru-station.
A station is added to the train schedule, where the train must pass thru, before it can go to the next station. Also known as "drive over".
2. Add signals (or other entity) that adds a penalty to the train pathfinder, so that the pathfinder avoids to take that path.
And added since v0.13:ratchetfreak wrote:The goal is to avoid trains from entering stations and passing through when they don't need to. There is currently no way to do sow without designing your network from the ground up to prevent that.
The extra penalty signal should just add a cost to the path that travels through it just like a train on the rails currently does. So if there isn't an alt path the train can pass the signal.
3. Control signals via circuit network. You can set the entry signals to this "forbidden zone" to red and switch green only, if the right train comes.
There are reasons, that speak more to direction #2. For example: With #1 each train must eventually change their schedule, if a new track is added. That is avoided with solution #2, cause you change the track and not the trains. #3 is not so easy and it takes a lot of know how, to find out, how this works. To handle a large number of trains with the pass-thru-stations makes it dependent on another feature "Train Routes". That is never a good idea, cause a route should have nothing to do with the track, that is finally taken! It would mean to loose flexibility of your train network.
For those situations, this won't work (complicated routing, depending on complex situation), there is the idea to have viewtopic.php?f=6&t=13849 Smart rail signals
(which will come with very high probability with v0.13)
viewtopic.php?f=6&t=14030 Rail that pathfinding sees as 100 units long instead of 1
viewtopic.php?f=6&t=18670 How trains choose a station.
viewtopic.php?f=6&t=20037 New option for Rail Stations - No "Through" traffic allowed
viewtopic.php?f=6&t=20233 Add item to define train pathfinding penalty for a railway
viewtopic.php?f=6&t=25944 Train station skipping conditions
viewtopic.php?f=6&t=29978 Allow rail to be connected to the circuit/logistic network
viewtopic.php?f=6&t=30033 Train pathing - forbid passing through stops
viewtopic.php?f=6&t=30239 Treat closed signal identically to red signal
viewtopic.php?f=6&t=32459 Railway Speed Limits
viewtopic.php?f=6&t=40406 Train privilages block
viewtopic.php?f=6&t=43159 Train Station: Option to require stop
viewtopic.php?f=6&t=45971 Train path finding logic (0.15)
viewtopic.php?f=6&t=47695 Train pathfinding on stations with same name
(Taken from viewtopic.php?p=317175#p317175, thanks to Jap2.0)
viewtopic.php?f=6&t=25944#p224447 Train station skipping conditions
viewtopic.php?f=6&t=33195 Train Go-To Conditions
viewtopic.php?f=6&t=49447#p287036 Allow Trains to select their own stop.
viewtopic.php?f=6&t=52484 Detecting Locomotive Fuel Level
viewtopic.php?f=6&t=53454 Train Maintenance Orders
viewtopic.php?f=6&t=53768 Adding a fuel wait condision to trains
viewtopic.php?f=18&t=53927 Advanced train routing
viewtopic.php?f=18&t=54009 A couple of questions about refueling trains
Older suggestions (PRE-0.13!)
You need to know, that the train routing was completely reprogrammed with v0.12, nevertheless some suggestions are useful.
viewtopic.php?f=6&t=1934 [0.8.5] Train Pathfinding Issue
viewtopic.php?f=6&t=7346 Better train logic (smarter alternative route finding)
viewtopic.php?f=6&t=9417 Path Signals
viewtopic.php?f=71&t=13265 Express or Fast train signals
viewtopic.php?f=71&t=13361 Train Routing Logic
viewtopic.php?f=80&t=7717 Can the player be killed by train? (Train kills?!)
viewtopic.php?f=6&t=7787 Train Lines and global filters
viewtopic.php?f=6&t=8707 Better “No Path” feedback for trains
viewtopic.php?f=68&t=10312&start=10 Connect train stops to circuit networks
viewtopic.php?f=6&t=12491 Semi-automatic and extra train options.
viewtopic.php?f=6&t=13849 Smart rail signals
viewtopic.php?f=6&t=15339 Give the first chain signal in a row an outstanding design
viewtopic.php?f=6&t=19764 Setting train orders to create dynamic train routing
viewtopic.php?f=6&t=25683 Visible Rail Blocks
viewtopic.php?f=6&t=38244 Train type sensor
viewtopic.php?f=6&t=44513 Possible way to control a train's next station.
viewtopic.php?f=6&t=50128 New Train-Schedule-Mode / Conditions instead of Train-Stop-Names / Remove Names from Train-Schedule [scheduling based on conditions instead on stop-names]