The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Brunel on September 26, 2008, 11:33:38 am

Title: Rev.2035 - one stop only lines and trying to update them bug
Post by: Brunel on September 26, 2008, 11:33:38 am
Linux 2.6.24-19 Ubuntu 8.04 GNOME 2.22.3

Begin a new game and do some construction works (railtracks or roads, stations or freight yards...), then open the 'line management' window or 'Garage' window or 'Train depot' window or..., no matter if the game is running or paused, and create one or several lines and put only one stop at least on one of them, with all the lines windows closed try to edit the one with one stop only by selecting it and clicking on 'Update line' this is what pops out:

FATAL ERROR: minivec_tpl<T>::[]
index out of bounds: 255 not in 0..-1
PRESS ANY KEY

Did some tries and it happens on every pak, from releases later than r2002 and icons of truck and ship on 'line management' window had disappear too, it did not happen on releases as older as r1937 which is the very oldest I have in my hdd, the game just kept an empty line which you could update whenever you wanted.

Regards
Title: Re: Later than r2002 - one stop only lines and trying to update them bug
Post by: DirrrtyDirk on September 26, 2008, 11:52:06 am
Well, what was the latest version you tried and had the error appear? "later than r2002" is a little vague.

IIRC some error concerning the "index out of bounds" message has been fixed by now. So have you tried the latest version (which is r2035 as we speak)?
Title: Re: Later than r2002 - one stop only lines and trying to update them bug
Post by: Brunel on September 26, 2008, 01:35:15 pm
I tried on several of them from the following release of r2002 to r2035 itself. ;)

As I said, until r2002 the game left a blank line if you put in only one stop (so erased the stop when you closed the window) but you could edit the line whenever you wanted if you closed the window by accident, now if you try to update a blank line the game crush.

This was useful to me because I used to create as many lines asĀ  the factory was chained to and add just the factory's stop and then go to every coal mine, corn field or whatever, did the construction works and inserted the convenient stop in the lines.

Regards
Title: Re: Later than r2002 - one stop only lines and trying to update them bug
Post by: DirrrtyDirk on September 26, 2008, 01:54:51 pm
Ah now I understand...

Yes, that seems indeed to be a bug.
Title: Re: Rev.2035 - one stop only lines and trying to update them bug
Post by: prissi on September 28, 2008, 06:42:24 pm
Should be fixed.