The International Simutrans Forum

Development => Bug Reports => Topic started by: Max-Max on May 26, 2013, 02:00:04 PM

Title: Factory stuck on a non existing connection.
Post by: Max-Max on May 26, 2013, 02:00:04 PM
One of my trains suddenly stopped to load any cargo at the Cellulose factory. The factory was producing goods, the platform was full but the train didn't load.

I rechecked the route and made a new schedule for the train. Still refusing to load.
I then removed all stations/stops within the factory's range and look... The factory still thinks it is connected... I guess the there must be a glitch in the list of connections somewhere...

Is there a way to clean up this kind of "lose ends"? Is there a sanity check at load/save to remove invalid links?
Title: Re: Factory stuck on a non existing connection.
Post by: Ters on May 26, 2013, 02:32:01 PM
I wonder if the original problem with the train not loading was something that could happen if the map was rotated and the consuming factory wasn't rectangular. If so, then I think it should have been fixed in a long line of nightlies and the latest release.
Title: Re: Factory stuck on a non existing connection.
Post by: prissi on May 26, 2013, 08:23:37 PM
The connections is only updated slowly and will be shown as long as somewhere are some goods in transit. You may save and reload the game to see, if it still persists.
Title: Re: Factory stuck on a non existing connection.
Post by: Max-Max on May 27, 2013, 12:30:29 AM
I saved, restarted Simutrans and loaded it back. Still same connection and the Factory continues to produce goods even when there are no stops within range.

I also deleted all lines and schedules that previously stoped at these factories (Producer and consumer), It is stil connected and producing goods.

I'm running v112.3 Nightly from last week.
Title: Re: Factory stuck on a non existing connection.
Post by: Ters on May 27, 2013, 04:55:24 AM
The factory should keep producing until its output queue is full, shouldn't it? It would make sense since the default state for a factory is to be full. If goods keeps disappearing from the output queue, there is something odd going on, because the code that removes goods from a factory should also put it somewhere.

Have you saved and reloaded after deleting all stops and vehicles? It could be that goods in transit that disappears because the station/vehicle they're on is deleted, don't register with the goods-in-transit monitoring system that they are gone. Or that the attempt to notify fails because they have an invalid destination.

I think we should focus on the why the trains stopped loading in the first place. The rest might just be false leads or things that don't work because the data is already messed up by something else.
Title: Re: Factory stuck on a non existing connection.
Post by: Dwachs on May 27, 2013, 05:17:15 AM
Max-Max, could you please upload a savegame, which shows this behavior? This would make it much easier to debug ...
Title: Re: Factory stuck on a non existing connection.
Post by: Max-Max on June 06, 2013, 02:01:39 AM
Ouf, sorry, I forgot to turn on notification for this thread. Yes, I will see if I can dig out that game save for you...