My trains keep crashing

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
kenken244
Burner Inserter
Burner Inserter
Posts: 18
Joined: Sun Feb 23, 2014 11:12 pm
Contact:

My trains keep crashing

Post by kenken244 »

I recently tried expanding my rail network to include two separate trains going to two separate stations on the same rail line. However, my trains constantly crash into one another. a search of the forum indicates that they should automatically path to avoid one another, but this does not seem to be the case.

I tried to help alleviate the problem by adding rail signals at the front and back of each station, like is shown on the wiki, so they would not plow through the station on their way to somewhere else. That has worked, but now trains will enter the station but never leave, until one of the signals is removed. I am really at a loss as to why this is happening.Could someone kindly shed some light on this situation?
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: My trains keep crashing

Post by ssilk »

Well, without pic or something we cannot help, only in general. I can only recommend to play around with it a lot. You mentioned that you already have read the wiki. I hope also the signal part, which explains the blocks, because I always thought, that this is more or less well explained. There are also some videos, which link from there.

Well, that's all you can get yet.

My tip: You can learn it yourself and you will get some smiles on you face, when you found it out yourself, I guarantee! :) So, try at first to make a very, very small railway network, first a circle, then add switches and so on. Look at the signals, what will happen with them, when a train goes on it. Think in "blocks", a block has a number, which is displayed, when you hover the rail, every train in that block will set the signal "before" that block it to red.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Holy-Fire
Fast Inserter
Fast Inserter
Posts: 176
Joined: Sun Apr 14, 2013 9:15 am
Contact:

Re: My trains keep crashing

Post by Holy-Fire »

You should put signals not only before and after the station, but along the entire track.

With the way you have done it, the whole track outside the station is a single block which the trains will not share.
ccik
Inserter
Inserter
Posts: 39
Joined: Sun Mar 16, 2014 11:46 am
Contact:

Re: My trains keep crashing

Post by ccik »

Ok, i try to give some pointers for the signalling system.

Usually i start out with two stations, one connection line and one train, no signals. If you then set a train schedule, everything should work fine.

Now i assume you put another station next to each existing station, meaning you got 4 stations in 2 groups, and one line connecting these stations. Pathfinding for trains only "sees" the rails and signals, not the trains moving or waiting on the tracks. So to prevent them from crashing into each other, you need signals.
Every signal splits your track into blocks, as mentioned earlier. If you hover over a track, it will tell you the block number. Each block can only be occupied with one train. If this is the case, the signal before this block will turn to red.

Now for the signal setup:

First, i try to identify the blocks i want tho have.
Some basic rules:
If you place only one signal next to the track, trains will only enter the block from one direction. If set the signal, arrows will show you this direction, the signal has to be on the right side of the track (direction of desired train travel).
If you place one signal on each side of the track, trains will be able to enter the block from both directions.
On any one-way track, you can place as many signals in sequence to each other as you like. With this, you can create waiting room before stations or connections.
If you want to build a two way track, you have to make sure, that any train in this block is able to leave the block! This means, for two way tracks, NO signals in this track. Only place them at the beginning and at the end of the two way-segment.

It is really hard to explain all this with words, so here is one picture:

Image



For the picture:

The yellow arrows represent my two way track towards the main base. The blue arrow depicts the track towards station A. The red arrows shows the direction to and from station B. Again, in the north, there is a second two way train.

Example A: Train from Yellow to Blue and back:

The train arrives, continues past the first two connections. At the third, it can only go right, because of the signal placed just after the junction. If the next block (the station) is occupied, it will wait there. For a slightly better setup, the signal should be a little more away from the junction. Until the train is past this signal, the whole two-way train will be occupied, a no other train can enter this block. As soon as the train is past this signal, the track is free, and any other train can use it. On the way back, the train will do one small loop, and arrive at the next signal. In this picture, it is the right one currently showing red, as one train is approaching. If any train is on the track, the signal will be red and the train hast to wait. The important part here is, that any incoming train will not be block by the waiting train. As soon as the track is free, the train will move towards the main base.

Example B: Train from Yellow to Red and back:
The train arrives, and wants to go to the north. This is not possible at the first junction, due to the signal placed here. So it has to take the second junction. The signalling works the same way as with station A, exept, that there is another two way track towards the station. Again, as soon as the train is past the signal, the whole two-way track will be signalled free again. Same thing on the way back. The train arrives, hast to wait at the leftmost signal, and can continue as soon as the two way track is free. This setup can also be improved by adding a second signal to each track in the waiting area in order to "clear" the track and still be able to wait for the next block to be free.


Again, in short, the most important things you can see in my picture:

No signals on the two-way segment.
Waiting areas, so every train on the two-way segment is able to leave it without beeing blocked by waiting trains.



I hope this will help you a little bit and make things more clear.
kenken244
Burner Inserter
Burner Inserter
Posts: 18
Joined: Sun Feb 23, 2014 11:12 pm
Contact:

Re: My trains keep crashing

Post by kenken244 »

Thank you for the help. It seems I misunderstood how train signals worked. I have got everything working now.
LordAtrix
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Mar 19, 2014 9:28 pm
Contact:

Re: My trains keep crashing

Post by LordAtrix »

Hey,

I have attached an image of what I have for my dual train system, for those that might have play transport tycoon it is an idea taken from that.
stuck_02.png
stuck_02.png (927.7 KiB) Viewed 12819 times
However every now and then they do what is shown in the image, anyone got an idea to make this better?
stuck_01.png
stuck_01.png (868.42 KiB) Viewed 12819 times
User avatar
rk84
Filter Inserter
Filter Inserter
Posts: 556
Joined: Wed Feb 13, 2013 9:15 am
Contact:

Re: My trains keep crashing

Post by rk84 »

You could use one-way signalling.
Test mode
Searching Flashlight
[WIP]Fluid handling expansion
[WIP]PvP gamescript
[WIP]Rocket Express
Autofill: The torch has been pass to Nexela
LordAtrix
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Mar 19, 2014 9:28 pm
Contact:

Re: My trains keep crashing

Post by LordAtrix »

Just a bit of an update, I forgot to add signals are each station I think its solved that issue, but I guess it might still just be down to timing. Attached is an image of what I have done.
stuck_03.jpg
stuck_03.jpg (274.76 KiB) Viewed 12754 times
User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12889
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: My trains keep crashing

Post by ssilk »

Well, might work, but the two-way signals on the left below are always a chance to have the trains hung.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Post Reply

Return to “Gameplay Help”