Cities: Skylines

Cities: Skylines

699 avaliações
Improved Lane Connections v2
2
9
7
2
2
2
   
Premiar
+ favoritos
Nos favoritos
- favoritos
Mod
Tamanho
Publicado em
Atualizado em
36.352 KB
4/jun./2020 às 14:22
12/fev./2022 às 9:50
9 notas de atualização (ver)

Inscreva-se para baixar
Improved Lane Connections v2

Em 1 coleção de Delta 5-1
Mods by Delta 5-1
10 itens
Descrição


What does this mod do?
The mod changes the way in which the game connects traffic lanes on junctions, with the aim of addressing some flaws in the vanilla game algorithm and improving traffic flow.

What does it really do?
For the casual player
Vanilla game:
Game: So, there is this new junction. Make the left lane go left and forward into the leftmost lane, middle lane go forward into the middle lane, right lane go...
Virtual lane arrow painter: As you say. *paints lane arrows*
Player: 😞 Why is no one using these lanes? / Why are all the cars queuing in the same lane? / Why are there all these cars in the bus lane? / ... [cross out as appropriate or insert own complaint]

Improved Lane Connections:
Game: So, there is this new junction. Make the left lane go left and forward into the leftmost lane, middle lane go forward into the middle lane, right lane go...
Virtual lane arrow painter: As you say.
ILC: Hold on, do it like this instead, *gives different instructions*.
Virtual lane arrow painter: Will do. *paints lane arrows*
Player: Yay, much better! 🎉¹

¹ Lane connections are a major, but not the only, factor influencing traffic in the game. A good road layout is of paramount importance for good traffic flow. Numerous tutorials and guides on this topic have been published on Youtube, Steam, Reddit etc.

For the advanced player
The mod's general behaviour is as follows:
  • Lanes are assigned using strict "lane mathematics", e.g.
    • 3 lanes in, 9 lanes out → every lane connects to 3 lanes exactly
    • 3 lanes in, 8 lanes out → 2 lanes connect to 3 lanes each, 1 lane connects to 2 lanes
  • Sometimes, this leaves a choice to be made. In the example above, which of the three lanes connects to 2 lanes? The mod uses a number of rules to decide, mainy:
    • Try to connect forward lanes 1-to-1, provided it does not violate "lane mathematics" described above.¹
    • Prefer dedicated turning lanes over mixed turning-and-forward lanes.
    • Prefer dedicated turning lanes against oncoming traffic (left turns in right-hand traffic, right turns in left-hand traffic) over dedicated turning lanes in the other (collision-free) direction.
  • On roundabouts, lanes are connected so that every lane leads somewhere.
  • Where sharp turns (up to 50°) are present, creation of dedicated U-turn lanes is avoided.
  • Bus lanes are not used as turning lanes for cars.

¹This is a newly introduced rule in the February 2022 update, for an even better traffic flow. If you prefer the old behaviour (more dedicated turning lanes), you can enable it in the mod's settings.

For the traffic nerd
You can find full details of the mod's lane connection algorithm here[github.com] (with pictures!).

What's good about it
  • Lightweight – the mod has virtually no impact on game performance.
  • Save-independent – the mod does not fiddle with your saves, you can safely subscribe or unsubscribe at any time.
  • Fully automatic – the mod requires no clicking nor set up on your part. Save time on mundane, repeated clicking to set up the simplest of things, and spend more time on what really matters!
  • LHT and RHT supported – the mod supports both left- and right-hand traffic. The LHT behaviour mirrors exactly the RHT behaviour.
  • Simple – complexity leads to (1) more bugs, and (2) mod conflicts. While some mods rewrite half of the game's codebase and struggle to keep up with an ever growing list of bugs, this mod only makes a single change. It couldn't be any simpler! It allows for thorough testing, and compatibility with virtually any mod out there in the Workshop.
  • TMPE-compatible – fancy a no-left turn here and there? You can use this mod to provide the default lane connection behaviour, and use TMPE tools to override this mod on those junctions where you want something different.

How to use
Subscribe to the mod and enable it in the Content Manager. You also need to be subscribed to Harmony 2.x, a utility which facilitates mod creation.

The mod takes effect upon loading a map. All existing junctions will be automatically updated to follow this mod's ruleset.

Note that when you load a map for the first time while using this mod, it may take some time (up to a few minutes of unpaused game) until all vehicles start observing the new rules. Vehicles which have already spawned on the map will continue to follow the previous rules.

All junctions you build, upgrade or modify will always follow these rules. The mod does not come with any buttons, shortcuts, keys nor other controls.

Disabling the mod, then loading a map will revert all junctions to default. This too will take a few minutes for all vehicles to recognise.

Compatibility
  • No known incompatibilities
  • TM:PE compatible – Lane connections set with TM:PE tools (lane connector and arrow tools) take precedence over this mod.
  • The mod should work correctly with all assets, including any custom roads.


Source code
View in GitHub[github.com]
154 comentário(s)
CW_1250 5/dez./2024 às 22:10 
If you load an old save file that has already used TMPE, and you use this Mod for the first time, the game will get stuck in an infinite loop during loading, stuck at the road simulation step.

I guess it's the intersection lane connection function of TMPE that conflicts with it, as when I load a save file that does not use this function, the save can be loaded normally. The current version of the game is 1.81-f3, and I recommend not using this problematic module right now, although it is certainly useful.
Vahlee 4/nov./2024 às 10:37 
I'm not really seeing a difference here. I still have the same problem as before, for example, a three-lane one-way street that meets another 3L-1W street and forces one far lane to turn and allows the middle lane the option to go straight and turn. I want all three lanes to go straight and only the far lanes to be able to turn. With how many 1W streets my downtown areas have, I have to manually reconfigure every street.
|↖️:↖️⬆️:⬆️| ❌️

|↖️⬆️:⬆️;⬆️| ✅️
Cloud 16/set./2024 às 4:54 
This good or nah? Conflicting comments here...
Akubo 29/mai./2024 às 10:26 
Great mod! Amazing job!
Lordwarblade 26/abr./2024 às 1:44 
So for @zwtrccs I imagine using TM:PE to draw the turn in the bus lane will override the problem.
zwtrccs 17/mar./2024 às 5:31 
this mod prevents the creation of turn arrows in bus lanes. so buses sometimes move away from its line to turn left or right
YeOl'Choppa 5/dez./2023 às 14:16 
this mod freezes the game UI when building roads with anarchy activated from network anarchy, effectively softlocking the game unless restarted.

i recommend either trying not to build any roads branching off of a straight at angles below what the vanilla game allows, or deactivating this mod entirely
Banana Split 17/nov./2023 às 17:25 
stopped working :c
Rylemsheath 8/ago./2023 às 23:59 
Excellent mod! I would recommend updating your compatibility sticker though :steammocking:
Jokes aside, this is a good mod. :steamhappy:
Stealthy 24/jul./2023 às 5:56 
Yes and no. Biggest difference is that this doesn't cause any CPU load and works automatically on the background.