The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: Vladki on July 06, 2016, 08:21:40 PM

Title: Weird choose signal behavior
Post by: Vladki on July 06, 2016, 08:21:40 PM
Again on the network game - watch the second train enter trnava station, with reservations displayed. It will reserve two tracks, blocking the first train. The extra track is freed when the train stops and starts reversing.
I admit this layout is quite unusual for a simutrans game, and could be fixed by some end-of-choose signs and choose signals closer to the platforms.
Title: Re: Weird choose signal behavior
Post by: jamespetts on July 09, 2016, 01:57:01 PM
I am having some trouble reproducing this on the server, I am afraid: the first train goes into the platform nearest the town, and the second, in order to avoid conflicting with both it and the train that goes up and down the straight line, goes into the far platform, switching over at the points near the cargo station, junction and bridge.
Title: Re: Weird choose signal behavior
Post by: Vladki on July 09, 2016, 07:42:39 PM
Send the train from the double line to depot, so that it does not interfere. Then watch the reservations
Title: Re: Weird choose signal behavior
Post by: jamespetts on July 09, 2016, 09:56:16 PM
Splendid, thank you for that. I think that I have now fixed this; do you care to re-test?
Title: Re: Weird choose signal behavior
Post by: Vladki on July 10, 2016, 07:52:53 PM
Almost fixed. Reservations work as expected, the firs train  can depart, while the second is arriving. But the signal on the track closest to city (in the middle of station), turns to caution, when the second train makes reservation of the other track. Play the game locally co that you can rotate the map and see the aspect.
Title: Re: Weird choose signal behavior
Post by: jamespetts on July 10, 2016, 10:49:18 PM
I think that I have fixed this; do you care to re-test?
Title: Re: Weird choose signal behavior
Post by: Vladki on July 11, 2016, 07:53:54 PM
Now it behaves correctly

edit: new issue appeared - with all 3 trains running, when the first train is on the platform closest to city, the train from the double line is heading to the second platform, and the third train approaches the station - distant signal turns green, but the entry (choose signal) stays at danger, but the third train passes through, and stops "under the bridge", because the track ahead is already occupied by the first train leaving the station - leading to deadlock.

I'm leaving the network game deadlocked - the trains overlap, so it seems that there is only one train under the bridge. You can unlock the game by sending the third train to nemcanka.
Title: Re: Weird choose signal behavior
Post by: jamespetts on July 31, 2016, 10:03:08 PM
I am having trouble reproducing this: it is deadlocked when I load it, but there seems to be a tile reserved that ought not to be. When I clear that manually, I cannot find any further choose signal related deadlocks (there seemed to be a head-on collision at one point, but this does not seem to be the thing that you were reporting. Can you give some more detailed steps to reproduce?
Title: Re: Weird choose signal behavior
Post by: jamespetts on August 06, 2016, 12:32:02 PM
I should note that the head on collision was caused by a problem with the one train staff, which I think that I fixed a few days ago.
Title: Re: Weird choose signal behavior
Post by: Vladki on August 08, 2016, 10:19:03 PM
There was one another deadlock, definitely not related to one-train staff I'll try to repeat it on the server game.

Edit: Managed the deadlock - see the bridge at north head of Trnava station, there is a head-on collision of trains.

May be related with another choose signal issue - if the 3-state choose signal cannot reserve beyond the next signal (no stop, and end-of choose is even  further away, it should just display caution. But it displays clear with alternate route. Can be seen sometimes in Nemcanka station, if you let the first pax train wait longer in trnava predmestie. (You have to unlock the current deadlock first :)
Title: Re: Weird choose signal behavior
Post by: Vladki on August 29, 2016, 07:21:46 PM
I'm not sure which signal said this but I got this when running with debug on the server:

ERROR: rail_vehicle_t::activate_choose_signal():        could not reserved route after find_route!
Title: Re: Weird choose signal behavior
Post by: jamespetts on February 18, 2017, 01:01:44 AM
I am currently reviewing old bug reports and I notice that this one appears to have no reported resolution. May I ask whether this can still be reproduced?
Title: Re: Weird choose signal behavior
Post by: Vladki on February 18, 2017, 07:04:45 PM
I could not reproduce this deadlock again