Can I make trains wait if a similar train is already in the station
Moderator: OpenTTD Developers
Can I make trains wait if a similar train is already in the station
Hi all,
I have a refinery producing petrol, chemicals and plastic. These are being transported a fair distance to their respective destinations. I have a 3 platform station at the refinery for these trains to pickup their loads.
The trouble I have is that I need about 4 trains of each produce type (a total of 12 trains) to service the output from the refinery. However, if all 4 trains of one type, say petrol, arrive at the same time, they occupy all 3 platforms, meaning that other produce trains are delayed. I know I can solve this by having multiple lines into the stations with waypoints so that I allocate specific platforms to specify produce, but this gets messy and I need very long lead-in lines.
So I'm wondering, is there some way of setting up conditional orders so that trains wait in a siding (or better yet a depot) IF there is already a train of the same produce in the station? This way I would only ever need 3 platforms to service an unlimited number of trains of each produce type.
Cheers,
Chris.
I have a refinery producing petrol, chemicals and plastic. These are being transported a fair distance to their respective destinations. I have a 3 platform station at the refinery for these trains to pickup their loads.
The trouble I have is that I need about 4 trains of each produce type (a total of 12 trains) to service the output from the refinery. However, if all 4 trains of one type, say petrol, arrive at the same time, they occupy all 3 platforms, meaning that other produce trains are delayed. I know I can solve this by having multiple lines into the stations with waypoints so that I allocate specific platforms to specify produce, but this gets messy and I need very long lead-in lines.
So I'm wondering, is there some way of setting up conditional orders so that trains wait in a siding (or better yet a depot) IF there is already a train of the same produce in the station? This way I would only ever need 3 platforms to service an unlimited number of trains of each produce type.
Cheers,
Chris.
Re: Can I make trains wait if a similar train is already in the station
Not within "vanilla" OpenTTD, AFAIK.
Conditional orders apply only to a characteristic of the vehicle, so they can't be used to sense the occupancy (or not) of a station.
I know JGRPP (JGR's PatchPack) has a lot of extra functionality, but I've no idea if it includes this.
Conditional orders apply only to a characteristic of the vehicle, so they can't be used to sense the occupancy (or not) of a station.
I know JGRPP (JGR's PatchPack) has a lot of extra functionality, but I've no idea if it includes this.
Re: Can I make trains wait if a similar train is already in the station
Build an overflow depot in front of the station entrance. There is a multitude of designs with varying throughput, complexity and footprint size.
- Attachments
-
- overflow-with-split.png (40.97 KiB) Viewed 3141 times
Last edited by odisseus on 18 Jul 2023 16:05, edited 1 time in total.
My add-ons: • AdmiralAI fix • Persistence for vehicle evolution lines
My pictures: • The animation thread
My pictures: • The animation thread
Re: Can I make trains wait if a similar train is already in the station
This can also be achieved through waypoints, although taking up more space and being limited in the number of waiting trains. It is more realistic, at least if you build it more nicely than I did in this 3-minute craft.
The train waiting is scheduled to visit "Cargo 1" so it cannot proceed. Trains going to Cargo 2 and Cargo 3 can go past just fine. The issue here, of course, is if my holding area has too few lanes but just account for the number of trains in your design.
EDIT: Actually you don't even need the waypoint, just make sure there's a dedicated platform for your drops.
- Attachments
-
- waypoint_holding_area.png (393.78 KiB) Viewed 3175 times
My Scenarios:
Archipiélago Hermoso (Latest Release: Version 3.2)
Turnpike Falls (Latest Release: Version 0.91)
Re: Can I make trains wait if a similar train is already in the station
Overflow depot + waypoint is probably the most compact method. Time tabling your trains so that they're all not running at the same time to the station can also be beneficial, but it takes some work to make it all work out. But a well-regulated network literally running like clockwork is a beautiful thing to behold.
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: Can I make trains wait if a similar train is already in the station
what i would probably do with that requirement description is a 3 track station with 1 platform designated for each cargo type, at the entrance a holding area for 1 additional train of each cargo type (this is also where the waypoints are), and to the entrance of that holding area an overflow depot.
(not included in the drawing: the additional tracks for the overflow depot logic)
Code: Select all
D /-----W1->-P1->-\
->-^-------W2->-P2->------>-
\-----W3->-P3->-/
Re: Can I make trains wait if a similar train is already in the station
Hi All,
thanks for the responses. Looks like waypoints is the way to go.
So, how do I (or can I):
a) allocate a cargo type to a specific platform, or
b) allocate a train(s) to a specific platform?
Is this just with separate lines into the station? or is there some way of allocating them at the station / train level?
I am playing with jgr's patch version.
Cheers,
Chris.
thanks for the responses. Looks like waypoints is the way to go.
So, how do I (or can I):
a) allocate a cargo type to a specific platform, or
b) allocate a train(s) to a specific platform?
Is this just with separate lines into the station? or is there some way of allocating them at the station / train level?
I am playing with jgr's patch version.
Cheers,
Chris.
Re: Can I make trains wait if a similar train is already in the station
What those designs actually show is 3 separate stations placed next to each other.numbat wrote: ↑18 Jul 2023 22:18 Hi All,
thanks for the responses. Looks like waypoints is the way to go.
So, how do I (or can I):
a) allocate a cargo type to a specific platform, or
b) allocate a train(s) to a specific platform?
Is this just with separate lines into the station? or is there some way of allocating them at the station / train level?
I am playing with jgr's patch version.
Cheers,
Chris.
The quickest way to do this, is to create 1 station, then hold down the Ctrl key while placing each of the 2nd and 3rd stations. An extra window will pop up when you release the mouse button, which will give you the option to build it as a separate station or join it to an existing one.
Re: Can I make trains wait if a similar train is already in the station
No, not exactly, although it is true that the loading platforms for each cargo type must be logically separated. This can be achieved by placing waypoints in front of platform entrances. You can build separate waypoints adjacent to each other by pressing Ctrl, just like with the stations.
My add-ons: • AdmiralAI fix • Persistence for vehicle evolution lines
My pictures: • The animation thread
My pictures: • The animation thread
-
- Engineer
- Posts: 7
- Joined: 23 Aug 2022 06:10
Re: Can I make trains wait if a similar train is already in the station
Probably use slots then. Build the holding area and then use programmable signals to push trains into it if they can't acquire the required slot to load some cargo. Using JGR's patch there are other ways to do it, such as slots with conditional orders, but the holding area (so a large fiddle yard/sidings) that can hold all the extra trains is the easiest to set up.
Re: Can I make trains wait if a similar train is already in the station
Hi All,
thanks for the responses. I have currently done it with some long lead tracks and waypoints, but might start building some overflow depots soon.
Found this interesting video on how to use slots with the jgr patch so might try this as well. https://www.youtube.com/watch?v=HW_JTb4HyCI
Cheers,
Chris.
thanks for the responses. I have currently done it with some long lead tracks and waypoints, but might start building some overflow depots soon.
Found this interesting video on how to use slots with the jgr patch so might try this as well. https://www.youtube.com/watch?v=HW_JTb4HyCI
Cheers,
Chris.
-
- Engineer
- Posts: 7
- Joined: 23 Aug 2022 06:10
Re: Can I make trains wait if a similar train is already in the station
From a current game I'm playing (this is with jgrpp-0.53.3)
The yellow train (overflow food #168) will wait in the sidings until the conditional order (highlighted in yellow) is met. To ensure a smooth wait, the train is timetabled to wait for 1 minute at the waypoint. Once the condition is met, the train then approaches the signal in front of it where it attempts to acquire the "Conwy Horse Mkt" slot. This slot has a maximum occupancy of 1 so if two trains (there are three overflow food trains in total) are waiting in the sidings, only one will be dispatched to the station.
Finally, the slot is released when the train leaves the station after picking up a full load.
Just for clarification the overflow food trains can carry 298 tons and the conditional order waits until there are at least 299 tons waiting at the station. As other trains service the station (the red train currently in the station brings in livestock and takes away food), the station builds up a stock of food until it goes over 299 tons when the overflow train(s) are triggered. This example uses slots, programmable signals and conditional orders and works extremely well in practice.
There are many options for conditional orders and programmable signals using jgr's patch pack so it's relatively easy to push trains where you want them, when you want them. EG, you can use a programmable signal in front of a platform to add a penalty if a train doesn't (or does) carry a certain cargo. Means a train will prefer a different platform if it carries eg grain, but can still use that platform if the others are full. Honestly, there is a lot of flexibility for building networks that work much like the real thing.
The yellow train (overflow food #168) will wait in the sidings until the conditional order (highlighted in yellow) is met. To ensure a smooth wait, the train is timetabled to wait for 1 minute at the waypoint. Once the condition is met, the train then approaches the signal in front of it where it attempts to acquire the "Conwy Horse Mkt" slot. This slot has a maximum occupancy of 1 so if two trains (there are three overflow food trains in total) are waiting in the sidings, only one will be dispatched to the station.
Finally, the slot is released when the train leaves the station after picking up a full load.
Just for clarification the overflow food trains can carry 298 tons and the conditional order waits until there are at least 299 tons waiting at the station. As other trains service the station (the red train currently in the station brings in livestock and takes away food), the station builds up a stock of food until it goes over 299 tons when the overflow train(s) are triggered. This example uses slots, programmable signals and conditional orders and works extremely well in practice.
There are many options for conditional orders and programmable signals using jgr's patch pack so it's relatively easy to push trains where you want them, when you want them. EG, you can use a programmable signal in front of a platform to add a penalty if a train doesn't (or does) carry a certain cargo. Means a train will prefer a different platform if it carries eg grain, but can still use that platform if the others are full. Honestly, there is a lot of flexibility for building networks that work much like the real thing.
-
- Traffic Manager
- Posts: 181
- Joined: 19 May 2006 08:23
Re: Can I make trains wait if a similar train is already in the station
In my experience, if you arrange your stations and trains reasonably, you don't need to build any redundant infrastructure to handle congestion at these platforms.
Firstly, examine if there are excessive trains carrying each type of cargo.
Secondly, check if the number of platforms is sufficient. Generally, the number of platforms should be greater than the number of cargo types.
If the supply of goods is explosive rather than continuous, consider using mixed loading for trains.
Firstly, examine if there are excessive trains carrying each type of cargo.
Secondly, check if the number of platforms is sufficient. Generally, the number of platforms should be greater than the number of cargo types.
If the supply of goods is explosive rather than continuous, consider using mixed loading for trains.
My most satisfying game session.
viewtopic.php?p=1267789
viewtopic.php?p=1267789
Who is online
Users browsing this forum: No registered users and 3 guests