Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

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

Open
Bohaska opened this issue Jul 19, 2022 · 0 comments
Open
Labels
low-priority bug Bugs that aren't braking

Comments

@Bohaska
Copy link

Bohaska commented Jul 19, 2022

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

@Bohaska Bohaska added the new bug Bug to be available yet label Jul 19, 2022
@klyte45 klyte45 added low-priority bug Bugs that aren't braking and removed new bug Bug to be available yet labels Sep 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
low-priority bug Bugs that aren't braking
Projects
None yet
Development

No branches or pull requests

2 participants