#Make a train skip a station that another train is going to.

1 messages · Page 1 of 1 (latest)

digital snow
#

I was wondering if there is a way to make a train skip a station on it's schedule that another train is already heading to?

novel sierra
#

There are a few ways to do this, but I think the most simple way to do it in your case is to simply add a train limit to the station

#

this will enable only a set amount of trains to travel to the station.

#

This can be done dynamically using circuits or you can just set a constant train limit

#

however that won't really make the train skip the station

#

doing that becomes more problematic

brave jungle
#

The only way to make a train skip a station is by disabling all stations with that name.

#

However that will interrupt the train that's already heading there

novel sierra
#

Possible to do with circuits but a bit complicated

brave jungle
#

"a bit" is an understatement. You'd have to have all stations on the schedule with the same name and control all limits and circuit wait conditions to prevent collisions

novel sierra
#

Wasn't that hard last time I did it

#

skipped out on it though because setting it up just took too much time

brave jungle
#

Then you're a circuit network genius

novel sierra
#

that would be an overstatement

brave jungle
novel sierra
#

Depending on the circumstances and complexity of the problem something as simple as this might work. This combinator will disable the trainstop whenever a train is parked there, and re-enable once it leaves (you can also add a cooldown quite easily). Coupled with a train limit of one this means that said station will only get one train at a time, and when a train arrives all other trains will skip the station until the train leaves.

#

This won't work all the time but for early game trains it's good enough for most cases I reckon

snow wigeon
#

yeah train limits solve this completely, dunno what benefit you'd get from making it complicated

novel sierra
# snow wigeon yeah train limits solve this completely, dunno what benefit you'd get from makin...

Solely using train limits will not solve the issue at hand. Trains do not skip stations that have a full train limit but instead puts themselves in standby mode waiting for the station to clear up. This means that if you have a several trains with multi station schedules they will clog up waiting for each other to finish at the stations. Hence why you need to de-activate and reactivate the stations to make the other trains skip past the already occupied stations instead of waiting for it to become open.

snow wigeon
#

You really do not want to deactivate stations

novel sierra
#

If done properly it doesn't matter.

#

OPs question was simply how to make trains skip stations, this is the only way to do that

snow wigeon
#

"If done properly" is a way to blame the engineer for a bad design

#

Another solution is to put more trains on the rails

novel sierra
#

That still isn't really relevant to the question

#

this is the way to make trains skip stations

#

by deactivating the stations you want them to skip

snow wigeon
#

There is an x-y problem going on here also. If that is the correct answer to the question, then the question itself is wrong imo

novel sierra
#

well you're original message was about how train limits would solve the issue, which it won't. I just pointed that out

snow wigeon
#

🤷🏻‍♂️

novel sierra
#

non-dynamic or dynamic train limits don't work for stations with several trains, it just makes them wait for each other

#

which is just the same as having no train limit at all

#

which loops back to the reason why you want a train limit and a combinator which deactivates the station when a train is present

snow wigeon
#

If one is tempted to disable stations then they should look for a different approach that doesn't require it. That's my $.02. I can't prove it to you in a discord thread, but it's my judgment. That's all I got

novel sierra
#

I've used such systems in a few playtroughs, never ran into issues

snow wigeon
#

I'm happy for you lol

novel sierra
#

requires some slightly unique setup in comparison to your standard rail system but it's not annoying to do

#

sometimes it runs into issues with multiple trains trying to supply the same stations due to unlucky timing, but adding a small cooldown solves that issue

brave jungle
brave jungle
novel sierra
#

As an example you can't have one specific train go to one specific station as they all have the same name in that case, this makes it so that you can't make proper schedules; you can just input a name of X number of stations and hope that it arrives at the station eventually. This is a shotgun solution that relies on the fact that your trains work in a very linear fashion.

novel sierra
novel sierra
#

This setup will deactivate the station whenever a train is there causing all incoming traffic to be redirected to the next station

#

Also allows you to feed 1 green signal into the station trough other means to adjust when you want trains, as an example; if a chest is running low on items you can automatically enable the train station.

#

remember to put the train limit to 1, otherwise several trains will try to supply the same station and end up getting dead locked

digital snow
#

Thanks

digital snow
# novel sierra remember to put the train limit to 1, otherwise several trains will try to suppl...

But is there a way to make one train head towards a specific station and then have another train skip that station? E.g. A train filled with iron ore is heading to an iron ore dropoff station and behind it is a train filled with copper that obviously not go to the iron ore unloading station. So is there a way to make the copper train go to the next station whilst the iron train is still travelling to the iron unload station?

novel sierra
#

Just don't add the iron station to the copper trains list?

#

oh now I get what you're doing, you don't have specifc trains for specific resources?

digital snow
novel sierra
#

well that's a unique way to do it

#

you do know there are simpler ways to transport resources right KEKW

#

but if you insist on doing it that way, the train limit will only allow one train to travel to the station at a time, so that shouldn't be an issue

digital snow
#

But then other trains that are waiting to go to stations past the one that another train is stopped at it won't and will not move at all

novel sierra
#

hence why we disable the station whenever a train is at it

#

allowing trains to move past it

digital snow
#

But is there a way to disable the station and allow other trains to move past whilst the train heading to the station is still travelling to the station?

novel sierra
#

might be some way but it wouldn't be very simple

novel sierra
#

you would need to detect when a train heads for the station and relay that over a circuit network

#

but then again with multi stations trains that becomes increasingly harder

#

you would need to relay all station statues to central network which is just annoying

timid violet
#

Disabling the station by definition will cause that train that's on its way to also instantly skip it

novel sierra
#

yeah it would be an enormous undertaking to make a good system for that

timid violet
#

Why do other trains need to skip stations though? From the previous descriptions I'm reading it seems your schedules are simple, so skipping doesn't make much sense

#

Ah, nvm, you're adding all stations to a single schedule...
"Stop hitting yourself"

#

If you want that kind of functionality, I'd recommend looking into train dispatcher mods like cybersyn

brave jungle