Page 1 of 1

Automatic Block Signaling

Posted: 19 Mar 2023, 00:06
by Danny
This mod separates the railway into blocks which are then protected by traffic lights.

In order for the mod to work, it is necessary to add traffic lights to at least one intersection.

After that, the mod scans the rail network and calculates the blocks.

A block is a part of a track between:
- two junctions (no matter they have or have not traffic lights)
- junction and train station
- any junction and/or node protected by traffic lights

Important: this mod doesn't change the physical appearance of the railroad, so to see traffic lights, you need a railroad that has them built in! You can use one of these railways:
- Vanilla track with DB signals:
--> https://steamcommunity.com/sharedfiles/ ... 2950166500
--> viewtopic.php?f=25&t=1152
- Croatian railways track with HŽ catenary and signals:
--> https://steamcommunity.com/sharedfiles/ ... 2950255012
--> viewtopic.php?f=25&t=1153

USAGE:
Activate node selection with mod shortcut (default: Ctrl-Shift-N; you can change this in options).
As you can see on picture attached above, green circle mean that you can add traffic lights to selected junction by left click. To remove traffic lights, use left click again (circle above node is red if node have lights).
To add traffic lights on straight part of railway use Shift key + left click (selection will become yellow circle).

After each change (adding and/or deleting nodes), the mod will recalculate the blocks by itself, but the possibility of forced recalculation of the blocks still exists. You can force update network with (default) Ctrl-Shift-U.

If you change the entire railway network from one type of rails to another (using RON or another mod), we advise you to save and reload the game and then add traffic lights.

Where to set traffic lights: in all junctions with three or more segments and also on long straight parts.
Recommended distance between two straight nodes is 40-50 units for high traffic railway or 70-80 units on low traffic railway. If you're using long trains do not set blocks too short.

Mod also have additional two shortcuts: to set all nodes to red or green.

Warning: setting the green light on all nodes disables the mod's block function, so this is not recommended except in cases of traffic jam. If you use the green light function, we recommend that you use the red light function immediately after the jam has passed to activate the block function of the mod.

The red light function is only temporary (it does not permanently block all traffic lights). This function, in addition to setting all traffic lights to red, also resets the assigned green light rights for all trains, which is good if the game deletes a train that already had the assigned green light.

Compatibility: TrainABS mod is compatible with Traffic Manager President Edition so you can use both at the same time. Note: TrainABS takes control over the rail network, so some functions that TM:PE has that are related to the rail network will not work.

This mod is still in development and there will be improvements, so all suggestions and comments are welcome.
Screenshot 98.png
Screenshot 99.png
Screenshot 100.png
Screenshot 101.png
Screenshot 102.png
Screenshot 103.png
https://youtu.be/ZlDZfD9djfY
https://youtu.be/55OjwUXD5W8

Re: Automatic Block Signaling

Posted: 08 Apr 2023, 13:27
by Danny
Testing in progress... :shock:
Screenshot 34.png
Screenshot 35.png
Screenshot 36.png
Screenshot 37.png

Re: Automatic Block Signaling

Posted: 17 Apr 2023, 21:51
by Danny
Mod updated.
- added more precise detection of train location
- updated block list to faster one
- updated block showing routine (no flickering anymore)

Re: Automatic Block Signaling

Posted: 10 May 2023, 00:25
by Danny
Mod updated. Small, but important update:
- added routine to remove "confused" cars from railway tracks