Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make m_CanCrossLanes work intelligently #646

Closed
originalfoo opened this issue Feb 3, 2020 · 5 comments
Closed

Make m_CanCrossLanes work intelligently #646

originalfoo opened this issue Feb 3, 2020 · 5 comments
Labels
BUG Defect detected enhancement Improve existing feature feature A new distinct feature LANE ROUTING Feature: Lane arrows / connectors

Comments

@originalfoo
Copy link
Member

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 m_enableMiddleNodes toggle on track segments or nodes? #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.

@originalfoo originalfoo added BUG Defect detected enhancement Improve existing feature feature A new distinct feature LANE ROUTING Feature: Lane arrows / connectors labels Feb 3, 2020
@originalfoo
Copy link
Member Author

originalfoo commented Feb 3, 2020

Related: #558, #506, #19

@kianzarrin
Copy link
Collaborator

kianzarrin commented Dec 8, 2021

image

@aubergine10 can we close this issue? there are so many duplicates of this issue that I am getting confused!

Instead of telling TMPE to stop cars from crossing the median we can look at this the other way around: hide he median if cars can cross.

My DCR mod already does this: https://steamcommunity.com/sharedfiles/filedetails/?id=2104976832

  • hides broken medians (this is the part that solves this issue)
  • generates DC meshes (optional)

So can we close this and all the node median issues? (#89 cannot be closed because it is in the middle of the segment and is a different matter).

@kianzarrin
Copy link
Collaborator

@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

@originalfoo
Copy link
Member Author

I think we could probably close a lot of these, if the various issues are summarised in to a central issue maybe?

I'll have a go at creating that new issue, listing all the spammy issues, and then, if everyone agrees, I'll close the spammy issues.

@originalfoo
Copy link
Member Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Defect detected enhancement Improve existing feature feature A new distinct feature LANE ROUTING Feature: Lane arrows / connectors
Projects
None yet
Development

No branches or pull requests

2 participants