The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: Brambo on March 17, 2011, 07:53:17 PM

Title: [9.3]: index out of bounds after updating route
Post by: Brambo on March 17, 2011, 07:53:17 PM
I got an error in Simutrans exp 9.3 (pakBritain.128 standard 1.08), whereby I got an index out of bounds error after updating a line (adding 1 or more random stations).

Screenshot:
http://www.megaupload.com/?d=BWL4NOBU

Save:
http://www.megaupload.com/?d=YWQNXF6T

To reproduce:
-Pause the game
-Find the line Oldham-Uckfield
-Update the line
-Unpause

Note: this savegame was ported from 9.2 (and before that, 9.1, 9.0 and 8.2), should that matter. Hope you can investigate this :)
Title: Re: [9.3]: index out of bounds after updating route
Post by: Junna on March 17, 2011, 11:17:22 PM
Quote from: Brambo on March 17, 2011, 07:53:17 PM

Note: this savegame was ported from 9.2 (and before that, 9.1, 9.0 and 8.2), should that matter. Hope you can investigate this :)

I believe this does matter.

Save games from old versions are prone to bugs like this. I've never had this bug on any of my plays, but I've tended to avoid continual use of save games from prior releases. I did however experience some weird behaviours in Exp 7.1 with saves from 6.6.
Title: Re: [9.3]: index out of bounds after updating route
Post by: jamespetts on March 18, 2011, 01:28:31 AM
Thank you very much for that report: I have found the problem, I think, and it seems to be fixed on my 9.x branch on Github. The fix will be included in the next release, Simutrans-Experimental 9.4.

Incidentally, I notice that you are using the Standard version of Pak128.Britain, and are playing with the timeline off. I recommend starting your next game with the timeline on, and using the Experimental specific version of Pak128.Britain, as many features are not used fully or at all without the timeline or the Experimental version of the pakset.
Title: Re: [9.3]: index out of bounds after updating route
Post by: Junna on March 18, 2011, 09:03:29 AM
Quote from: jamespetts on March 18, 2011, 01:28:31 AM
Incidentally, I notice that you are using the Standard version of Pak128.Britain, and are playing with the timeline off. I recommend starting your next game with the timeline on, and using the Experimental specific version of Pak128.Britain, as many features are not used fully or at all without the timeline or the Experimental version of the pakset.

As regards using the standard set I've done that some times to avoid the weight limits; will the disabled weight limit feature be fixed in Exp sometime? Right now it doesn't work, the setting in config is ignored.
Title: Re: [9.3]: index out of bounds after updating route
Post by: jamespetts on March 18, 2011, 12:48:15 PM
I wasn't aware of that issue - is it ignored even for new games?
Title: Re: [9.3]: index out of bounds after updating route
Post by: Junna on March 18, 2011, 01:44:03 PM
Quote from: jamespetts on March 18, 2011, 12:48:15 PM
I wasn't aware of that issue - is it ignored even for new games?

It is. Changing the config parameter seems to have no effect on the weigh limit application.
Title: Re: [9.3]: index out of bounds after updating route
Post by: jamespetts on March 28, 2011, 12:08:49 AM
This should be fixed in 9.4.