Hello
New tunnel bridge patch V2.
we now have working signals on brides.
You can still load an old game with the old signal patch, but you have to change the signals on your wormholes.
Other games should not be a problem.
Decontaminating the game is when you remove all wormholes with signals.
Light or semaphore signals change according to your "build signals before ..." in advanced settings.
The whole system works with on-off signals.
Tunnels and bridges are one way only!
This gives the possibility to define entrance and exit of wormhole.
The bit of the Exit tile "never" changes.
On the exit tile is a fake signal just for the show.

The maximum bridge length in the game is 100 tile + 2 tiles for ramp.
Having 16 bits available in m2 gives the possibility to plant 16 signals.
That means 17 blocks. 100 / 17 = 6 tiles per block so every 6 tiles a signal + sign on entrances.
You don't have the possibility to change this block size. (it could be possible in tunnels though).
But I opted for not allowing due to overhead.
The code still uses the distance to other train algorithm.
This is done for efficiency reasons and to make handling of reversed trains easier.
Also Reversed trains make life difficult in wormholes. I solved the reversing by some kind of self healing of the system
That means that in the event of a train reversing in wormhole the system will come back to normal after next trains pass.
For the time being some code is not in the correct place and not optimized
This is done for various reasons and will be corrected later.
Signal placing:
Place signal on tunnel bridge ramp and toggle to desired direction.
Only When dragging one-way signals, signals will be places on wormholes according to direction.
To do:
Adjust signal x,y position
Make trains slow down before signal red inside wormhole.
Connect system to path finder.
The pathfinder should not find a path when it sees a tunnel exit coming towards a wormhole with signal simulation.
At this moment I do not know how to do this.

So at this moment you can fool the path finder by having a one way signal after the wormhole.
Have fun and regards
EDIT: below is savegame used for testing