News:

Simutrans Sites
Know our official sites. Find tools and resources for Simutrans.

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

Started by z9999+, October 17, 2009, 06:28:44 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

z9999+

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.

prissi

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.


z9999+

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.

prissi

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.