Page 1 of 1
Lower trainstation priority. Possible?
Posted: Fri May 10, 2024 4:53 pm
by ESI85
I have let’s say 10 stations providing 25 loads of copper plates and 20 stations requesting 49 loads. All provider stations have the same name and all requester stations have the same name.
Out of the 20 requester stations I want to downprioritize let’s say 5 stations. Because I want all other copper requester stations to be prioritized first.
Is this possible?
Re: Lower trainstation priority. Possible?
Posted: Fri May 10, 2024 5:31 pm
by MeduSalem
Well, you could temporarily disable the train stop you want to down-prioritize using a circuit network condition. If you unload the train into a bunch of chests; you can connect the chests to the train stop; if they are still full enough you could make the train stop condition such that it prevents more trains from going there. ^^
At least that will help skipping stops that are already stocked up enough. But it obviously will not help with stops that desperately need to be served first.
For the latter if you really want to prioritize stops based on how desperately you want a train to go there you will need to wait for the Factorio 2.0 update; because then you will be able to set the train stop priority ranging anywhere from 0 to 255 (50 being default). Or set it using circuit network.
Dynamically setting the train stop priority is something I am looking forward to in 2.0; because I will do that both for providing & requesting ends to balance the train distribution better.
Re: Lower trainstation priority. Possible?
Posted: Sat May 11, 2024 3:35 am
by ESI85
Yeah I thought so. Guess I’ll live with it and wait till 2.0
Re: Lower trainstation priority. Possible?
Posted: Sat May 11, 2024 4:01 pm
by Illiander42
MeduSalem wrote: ↑Fri May 10, 2024 5:31 pmFor the latter if you really want to prioritize stops based on how desperately you want a train to go there you will need to wait for the Factorio 2.0 update; because then you will be able to set the train stop priority ranging anywhere from 0 to 255 (50 being default). Or set it using circuit network.
Dynamically setting the train stop priority is something I am looking forward to in 2.0; because I will do that both for providing & requesting ends to balance the train distribution better.
They really are getting almost all of LTN ascended, aren't they?
Re: Lower trainstation priority. Possible?
Posted: Sat May 11, 2024 4:31 pm
by MeduSalem
Illiander42 wrote: ↑Sat May 11, 2024 4:01 pmThey really are getting almost all of LTN ascended, aren't they?
Yea. Factorio 2.0 even without Space Age feels like a best-of mod pack. ^^
Re: Lower trainstation priority. Possible?
Posted: Sun May 12, 2024 12:41 am
by boredlynx
You could put an extra train stop that doesnt do anything in front of the copper requester station that you want to set as low priority, in a way that forces the train to go past it to enter the station. Trains avoid passing through train stops not on their schedule, so the train would avoid those stations if there are others available.
Re: Lower trainstation priority. Possible?
Posted: Sun May 12, 2024 6:52 am
by Kyralessa
If you're using train limits, you might try using supply-based limits on the high-priority stations and lower or hard-coded limits on the low-priority stations.
For example, to set up a station to only be serviced when it has full loads available:
Arithmetic combinator
- Input: Total ore in chests
- Operation: divide by 2000 (or by [2000 * number of freight cars])
- Output: L
Then link that to the train stop and use it to set the train limit. Now you'll get a limit of 1, 2, 3, etc. based on the number of full train loads available.
To deprioritize a station, you could simply set a hard-coded limit of 1, so no matter how much ore there is, no more than one train will stop there at a time.
Or you could divide by a larger number, say 4000 or 6000, so trains will only go to those stations half or one-third as often as to other stations.
Re: Lower trainstation priority. Possible?
Posted: Sun May 12, 2024 8:14 am
by SoShootMe
ESI85 wrote: ↑Fri May 10, 2024 4:53 pm
Out of the 20 requester stations I want to downprioritize let’s say 5 stations. Because I want all other copper requester stations to be prioritized first.
Is this possible?
The simplest answer may be to increase supply so the desire to reduce priority goes away.
That aside, since your screenshot seems to imply you have a global circuit network, you could change the low priority stops to output their demand on another signal, or not output it at all. Then you can read the demand signal instead and force the train limit to zero if there is (high priority) demand elsewhere.
boredlynx wrote: ↑Sun May 12, 2024 12:41 am
Trains avoid passing through train stops not on their schedule
Passing through such stops is not absolutely avoided but rather treated as an additional cost of taking that path. So a destination stop that requires a path through another stop will still be picked over an alternative destination stop that is sufficiently far away.
Re: Lower trainstation priority. Possible?
Posted: Mon May 13, 2024 7:07 pm
by boredlynx
SoShootMe wrote: ↑Sun May 12, 2024 8:14 am
Passing through such stops is not absolutely avoided but rather treated as an additional cost of taking that path. So a destination stop that requires a path through another stop will still be picked over an alternative destination stop that is sufficiently far away.
Exactly. The penalty for passing through such a stop is equivalent to 2000 grid units, so for this purpose it should be fine. If the other stations are too distant, you can always add more superfluous stops!
"Keep it simple, stupid!" is always a good rule to follow.
SoShootMe wrote:
The simplest answer may be to increase supply so the desire to reduce priority goes away.
You are probably right. Adding priorities is useful, but if the reason you want to add priorities is because the important stations are not getting enough materials, then the optimal solution would be to increase supply.