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.

lane connector should hide tracks that are not connected

See original GitHub issue

Depends on #782

image

Setting max turn angle is one way of disconnecting sharp tracks. But it limited to disconnecting by angles. More customizable way of doing this is using lane connector.

To do this we need to patch NetNode.RenderNode() NetNode.PupulateGroupData() and NetNode.CalculateGroupData() . specially around the check flags code.

Use the same version of Harmony as Hide TMPE crosswalks and NS2 to be compatible with those mods. (boformer told me NS2 is buggy and different versions of NS2 don’t work with each other 😦 )

EDIT:

Tasks:

  • Create a small test mod for fast testing.
  • Write code to check if two tracks should draw connect texture/mesh ShouldDrawConnectTexture().
  • import TranspilerUtil code from RM Crosswalks Mod
  • Insert ShouldDrawConnectTexture() in every place where there is a check for direct connect inside NetNode.RenderNode() to support close camera.
  • Test/Debug
  • Optimise: create array/cache to store whether tracks are connected so that it does not have to recalculate every frame.
  • harmony: Fix harmony compatibility with NS2. (I think its NS2 that needs to change it harmony)

PLAN: see https://github.com/CitiesSkylinesMods/TMPE/issues/734#issuecomment-590807175

This task needs to be divided into several steps:

  1. exclude unconnected direct train connections one a per segment basis
  2. exclude unconnected direct train connections one a per direction basis
  3. support lod (die hards can use ULOD mod can be used until this is supported). PS: lane connector should post UpdateNode()
  4. exclude unconnected direct train connections on a per lane basis for custom assets that have more than one pair of tracks.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:37 (13 by maintainers)

github_iconTop GitHub Comments

5reactions
kianzarrincommented, May 29, 2020

Progress! image

2reactions
kianzarrincommented, Nov 27, 2021

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hide TM:PE Unconnected Tracks - Workshop
2- use TMPE lane connector to connect tracks. 3- unconnected tracks will disappear (see limitations). for better support of station tracks: open track-famlilies ......
Read more >
Hide TM:PE Unconnected Tracks :: Comments
I could see a lane connector line, but no nodes were showing which made it very difficult to connect tram tracks that are...
Read more >
Hide tracks in Logic Pro for Mac
Hide tracks in Logic Pro for Mac. When Enable Complete Features is selected in Logic Pro > Settings > Advanced, you can hide...
Read more >
Hide TM:PE Unconnected Tracks
Hides tracks that are unconnected by TMPE lane connector tool. Instructions: 1- subscribe to and enable this mod and TMPE.
Read more >
Hide automation lanes? [solved]
Hold Alt > track options (to the left of track names in the edit window) > uncheck Show automation lanes. This will collapse...
Read more >

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