CitiesSkylinesMods / TMPE

Cities: Skylines Traffic Manager: President Edition
https://steamcommunity.com/sharedfiles/filedetails/?id=1637663252
MIT License
571 stars 85 forks source link

Skip `Old Town` pathfinding penalties for buses and taxi (optional) #1618

Closed krzychu124 closed 2 years ago

krzychu124 commented 2 years ago

After Dark DLC required

Optional pathfinding penalty skip for buses and taxi for segments in area with Old Town policy enabled.

This enhancement could be more accurate and eliminate cases where vehicles would use Old Town districts as a shortcut but determining district ID based only on segment is quite costly so I abandoned the idea. Still, better than nothing, might be improved later when we collect some more feedback how it actually works outside of simple testing scenarios.


This enhancement is pretty easy to test. Vanilla applies ~7x cost penalty so the key is to add bus stops outside of the district but making the road layout provoking vehicles to use Old Town as shortcut (they won't if not allowed).

Worth noting is the fact that bus line overlay may show incorrect path with the feature disabled where vehicle will go through Old Town but they actually won't follow restricted part of the path, unless you put bus stop in the district which obviously force them to enter it (less likely to overflow path penalty score on short paths between stops), so enhancement settings in that particular case won't make any difference.


Settings stored in GlobalConfig, both disabled by default (vanilla)

Closes #371 , closes #361

Test build zip