The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: ӔO on October 28, 2012, 11:07:40 PM

Title: [10.12] Rail sign bug
Post by: ӔO on October 28, 2012, 11:07:40 PM
Occasionally, convoys will get stuck behind a signal, even if their paths are clear.
It seems to happen more commonly on diagonals or just after exiting a diagonal.

Using 'B' to clear their next block will help the convoys move along.


edit: Also, players, other than the owner, can also interfere with the block reservation of trains.


edit2: Seems to be something with two trains running closely together.

edit3: Seems to be sign on station + two trains running closely together + right after a curve.
Title: Re: [10.12] Rail sign bug
Post by: jamespetts on October 30, 2012, 01:02:03 AM
Thank you for the report. Can you be a little more specific - when you say "seems to be..." do you mean that the bug is confined to this situation?
Title: Re: [10.12] Rail sign bug
Post by: ӔO on October 30, 2012, 02:12:51 AM
From my testing, it would appear to be that some signal configurations near or on stations may cause the block reservation to act inappropriately.

Hopefully this picture would demonstrate it best.

Top: no
Middle: okay
Bottom: okay

Conditions appear to be signal in the middle of platform with two or more trains running close to each other in serial.
It also seems to occur if a choose signal is placed right after a curve, with two or more trains running close to each other in serial.

It was happening quite frequently on asphix's game.
Title: Re: [10.12] Rail sign bug
Post by: asaphxiix on October 30, 2012, 08:59:51 AM
here is a save - see in northern italy

http://simutrans-germany.com/files/upload/nor-italy.sve (http://simutrans-germany.com/files/upload/nor-italy.sve)

edit: just loaded this and I see that upon loading the game, the jam is released...but you can still see the line formed
Title: Re: [10.12] Rail sign bug
Post by: jamespetts on November 03, 2012, 09:51:18 PM
Hmm. I can see this problem in the very big nor-italy.sve game, but I cannot reproduce it in a simple testing environment, which makes it difficult to find where in the code that the problem is using breakpoints.

AEO - do you think that you could upload the game that you made so as to produce that screenshot above?

Edit: Narrowed down the problem a little: it seems to occur when trains reserve some arbitrary tiles way ahead of where they are on their ultimate route, and in front of some other trains, which are then held back. I have yet to find out why this occurs...
Title: Re: [10.12] Rail sign bug
Post by: jamespetts on November 11, 2012, 04:29:13 PM
I think that I have managed to find and fix this one now: have a look at my 10.x branch. If anyone could test this before I put out the new version, I should be most grateful.
Title: Re: [10.12] Rail sign bug
Post by: asaphxiix on November 11, 2012, 05:46:55 PM
I would so like to! I've managed to compile a pak so far... but still compiling the game seems kinda complicated.

you the best james
Title: Re: [10.12] Rail sign bug
Post by: jamespetts on November 11, 2012, 09:09:58 PM
10.13 with the fix for this now released.