joaofarias / csl-traffic

A WIP mod for Cities: Skylines to improve traffic.
90 stars 30 forks source link

Bus grouping prevention... #65

Open originalfoo opened 9 years ago

originalfoo commented 9 years ago

Via marodeur, author of the Improved Public Transport mod:

I had the same idea with holding public transport vehicles but haven't done it yet because it would probably make IPT incompatible with Traffic++ again. I wouldn't hold buses for to long, just increase the m_waitCounter by 1 or 2 ticks (SimulationStep calls) when needed.

Basically, when a bus gets to a bus stop delay it from continuing if a bus on the same route has recently left that stop so that a slightly bigger gap is made at each stop between bunched "conga dance" buses.

marodeur5 commented 9 years ago

Hallo aubergine10, marodeur here, check this http://pastebin.com/Yd5YB9fz It probably needs some tweaking but it works. The aggression is set to 3 which will increase the waitCounter by 6, the traffic was not much worse than before.

marodeur5 commented 9 years ago

Hi, please don't add something like this in your next version. I might found a way to do it in IPT without compatibility issues and I think it would fit better into IPT. Players would be able to set the bus stop interval for each line separately Thanks in advance.

joaofarias commented 9 years ago

Hey marodeur5,

Sorry for taking so long to get back to you. In the next version, I won't be overriding the ArriveAtTarget and CanLeave methods, so if you only need to change those, you'll be able to do it safely. The release is still a couple weeks away, though.