question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make `m_CanCrossLanes` work intelligently

See original GitHub issue

This is possibly multiple separate issues but they all seem to link with the (non-funcitonal) “Can cross lanes” setting in asset editor. I’ll try and describe as best I can.

In the asset editor, there’s a property “Can Cross Lanes”. All the indicators are that it was intended prevent vehicles cutting across multiple lanes of oncoming traffic on medium or large roads. It looks like it was something that CO were mid way through implementing but dropped prior to initial release of the game back in 2015.

Asset creators making road and track networks have desired the feature to work for long time, however it would probably need to behave differently for roads vs. tracks (and ideally have manual override + customisable prefab default for end-users).

Users currently have to use lane connectors to force correct behaviour. However, it would be nice if the “Can cross lanes” flag could be used by asset authors to automatically set applicable road and rail junctions to the correct behaviour.

Tracks

MOM and, soon, RWY (Railway), contain 4-track rail/metro networks, for example:

image

The 4 track networks are useful for:

  1. Bypass stations - this is the main use
  2. Higher capacity rail netorks without the hassle of trying to align 2 x 2-track networks side by side (eg. allowing passenger and cargo trains to roll side by side). This is a side use that would require something akin to #634 at one of the nodes/segments elsewhere on the track to allow trains to diverge and merge in order to swap between outer and inner track in the direction they are going.

As you can imagine, the game struggles with these configurations.

The tracks usually have 2 lanes in one direction then 2 lanes in the other direction as indicated on image above. If m_CanCrossLanes == false, it should ideally give effect of the lane connectors on image above when the 4-lane track splits in to 2 x 2-lane track.

It seems there was some attempt to deal with ‘ahead only at junctions’ in TMPE 10.17 - see: #230 and #236. It was raised again in the ill-fated #243 but fizzled out.

For “bypass station tracks” (see link above) there is mixture of (outer) station tracks and (inner) rail tracks that also needs accommodating. The station tracks are one-lane one-sided station segments, and then there’s normal middle double track; trains on the central tracks can just bypass (ie. drive striaght through without stopping) the station.

Should definitely reach out to MOM team as there is likely something from TMPE 10.17 that I assume works to some extent; either that or they patch TMPE somehow? BadPeanut (can be found in the /r/CitiesSkylines discord) will almost certainly know how the MOM tracks work.

REV0 will be providing WIP versions of RWY quad tracks for testing.

Roads

For roads, m_CanCrossLanes == false would be perfect for this:

image

In other words, don’t cross oncoming traffic at a junction.

But currently users have to do this kind of thing:

image

It’s touched upon in #89, #243 and also related to #503 and #504.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kianzarrincommented, Dec 8, 2021

@aubergine10 The track part of the issue is still valid image

FYI my Adaptive Networks mod will have a track feature that can totally hide all unconnected tracks. https://steamcommunity.com/sharedfiles/filedetails/?id=2669938594 image

0reactions
originalfoocommented, Dec 9, 2021

Closing this as Kian’s mods are handling it. (That AN mod doing the custom node meshes is freaking awesome!!)

For other stuff relating to medians and crossing roads/lanes, see #1223

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found