CitiesSkylinesMods / TMPE

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

Idea: Prefer bus lanes for bus pathfinding #1017

Open me22 opened 3 years ago

me22 commented 3 years ago

Describe your idea

Bus line pathfinding prefers the fastest route, but it would be nice if it would give a bit of a bonus to bus lanes -- with the dedicated capacity it would make sense for the bus to rather be there, and would allow for a bit of natural control over where the buses go between stops. (A player can sortof do this by putting faster lane-wise speed limits on bus lanes, but having the buses actually go faster on the road doesn't really make sense, so I don't think that's a good enough solution.)

That could be both that they should prefer segments that have a dedicated bus lane, as well as penalize non-bus lanes on road types that have a dedicated bus lane.

Inspired by https://steamcommunity.com/app/255710/discussions/0/3011179244455946711/

Screenshots?

Notes or questions?

Sorry if they already do this, but the only special behaviour I spotted for buses was the ignore-lane-arrows stuff.

veltins55 commented 3 years ago

Also Waypoints for Public Transport Lines would be great

krzychu124 commented 3 years ago

Also Waypoints for Public Transport Lines would be great

Pathfinder(PF) doesn't support such feature, I mean it's not straight forward to implement it. We would have to completely rewrite PF :/

PF will almost always use bus lanes if available, that's already in the mod. Problem is that each transition between lanes and segments has own score and final path is based on it, usually combination of the best transition creates final route. PF won't create route via X additional segments to just use bus lanes, it's not optimal solution. I know it might look like in real life but here we use numbers and I agree that waypoints could help (or hide the problem) :)

Tweaks are always possible, I need to investigate it more.

veltins55 commented 3 years ago

In my opinion it would be the easyest way to set up a Busstop like item for waypoints, where the buses don't stop but im no programmer so this is just a suggestion...

Von meinem Samsung Galaxy Smartphone gesendet.

-------- Ursprüngliche Nachricht -------- Von: Krzysztof notifications@github.com Datum: 23.10.20 19:06 (GMT+01:00) An: CitiesSkylinesMods/TMPE TMPE@noreply.github.com Cc: veltins55 pierre.senn@outlook.com, Comment comment@noreply.github.com Betreff: Re: [CitiesSkylinesMods/TMPE] Idea: Prefer bus lanes for bus pathfinding (#1017)

Also Waypoints for Public Transport Lines would be great

Pathfinder(PF) doesn't support such feature, I mean it's not straight forward to implement it. We would have to completely rewrite PF :/

PF will almost always use bus lanes if available, that's already in the mod. Problem is that each transition between lanes and segments has own score and final path is based on it, usually combination of the best transition creates final route. PF won't create route via X additional segments to just use bus lanes, it's not optimal solution. I know it might look like in real life but here we use numbers and I agree that waypoints could help (or hide the problem) :)

Tweaks are always possible, I need to investigate it more.

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/CitiesSkylinesMods/TMPE/issues/1017#issuecomment-715463999, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ARPVJE3GFX4AYSV2ZL7A533SMGZXZANCNFSM4S3TDQCA.