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

train loses timetable times after auto-renewal #3568

Closed
DorpsGek opened this issue Jan 25, 2010 · 2 comments
Closed

train loses timetable times after auto-renewal #3568

DorpsGek opened this issue Jan 25, 2010 · 2 comments
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)

Comments

@DorpsGek
Copy link
Member

kvtb opened the ticket and wrote:

I've setup timetables for a certain set of trains.
In order to ensure correct distance between trains, I've calculated start-dates for the time table for each train on that line.
This works perfect, however, when a train gets too old and is automatically replaced, the start-date (and all arrival/departure dates) of that train disappear and the train no longer follows a schedule.

I've been able to reproduce this in attached savegame (note: this one was saved in a cargo-dist build, so if you cannot find this bug by just looking at the code, you may need to hack the savegame to open it?

Instructions:

  1. open the savegame, pause immediately
  2. locate train 118. This is will be replaced after unload at Unterfurt railway station.
  3. Make sure you show the timetable for this train. Before the train enters the depot, the arrival and departure dates are shown for each station in the schedule.
  4. The train will be replaced, notice how all arrival and departure dates have disappeared...

I don't know if it matters, but the train is renewed at a depot that is not near the first station in the schedule.

Thanks.

Attachments

Reported version: other
Operating system: All


This issue was imported from FlySpray: https://bugs.openttd.org/task/3568
@DorpsGek
Copy link
Member Author

frosch wrote:

I guess copying VF_TIMETABLE_STARTED is missing in Vehicle::CopyVehicleConfigAndStatistics().


This comment was imported from FlySpray: https://bugs.openttd.org/task/3568#comment7455

@DorpsGek
Copy link
Member Author

frosch closed the ticket.

Reason for closing: Fixed

in r18929


This comment was imported from FlySpray: https://bugs.openttd.org/task/3568

@DorpsGek DorpsGek added Core flyspray This issue is imported from FlySpray (https://bugs.openttd.org/) labels Apr 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flyspray This issue is imported from FlySpray (https://bugs.openttd.org/)
Projects
None yet
Development

No branches or pull requests

1 participant