voxeltycoon / issues

17 stars 4 forks source link

Vehicles for replacement can be chosen with no suitable depot on the map #1051

Open Banjobeni opened 6 months ago

Banjobeni commented 6 months ago

Describe the bug Newly researched vehicles are always available for selection during vehicle replacement. The player can define a target train composition including them. Once the player finishes defining and activating the vehicle replacement, the vehicles affected by the replacement cannot find any suitable depot in case the player has not have built one yet. This was confusing to me and I searched for a problem why my vehicles couldn't go to the depot and thought it must be a path finding problem for a long time.

There are probably two components here: a) "Diesel Engine" can be researched without ensuring that, in case of rail vehicles, "Depot II" is available, so the (rail) researched vehicles are useless until you also have that depot b) Vehciles for which no suitable depot exists (on the whole map) can be chosen for vehicle replacement

The solution for a) is not obvious to me, as there are also new road vehicles available after researching "Diesen Engine". It might not be justified to add a dependency to "Rails II" research.

For b) the vehicle replacement dialog could show those vehicles as unavailable with the hint "no suitable depot found".

Build version 0.88.6.5/win10

Reproducibility Deterministic. Low to medium severity.