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

[1862] Auto-routing fails when running freight trains #9627

Open
Yuki-yao opened this issue Sep 18, 2023 · 6 comments
Open

[1862] Auto-routing fails when running freight trains #9627

Yuki-yao opened this issue Sep 18, 2023 · 6 comments
Labels
1862 autorouting Issues relating to autorouting

Comments

@Yuki-yao
Copy link

Yuki-yao commented Sep 18, 2023

If the corporation has any freight train, uncaught error occurs in javascript when I click the auto routing button.
I checked the console and got message like this:
image

Hotseat game json link: https://gist.github.com/Yuki-yao/42b9614470fe5cd1bc791b23db30b0ed
To reproduce the bug, just buy L&H (with freight permission) and lay a track towards the C2 port, then try to run a 1F train.
image

Updated: I'm not sure if this would help, but there is another example in which auto-routing generated bad result, when clicking auto button after resetting to last route: https://gist.github.com/Yuki-yao/35d9e35560ad25b6bdb96c2517f8bffb. No error reported in console.

Browser version: Chrome 116.0.5845.187, on desktop

@philcampeau
Copy link
Collaborator

Duplicate of #5925

@philcampeau philcampeau marked this as a duplicate of #5925 Sep 18, 2023
@philcampeau philcampeau marked this as not a duplicate of #5925 Sep 18, 2023
@philcampeau philcampeau reopened this Sep 18, 2023
@philcampeau
Copy link
Collaborator

Duplicate of #5925

@philcampeau philcampeau marked this as a duplicate of #5925 Sep 18, 2023
@Yuki-yao
Copy link
Author

@philcampeau Sorry if I misunderstood something, but it seems that #5925 is about revenue calculating on permanent trains. Is that problem also related to auto routing (with error output in console)?

@philcampeau
Copy link
Collaborator

This is what I get for looking at GitHub at 3am.

Sorry about that, you're right. This is a different issue.

@philcampeau philcampeau reopened this Sep 18, 2023
@Yuki-yao
Copy link
Author

Well I find out that sometimes auto routing can finish even if the corporation has freight trains, with wrong result like this: (https://gist.github.com/Yuki-yao/af2390f7190a9c5a6ceac7011dbf339b)

image

Just a guess: considering that the correct route is linking the port, maybe there is something wrong with the auto-routing calculation involving ports?

@roseundy
Copy link
Collaborator

I'm not sure auto-routing has ever worked for 1862 due to the unusual rules for freight trains.

@ollybh ollybh added 1862 autorouting Issues relating to autorouting and removed needs triage labels Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1862 autorouting Issues relating to autorouting
Projects
None yet
Development

No branches or pull requests

4 participants