Hello,
I built a long station for trains of the length 2. I use path signals everywhere but the trains can't find the 4th and 5th set of stations. They are all one station, so that's not the problem. The direction is from bottom to top on the picture. Blue is station, green tunnels and the down rail. Red is normal rail.
As said, the trains don't reach further than the 3rd set of stations. Is there something to change with the AI? Less signal or is it just not possible?
Train path finding to station
Moderator: OpenTTD Developers
-
- Engineer
- Posts: 4
- Joined: 09 Jan 2024 14:31
Train path finding to station
- Attachments
-
- IMG_20240109_153348.jpg
- (4.93 MiB) Not downloaded yet
Re: Train path finding to station
A copy of your save game would be more helpful when trying to diagnose these issues.
Do you like drones, quadcopters & flying toys? Check out Drone Strike Force!
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Base Music Sets: OpenMSX | Scott Joplin Anthology | Traditional Winter Holiday Music | Modern Motion Music
Other Projects: 2CC Trams | Modern Waypoints | Sprite Sandbox & NewGRF Releases | Ideabox | Town Names | Isle of Sodor Scenario | Random Sprite Repository
Misc Topics: My Screenshots | Forgotten NewGRFs | Unfinished Graphics Sets | Stats Shack | GarryG's Auz Sets
Re: Train path finding to station
try to increase this (hidden) setting on the console:
default value is 800 (try doubling that)
it means "try 8 tiles of detour around an occupied platform [tile]". as your station is very long, but your platforms are very short, the accumulated distance penalty for the last platforms might exceed that, so the trains decide it's rather worth waiting for the occupied platform to free up.
warning that messing with pathfinder penalties may result in weird behaviour in other areas of the map, which may be spotted only much later
Code: Select all
yapf.rail_pbs_station_penalty
it means "try 8 tiles of detour around an occupied platform [tile]". as your station is very long, but your platforms are very short, the accumulated distance penalty for the last platforms might exceed that, so the trains decide it's rather worth waiting for the occupied platform to free up.
warning that messing with pathfinder penalties may result in weird behaviour in other areas of the map, which may be spotted only much later
Re: Train path finding to station
This problem can be solved without tweaking the pathfinder. However, you'll have to use pre-signals and perhaps change the station layout a little bit.
You need to place a two-way exit signal at the entrance of each individual platform, and a one-way block signal at the entrance of each platform block. With the two-way end of line setting (which is enabled by default since version 13.0), this will cause the train to skip the taken platform and head on to the next platform or block.
If there are no free platforms at all, the train will pass through the entire station and emerge at the top end without ever stopping. However, with 25 platforms this situation is rather unlikely. You can also add a loop back to the station entrance to give such trains a second chance.
You need to place a two-way exit signal at the entrance of each individual platform, and a one-way block signal at the entrance of each platform block. With the two-way end of line setting (which is enabled by default since version 13.0), this will cause the train to skip the taken platform and head on to the next platform or block.
If there are no free platforms at all, the train will pass through the entire station and emerge at the top end without ever stopping. However, with 25 platforms this situation is rather unlikely. You can also add a loop back to the station entrance to give such trains a second chance.
My add-ons: • AdmiralAI fix • Persistence for vehicle evolution lines
My pictures: • The animation thread
My pictures: • The animation thread
-
- Engineer
- Posts: 4
- Joined: 09 Jan 2024 14:31
Re: Train path finding to station
Thank you very much. Hopefully it won't cause problemsEddi wrote: ↑10 Jan 2024 02:51 try to increase this (hidden) setting on the console:default value is 800 (try doubling that)Code: Select all
yapf.rail_pbs_station_penalty
it means "try 8 tiles of detour around an occupied platform [tile]". as your station is very long, but your platforms are very short, the accumulated distance penalty for the last platforms might exceed that, so the trains decide it's rather worth waiting for the occupied platform to free up.
warning that messing with pathfinder penalties may result in weird behaviour in other areas of the map, which may be spotted only much later
Who is online
Users browsing this forum: No registered users and 6 guests