Until now, the only way to upgrade/renovate a bridge was to remove it and rebuild it. This is not very practical and may lead to traffic problems when there are e.g stations or tram tracks on the bridge.
This patch modifies the behaviour of the bridge builder tool so that, when used on a bridge, it attempts to replace the old bridge with a new one (depending on which bridge was selected).
For example, using the "160 km/h bridge" tool on a "100 km/h bridge" replaces the 100 km/h bridge with a 160 km/h one, without having to remove and then rebuild it.
The tool checks whether the new bridge's length and height constraints are respected.
Players can renovate unowned bridges, public bridges and their own bridges only. Players get ownership of bridges they renovate.
It only works when clicking on one of the bridge's ends, though. (Due to sharing some logic with the bridge remover tool.)
renovate-bridge.gif
Another patch adds a test but the test is yet untested.
I would suggest to add the possible that with CNTRL to downgrade bridges, like for ways.
You mean, not downgrading unless Control is pressed? (Currently it always allows downgrade.)
pak64.german has a script tool for this
Bridges have become very complex.
Signals are taken into account. Things get complicated if there are stations on the bridge. It's also difficult for bridges that end on vertical slopes. And building bridges has also become very difficult, as there are so many variations.
Although one-click construction is no longer possible.
Oh, right. I forgot about catenaries... Sorry. Updated patch with catenary support.
renovate-bridges.patch
I would still implement this as a separate tool, though.
Bridge construction is already very opaque because it's not fully documented.
- Height 1
- Height 2
- 2 clicks
- Drag mouse
And with all of this, it also depends on whether the bridge even supports both heights.
The script tool also works in other paksets.
The script tool determines the speed of the adjacent way and, if possible, builds a bridge with the same or higher speed.
- extract to [pakset]/tool
- copy pak file to pakfolder
- menuconf.tab : toolbar[][]=scripts(SCRIPT_TOOL_UPGRADE)
The button may be blue, but it's acceptable as a way to identify a script tool. Or you could create a gray button for it.
With such tools, it would be nice if they could be used globally for all paksets. Currently, you have to add the tool individually to each pakset.
Another nice tool is the way upgrade.