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

District naming fails to apply #7

Open
taradinoc opened this issue Mar 30, 2019 · 1 comment
Open

District naming fails to apply #7

taradinoc opened this issue Mar 30, 2019 · 1 comment

Comments

@taradinoc
Copy link
Owner

Reported in Steam comments:

Gray Mess Mar 26 @ 12:39pm
Thanks for making this mod. Seems like it will be very useful. However, I'm having the same issue as Raven_2012 regarding District naming. I've tried it on a dozen different bus lines all running through two or more districts. Naming always stays "Line" after the number. Lines that stay within one district will be named correctly. Playing with very minimal mods that do no involve public transportation or traffic in general. Thanks!

...

TaradinoC [author] Nov 27, 2018 @ 10:55am
@Raven_2012 I can't reproduce that on my end. Are you sure the line you're refreshing has stops inside a district?

Raven_2012 Nov 2, 2018 @ 5:27pm
I mean it won't name the line if set to Districts only Streets. The colors generate.

Raven_2012 Nov 2, 2018 @ 5:24pm
I just installed this in a map save, I did the refresh on line and color, it works for Street names, but not at all if set for Districts.

@taradinoc taradinoc added the bug label Apr 9, 2019
@taradinoc
Copy link
Owner Author

District naming is only implemented for lines that stop in 1 or 2 districts. Lines that stop in 3 or more districts will get the #1 Line treatment.

case 1:
return $"#{lineNumber} {districts[0]} Local";
case 2 when stopCount <= 4:
return $"#{lineNumber} {districts[0]} / {districts[1]} Express";
case 2:
return $"#{lineNumber} {districts[0]} / {districts[1]} Line";
default:
return $"#{lineNumber} Line";

How should these be named instead?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant