I've a game built as cities link with train.
I created a refuel station at the center of the map, but my world is still growing and my refueling station is not at the center anymore. So I need to place some new refueling stations. But I wonder if I named all these stations with same name will the game do the most optimize choice, or will my train cross the map randomly to refuel through unknown rules?
How are balanced trains over same-named stations?
How are same-named train station chosen?
-
- Inserter
- Posts: 28
- Joined: Wed Dec 06, 2017 9:20 am
- Contact:
- 5thHorseman
- Smart Inserter
- Posts: 1193
- Joined: Fri Jun 10, 2016 11:21 pm
- Contact:
Re: How are same-named train station chosen?
Trains go to the nearest enabled station with the name. For your refueling example, this should work as you want it. It's a bit harder to finagle same named ore/smelting/delivery stations.
Re: How are same-named train station chosen?
Essentially this - the train goes into whatever station it thinks it will be able to reach the most quickly, accounting for red signals, stations, etc.5thHorseman wrote:Trains go to the nearest enabled station with the name. For your refueling example, this should work as you want it. It's a bit harder to finagle same named ore/smelting/delivery stations.
There are 10 types of people: those who get this joke and those who don't.
-
- Filter Inserter
- Posts: 365
- Joined: Mon Jul 03, 2017 9:14 am
- Contact:
Re: How are same-named train station chosen?
The train will only go to the nearest station.
You can use logic wires and deactivate stations, that have a certain amout of fuel stored.
Once the nearest station has enough fuel it is deactivated and the train will look for the next station.
You should also add some logik that delays the activation.
>station active
>fuel is delivered
>e.g. 200 soild fuel
>station gets deactivated
>solid fuel is less than 50
>activate station
>next fuel delivery
You can use logic wires and deactivate stations, that have a certain amout of fuel stored.
Once the nearest station has enough fuel it is deactivated and the train will look for the next station.
You should also add some logik that delays the activation.
>station active
>fuel is delivered
>e.g. 200 soild fuel
>station gets deactivated
>solid fuel is less than 50
>activate station
>next fuel delivery
Re: How are same-named train station chosen?
You should also design your entire train network from the premise that your trains may suddenly want to turn around at any moment, and should be able to. I always build my rail grid in large hoops. Others prefer to incorporate the ability to do the 180 into their crossings for similar purpose. I also place an "escape" rail from any stacker back to the main railway (so if a station deactivates when there are trains waiting/entering the stacker, they can quickly get back into the grid without waiting for the station to clear).JimBarracus wrote:The train will only go to the nearest station.
You can use logic wires and deactivate stations, that have a certain amout of fuel stored.
Once the nearest station has enough fuel it is deactivated and the train will look for the next station.
You should also add some logik that delays the activation.
>station active
>fuel is delivered
>e.g. 200 soild fuel
>station gets deactivated
>solid fuel is less than 50
>activate station
>next fuel delivery