Getting trains to park
Posted: Sun Nov 10, 2024 9:16 pm
I would like my trains to, if the stop they're aiming to go to is full, to go to a parking lot instead. So I have the following setup:
- A train is set to go to Green Circuit Pickup until it has full cargo inventory, then Green Circuit Drop until it has empty inventory.
- It has an interrupt, with the condition of Destination Full or No Path
- The Target of this condition is a station called PARKING.
Now, my question is: what condition do I put on the Parking interrupt? There's an unfortunate behavior where if I make it something like 5s has passed, then the condition is filled. Which is fine if it then can't find a path and restarts its Parking interrupt again until a stop is open. But that's not what happens:
- A full Green Circuit train looks for Green Circuit Drop, and does not see one available. So it goes to PARKING.
- Full train waits for 5s.
- Full Green Circuit train heads to the next stop, which is Green Circuit Pickup.
What would you do in my shoes to remedy this?
Other context that's probably relevant: Stops are enabled or disabled by the control behavior of the contents at their stops. If more than one full cargo load is available, the stop becomes available. All stops have a hard-programmed train limit of 1.
- A train is set to go to Green Circuit Pickup until it has full cargo inventory, then Green Circuit Drop until it has empty inventory.
- It has an interrupt, with the condition of Destination Full or No Path
- The Target of this condition is a station called PARKING.
Now, my question is: what condition do I put on the Parking interrupt? There's an unfortunate behavior where if I make it something like 5s has passed, then the condition is filled. Which is fine if it then can't find a path and restarts its Parking interrupt again until a stop is open. But that's not what happens:
- A full Green Circuit train looks for Green Circuit Drop, and does not see one available. So it goes to PARKING.
- Full train waits for 5s.
- Full Green Circuit train heads to the next stop, which is Green Circuit Pickup.
What would you do in my shoes to remedy this?
Other context that's probably relevant: Stops are enabled or disabled by the control behavior of the contents at their stops. If more than one full cargo load is available, the stop becomes available. All stops have a hard-programmed train limit of 1.