klyte45 / TransportLinesManager

The TLM mod for Cities Skylines
Other
28 stars 23 forks source link

[BUG] Draw map function doesn't work when drawing bus routes + metro #267

Open Bohaska opened 2 years ago

Bohaska commented 2 years ago

Describe the bug I'm on a Mac, so this may be only occurring on my end. When I tried to draw a map with several bus routes and 1 metro route, the HTML file loaded, but the legend to the left and the map to the right was missing. After I removed the metro route and generated a new map, the draw map function works.

To Reproduce

  1. Go to a city with both a bus and metro network
  2. Go to options, draw map
  3. Open the map
  4. See error

Logs Game Log:Player copy.txt

When checking browser console log, I found this error in the faulty map, but not in the working map.

Rockwood_2035-04-17-15-59-14.html:969 Uncaught TypeError: Cannot read properties of undefined (reading 'stopId')
    at recalculateSegments (Rockwood_2035-04-17-15-59-14.html:969)
    at Rockwood_2035-04-17-15-59-14.html:1021

The below maps are the same network, the only difference was that one has a metro network, the other doesn't. These files are in a zip file, Github doesn't allow sending HTML files directly.

HTML file of working map: Bus map working.html.zip

HTML file of broken map: Metro + bus map broken.html.zip

Screenshots

Working map

Working map

Broken map

Screen Shot 2022-07-19 at 6 30 56 PM

Additional context