CitiesSkylinesMods / TMPE

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

School Zones! (Time dependent speed limits) #257

Open FireController1847 opened 5 years ago

FireController1847 commented 5 years ago

image

Come on. We've all seen them in some way shape or form. Do I even need to explain?

Per the UT Driver Handbook: "When lights are flashing in a school zone children are present, you must obey a slower speed limit. At school crossings where there is a traffic patrol, stop and yield as signaled."

As seen in the image above, school zones contain flashing light poles that require drivers to slow down for a certain length before an "end school zone" sign can be found (and if not, until they've reached the other side for the opposing direction).

For implementation into TM:PE, I was thinking something similar to the junction restrictions. It could be applies on a segment-by-segment basis, and then could be configured to only run at certain times of day. It'd also be cool if we could set the speed allowed when the zone is enabled, however if not the normal is 20 MPH.

Without the real time mod, C:S still has time, it'd just seem really far apart, but with the real time mod this could be an awesome addition for situations like the below. image So, in this image, I could set the area marked in red as a school zone, and anytime my times are specified, cars would be required to slow down to 20 MPH.

Thoughts? I thought this was a really cool idea, at least, and would be a great addition to a traffic management mod. I'd assume a fairly simple implementation too, compared to things like Emergency Vehicles being pulled over.

Sipke82 commented 5 years ago

Could also be useful for other things. for example in the Netherlands, some parts of the highways have a lower speed-limit from 6 am to 7 pm.

originalfoo commented 5 years ago

This also ties in with #128 and #122. Would be great for RealTime mod users as well (especially if it could somehow integrate with the RealTime workshifts).

We also have things like this in UK, where speed limit falls to 20mph near schools during school open hours. It's usually only for elementary schools though, although some high schools also have it. And many of our motorways (highways) have lower speed limits during rush hour in attempt to slow traffic down before it reaches the choke points and thus allow choke points to dissipate more rather than just overflow.

originalfoo commented 5 years ago

For highway time-based speed limits, dynamic signage would be super-useful: #124

In terms of the UI required for any of this stuff, I think we need to pause and ponder it deeply otherwise it will become a confusing mess. The speed limit UI is already quite cumbersome, especially on roads with lots of lanes.

Also, I wonder if we should make it dependent on RealTime mod? In vanilla, time progresses at much too fast a rate and there are no discernable rush hours (cim activity is just spread over the entire day with surprisingly little difference between day or night, even with the AD DLC). RealTime provides the shifts, school hours, etc., that, IMO, would be a prerequisite for this sort of time-dependent traffic stuff.

FireController1847 commented 5 years ago

@aubergine10 I was thinking, is it possible we could use an input box and two arrows to the left and right of the input box to select a "speed"? The arrows could add 5 or remove 5 on each side, and then the user could type in the input box to be able to set a specific one like 27.

originalfoo commented 5 years ago

I was thinking, is it possible we could use an input box and two arrows to the left and right of the input box to select a "speed"? The arrows could add 5 or remove 5 on each side, and then the user could type in the input box to be able to set a specific one like 27.

That's like 3 times as much UI stuff as we currently have, IMO that would be even more confusing and cumbersome to work with. In all my research of speed limits worldwide, it seems every country uses multiples of 5 or 10 - so a text box for direct entry is not required. As for the arrows, I think the existing way of having a palette where user can choose from a selection of speeds works really well in terms of reducing clutter and also minimising number of mouse clicks.

There is some discussion of UI updates for speed limits in #84, but it does not consider anything like time-based speed limits. We would need to implement some sort of component to choose time slots or hook in to RealTime mod (my preferred option, tbh) and update the overlays accordingly - either way, it's not something we should be rushing in to.