Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Extremely low (x1/128) track build/remove cost severely restricts the track conversion feature. #7633
Version of OpenTTD
You should be able to universally convert track no matter what the costs are for building track.
When you use BaseCosts 5.0 newGRF to set the "build track" cost multiplier and "remove track" cost multiplier to x1/128, track conversion is no longer universal: Instead, you can convert (electrified) rail to monorail or maglev, and you can convert from monorail to maglev and vice versa. That's it. You can't convert from monorail/maglev to normal railway, nor can you (de)electrify railways.
I think reducing the build track and remove track costs to x1/128 causes some combinations to return 0 as the cost, which the game treats as being invalid, and so those conversions return "No suitable railway track" and are therefore prohibited.
Steps to reproduce
Does the same problem with zero-cost conversion failing occur with road and tramway? If so, could you fix those as well (same/similar method to #7634, tracking separate "found_convertible_road" and "found_convertible_tramway" flags in addition to "found_convertible_track")?