Train tunnels

by Godmave

Tunnels for trains

Content
3 years ago
0.17 - 1.1
13.9K
Trains

g Pathing through tunnels

5 years ago

I'm really digging this mod! This is a great solution to train gridlock on uber busy bases, because you can set it up so that trains never need to cross paths. That said, I'm running into a bit of an issue. I'm a big user of LTN, which automatically sets up dynamic routes based on requestors and providers, but I'm not sure I can make this mod work with it, since it appears you have to manually route a train through tunnel entrances and exits using their stops.

Is there anyway to get it to path trains through tunnels without having to set the tunnel entrance & exit points as waypoints? I tried putting a simple tunnel in, and a train stop on the far side of the tunnel named "End". I named the entrances and exits "Entrance" and "Exit". If I try to just send the train directly to "End", it doesn't path. I have to route it to Entrance, then Exit, and then End, and that works.

Thanks for making this happen!

5 years ago

Nope

5 years ago

Sandro, at the moment not but as he he knows the problem it might be a good idea to send a feature request to the factorio guys because they are extending the mod functionality as much as they can and as far as I know the modding in this game it can be an option to handle the entry and the exit point as two directly connected rail parts...

5 years ago

I don't know where anymore but how the train is coded it isn't possible without rewriting them.

5 years ago

The best way would be to let the pathfinder know that the last rail piece on one side is connected to the first rail of the other.

But since it is unlikely to get this in, the next best thing might be the ability to access the pathfinder with from_rail, to_rail resulting in a path/cost and dynamically adjust the schedule from inside the mod. Will be some work to get it working nicely, but at the moment my approach would be to place fake t the tunnel stops to get paths (without cost).

New response