The International Simutrans Forum

Simutrans Extended => Simutrans-Extended development => Topic started by: chicken on May 18, 2012, 02:00:01 AM

Title: Goods traveling wrong way
Post by: chicken on May 18, 2012, 02:00:01 AM
Playing with some goods I setup a supply chain between two pubs, a brewery and an orchard. All use piece goods transport.


Pub -------- Brewery
|                     |
|                     |
Orchard ------ Pub


(see also in attached image).


Sometimes it works. But other times I notice goods traveling the wrong way around the circle. It's much longer that way. Is this a bug? How can I prevent this/debug this?


(game too large to attach)
Title: Re: Goods traveling wrong way
Post by: jamespetts on May 18, 2012, 08:07:03 AM
Can you upload a saved game to files.simutrans-germany.com?
Title: Re: Goods traveling wrong way
Post by: greenling on May 18, 2012, 06:10:12 PM
Jamespetts & chicken
The website files.simutrans-germany.com have a bug the upload from files they are biger than 7,5Mb not work!
Title: Re: Goods traveling wrong way
Post by: jamespetts on May 18, 2012, 11:36:18 PM
Ahh, in that case, can you try to upload it somewhere else? It is very difficult to diagnose without a saved game, unfortunately.
Title: Re: Goods traveling wrong way
Post by: chicken on May 19, 2012, 03:04:56 AM
Doing this in 2 posts with RAR.

Title: Re: Goods traveling wrong way
Post by: chicken on May 19, 2012, 03:05:22 AM
Check out Brownport pub -- it's got beer destined for Duckworth pub -- the long way around.


Thanks.

Title: Re: Goods traveling wrong way
Post by: jamespetts on May 19, 2012, 10:13:12 AM
Having looked at this, this is not a bug. Look at Brownport Brewery Dock: the waiting time there for goods travelling to Duckworth Pub Dock is just over eleven hours. This means that, taking into account the waiting time, it is faster for goods to take the convoluted route that they do in fact take in the game. You need to increase the service frequency between Brownport Brewery Dock and Duckworth Pub Dock.
Title: Re: Goods traveling wrong way
Post by: chicken on May 19, 2012, 02:17:50 PM
The other route involves a long boat ride too, though, going through Brownport Orchard Dock with "unknown" waiting time. How does Simutrans-ex treat "unknown" waiting time when calculating shortest route?
Title: Re: Goods traveling wrong way
Post by: jamespetts on May 19, 2012, 02:27:09 PM
It assumes a waiting time of two minutes for an "unknown" waiting time.
Title: Re: Goods traveling wrong way
Post by: greenling on May 19, 2012, 02:36:57 PM
Jamespetts
It´s Possible to create own waiting Time for goods,mail and passenger?
I know Places in germany there comes only one Bus on Day.
In Germany comes on Sunday no Mail but it gives Places how you can be give up Mails on Sunday.
The Mailservice at my Job it silly:
On Monday goes mail from Tuesday to the Post Office.
On Tuesday goes mail from Wednesday to the Post Office.
On Wednesday goes mail from Thursday to the Post Office.
On Thursday goes mail from Friday to the Post Office.
The Mail from Friday goes than on Monday to the Post Office.
Title: Re: Goods traveling wrong way
Post by: jamespetts on May 19, 2012, 03:07:30 PM
What do you mean exactly by creating one's own waiting time? The waiting time is the time recorded that goods/passengers/mail actually wait to board their convoy.
Title: Re: Goods traveling wrong way
Post by: Carl on May 19, 2012, 03:46:09 PM
Quote from: jamespetts on May 19, 2012, 02:27:09 PM
It assumes a waiting time of two minutes for an "unknown" waiting time.

Now that the connection is being used, of course, a waiting time will eventually be registered -- and then the goods will be in a better position to pick the genuinely fastest route.
Title: Re: Goods traveling wrong way
Post by: chicken on May 19, 2012, 05:59:32 PM
The route in question has a 100% load order, could that be leading to the "unknown" wait time? Because I have run this scenario many years into the future and it still has an "unknown" waiting time on that route.
Title: Re: Goods traveling wrong way
Post by: jamespetts on May 19, 2012, 06:21:53 PM
If the convoy never reaches 100% and therefore never leaves, that would indeed cause it to register no waiting times.
Title: Re: Goods traveling wrong way
Post by: chicken on May 19, 2012, 06:24:27 PM
It does leave however, it even has a travel time.
Title: Re: Goods traveling wrong way
Post by: jamespetts on May 19, 2012, 06:27:30 PM
In which case, there is no reason in principle why a 100% load would prevent waiting times from accumulating.
Title: Re: Goods traveling wrong way
Post by: chicken on May 19, 2012, 07:19:30 PM
I removed the 100% load orders on the two ships that serve Brownport Orchard. I have run the simulation for several in-game years but it still says that waiting times are "unknown."
Title: Re: Goods traveling wrong way
Post by: jamespetts on May 19, 2012, 10:32:18 PM
Hmm - further investigation has revealed a more serious issue with docks, wherein boats do not properly register waiting or departure times because they do not actually stop on a tile which, when looked up, gives a handle to the halt in question. I shall have to fix this.
Title: Re: Goods traveling wrong way
Post by: chicken on May 19, 2012, 10:34:09 PM
Thanks for checking into this. I should also note that the one boat which did have a waiting time listed was at a Canal Quay, not a dock.
Title: Re: Goods traveling wrong way
Post by: jamespetts on May 21, 2012, 10:48:57 AM
I think that I have fixed the above identified error on the -devel branch. With the test save, waiting times are now registered in Brownport Orchard Dock, whereas they were not before.