Skip to main content
Topic: [bug r2783] Covoi doesn't keep loading when changed schedule  (Read 4232 times) previous topic - next topic

[bug r2783] Covoi doesn't keep loading when changed schedule

I don't know why, but all things what I had implemented are broken.
They don't keep loading and go to next stop.

[EDIT]
Ok, I found some problems in check_pending_updates().
It doesn't work well, if I change from 2 entry to 3 entry.
If a line has A-B, and insert C before A, convoi will go to different stop.

But it is Okay, I don't want to break all, so I will continue to discuss after next stable release.

Re: [bug r2783] Covoi doesn't keep loading when changed schedule

Reply #1
If something is inserted in the schedule, then the aktuell position is not the same any more. I.e. the first is_same fails. However, it finds the second position (i.e. the new halt) as matching one, and all is good again. All also for the other positions. In my tests with two stops I could not provoke skipping of a stop.


Re: [bug r2783] Covoi doesn't keep loading when changed schedule

Reply #2
Line A-B.
Next stop is B.
Insert C before A, C-A-B

First C gets 6 points and aktuell to A.
Second A will gets 1 points.
Third B will gets 3 points.
Finally convoi go to A.

[EDIT]
But please don't change code before release.
If you changed something, it may cause different problem.
There is no time left to test new one.

Re: [bug r2783] Covoi doesn't keep loading when changed schedule

Reply #3
I tried this single step in debugger and it was fine for a convoi waiting at a stop. A got the most points. But I agree about not changing.