Page 1 of 1

Railway Speed Limits

Posted: Sat Sep 10, 2016 4:08 pm
by CentricArts
I have a huge network of trains in my factory and as I prefer to work with a compact factory where I have to do things throughout different sides of the factory, I have a tendency to get hit by trains or have a close call with one. I'm suggesting a way to limit rail speeds in rail blocks much like the current rail signals. Maybe make rail speeds an additional feature towards the current rail signals and have a interface for it, or maybe have separate blocks to divide the signals from the rail signals.

Having speed limits will prevent having instant death if the train line is crossed on a regular basis. Additionally, you will have tons more reaction time to get off the rails before the trains hit you as you have loads more time to react. Preventing a potential death.

Re: Railway Speed Limits

Posted: Sat Sep 10, 2016 6:11 pm
by zebediah49
There is/was a mod for declaring segments of rail to have a speed limit.

I have a parallel proposal though: a concrete floor-texture variant indicating a pedestrian crossing. If you put that under the rails, the trains will obey some appropriate speed limit when crossing that block. This would allow you to plaster your factory with speed limit tiles to affect the whole thing, and would allow others to make passive pedestrian crossings (though I personally like the gate-based ones better). It also would not require block-management (either making sure every track in/out is marked, or making sure every block is marked).

Re: Railway Speed Limits

Posted: Sat Sep 10, 2016 8:04 pm
by ssilk
Really good ideas.
Added to viewtopic.php?f=80&t=21899 Control Train Pathfinder (Passthru stations, Add Penalty)

Re: Railway Speed Limits

Posted: Sat Sep 10, 2016 8:28 pm
by Jonathan88
Sounds good...




I'm sorry I just can't get over how amazing that factory looks! :lol: :lol:

Re: Railway Speed Limits

Posted: Sat Sep 10, 2016 10:26 pm
by aubergine18
Train speed limit mod for 0.13 branch https://mods.factorio.com/mods/icedevml/TrainSpeedLimit

Re: Railway Speed Limits

Posted: Sat Jan 06, 2018 9:21 pm
by Tekky
I think such a train speed limiter should be in vanilla, especially since the mod has not been updated for 0.16.

It is crazy to have trains go full speed through the middle of your main base.

Re: Railway Speed Limits

Posted: Mon Jan 08, 2018 11:53 am
by Drury
Can't you limit the speed of your trains by turning rail signals red intermittently to force trains to slow down before them?

Re: Railway Speed Limits

Posted: Mon Jan 08, 2018 4:08 pm
by Tekky
Drury wrote:Can't you limit the speed of your trains by turning rail signals red intermittently to force trains to slow down before them?
Yes, I guess it is possible to limit the speed of trains by forcing a signal to red briefly with the circuit network, while a train is approaching. However, as soon as the signal turns green, the train will start accelerating fully again, so the train would have to be slowed down by this method at regular intervals. Also, this would require a lot of trial and error to get the timing of the signals correct so that it slows the train down to the desired speed, and it wouldn't be very reliable, because different trains may have different acceleration (due to different fuel or due to having more cargo wagons to pull).

Train speed limit signs

Posted: Mon May 21, 2018 2:06 pm
by husnikadam
Hello,
as I'm used to walk with 6 "exoskeletons", I don't care of rails and I get killed everytime :D

So, I would really apreciate this feature - to limit trains speed by speed signs, which would work similary as traffic lights.
Just to set up custom max speed to not get killed every time :) It would be also good for estetical reasons.

What do you think?

Thank yo.

Re: Train speed limit signs

Posted: Mon May 21, 2018 3:40 pm
by Tekky
I fully agree. However, this has already been suggested in the following thread:

viewtopic.php?f=6&t=32459 Railway Speed Limits
EDIT: Meanwhile, the threads have been merged. Therefore, this link now points to the current thread.

Re: Train speed limit signs

Posted: Mon May 21, 2018 4:18 pm
by husnikadam
Oh, I see. I searched trought this forum, if it's not duplicite topic, but there are too many posts...

Re: Train speed limit signs

Posted: Mon May 21, 2018 6:02 pm
by bobucles
You can't really force trains to slow down. Playing with combinators and rail signals is very tricky because confused trains close their eyes and slam the gas.

Trains do automatically stop for rail stations. You can force trains to hit a midway station and that will dramatically reduce the average speed. Unfortunately you need to do this for every crossing that you want trains to stop.

Re: Train speed limit signs

Posted: Mon May 21, 2018 7:54 pm
by quyxkh
You can get train speed limits by wiring two rail signals with the farther one set to close if yellow = 1, so it'll show "closed" when a train's approaching causing it to brake until it's actually in the protected block.. Play with spacing and such to get the speeds where you want them.

Re: Train speed limit signs

Posted: Mon May 21, 2018 10:06 pm
by husnikadam
I've found quite easy way, how to simulate a speed limit (at same time as quyxkh sugested).

It's based on queue of rail signals connected with circuit wires, and with set-up lights as "read signal" and "closed signal" set as "closed, when red signal = 1). The best way to understand is to show you, I made some example videos and blueprints (attached in file).

First speed limit blueprint slowes down trains to 90-60 km/h (depending on acceleration of train). Higher speed limits may be a little bit more complex due to using poles to extend wires.
Second speed limit blueprint slowes down trains to 40-27 km/h (depending on acceleration of train) and it can't be slowed down even more.

On my examples I used uran locomotive without any wagons and coal locomotive with 9 more wagoons.

link to youtube videos: https://www.youtube.com/playlist?list=P ... 9x2OtZf0fT

Re: Train speed limit signs

Posted: Tue May 22, 2018 4:18 am
by steinio

Re: Train speed limit signs

Posted: Tue May 22, 2018 8:21 am
by bobingabout
Going back to a dev perspective... no I'm not a dev, but we've had quite a few conversations about trains.

It is unlikely something such as a train signal that slows the train down will happen because... it's something extra the train has to check for.

Though, as far as ideas for trains go, this one isn't too bad from the programming perspective, and could possibly happen at a push
It is something I would like to see it happen.

Re: Train speed limit signs

Posted: Sat Jun 02, 2018 12:35 pm
by Tekky
bobingabout wrote:It is unlikely something such as a train signal that slows the train down will happen because... it's something extra the train has to check for.
Since trains must check for (red) signals anyway, it would not be much extra work for the CPU or memory bandwidth if these signals also had the ability to impose a speed limit. The trains would not have to check for any additional signals.

Re: Railway Speed Limits

Posted: Tue Mar 26, 2019 10:52 pm
by Tekky
Meanwhile, train speed limits have also been discussed in the following thread:

viewtopic.php?f=6&t=60525 Train speed limit signs
EDIT: Meanwhile, the threads have been merged. Therefore, this link is no longer valid.

One thing I would like to add is that I would like to be able to control speed limits with the circuit network, i.e. they should be dynamic. For example, I would like to be able to reduce the speed limits if the circuit network detects a player nearby.

Additional ways for the circuit network to detect the presence of a player has been discussed in the following thread:

viewtopic.php?f=6&t=40784 Pressure Plate (and other Dwarf Fortress things)

Re: Railway Speed Limits

Posted: Wed Mar 27, 2019 5:54 pm
by Koub
[Koub] Merged several topics with suggestions to address the same issue (need to limit train speed)