Author Topic: Bus changing destination after loading of game  (Read 108 times)

0 Members and 1 Guest are viewing this topic.

Offline Jando

Bus changing destination after loading of game
« on: July 16, 2017, 01:23:19 PM »
I believe this may be a save/load-cycle bug: I had noticed on some occasions that buses (on various lines, not limited to a particular one) did not seem to travel according to schedule after loading a game but didn't yet have a saved game where I could show this. By pure luck this saved game now shows the effect: http://files.simutrans.com/index.php/s/2o0dfZ7HsOnU5yo

1. Load saved game, immediately hit pause, need to be fast.
2. Jump to vehicle #25, serving the Curlingsea-Swainesmouth line.
3. Note that the vehicle is drawn as if it would travel East to Curlingsea. (left side travel)
4. Note that the vehicle carries passengers to Curlingsea.
5. Note that the vehicle's information window shows it's bound for the opposite direction. i.e. to Swainesmouth.
6. Note that hovering the mouse over the vehicle will say "Schedule changing" or "Reversing", depending on how fast you have hit the pause button. :)

After unpausing the game the vehicle will turn around and head into the opposite direction. Vehicle #26 shows a similar behaviour.

Thanks!

Online jamespetts

  • Simitrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 15348
  • Total likes: 367
  • Helpful: 164
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Bus changing destination after loading of game
« Reply #1 on: Yesterday at 12:51:25 AM »
Thank you for this report. This is a very difficult problem to deal with. I have looked at the provided saved game file, and the saved value for the current schedule entry is 1, which is consistent with it actually going to Swainesmouth. Thus, while it appears as though there may well be an error, the error appears to occur during saving rather than loading, and I cannot reproduce the error (and therefore find out what is causing it) with the saved game provided.

If you find that this occurs again, perhaps you could try to document enough details so that we can try to work out the circumstances in which this arises and I can see if I can find the problem by inference?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.