The International Simutrans Forum

Simutrans Extended => Simutrans-Extended bug reports => Simutrans-Extended development => Simutrans-Extended closed bug reports => Topic started by: dannyman on October 11, 2013, 02:16:56 AM

Title: 11.12 wayfinding bug
Post by: dannyman on October 11, 2013, 02:16:56 AM
[size=78%]https://www.dropbox.com/s/lqvf5vl5lszmh0q/Steeplegate%20way%20bug.sve[/size]


Player has truck route from Inninghall Colliery to Inninghall power plane.

Trucks leave Inninghall direct to Colliery.

Upon loading, instead of going straight back to Inninghall, they detour uphill around toward Curborne and finally back to Inninghall.  Upon unloading, straight back to the Coliery.

bridge type at 209, 227, 1 doesn't matter.  Waypoint to same position has trucks drive loaded toward Inninghall, turn around on the bridge, head back toward the Colliery then uphill the long way around.

A second waypoint in town 205, 223, 0 brings loaded trucks down the expected path.  So, 99% confident its not a way constraint.
Title: Re: 11.12 wayfinding bug
Post by: Sarlock on October 11, 2013, 04:27:45 AM
Hi dannyman,

I tried to check but your save file can't seem to be located so I couldn't download it.

"Nothing Here

The file you're looking for has been deleted or moved."
Title: Re: 11.12 wayfinding bug
Post by: jamespetts on October 11, 2013, 08:49:43 AM
Are the loaded lorries too heavy for the bridge?
Title: Re: 11.12 wayfinding bug
Post by: dannyman on October 12, 2013, 03:41:40 AM
Okay, tried a new link for the save.  (Update above, but I'll mention here as well: https://www.dropbox.com/s/lqvf5vl5lszmh0q/Steeplegate%20way%20bug.sve)

The lorries can drive on the bridge if I use waypoints.  I also had tried replacing a bridge to the same type it drives over the long way around.  Hopefully a valid link will illuminate . . .
Title: Re: 11.12 wayfinding bug
Post by: Sarlock on October 12, 2013, 05:43:23 AM
Thank you for the updated link.

Curious.

I tested your map in a few different ways and indeed the road vehicles are behaving strangely.

When forced to use the return route with Waypoints it will take that route while loaded but if left to pathfind itself it will choose the longer route instead.

I did some testing with your map and uploaded a new save here.  You might want to take a look and see if you see something obvious, James.  I added a modern bus to the line and established the two waypoints outside the loading bays and it will also take that long route.  Further, I added dirt roads to the long section to make it REALLY long and they will still use that route instead.

Check vehicle #10, I made it use the return route using waypoints and it is happy to use it.

Further, if you chop off that road to the north, all road vehicles will then happily take the shorter route again.  But as soon as you reconnect the further roads, they will go down that way instead.  There is something about that path that they don't like... the modern bus that I added abhors that route so much that it will take the long way both ways, to and from, while the lorries will take the short way to the depot.  You can, however, force the bus to take the short route via waypoints and it will do it without protest.

Here is the modified save file:

Steeplegate way bug 2.sve (http://www.ssgholdings.ca/simutrans/saves/Steeplegate%20way%20bug%202.sve)

Going to test more.
Title: Re: 11.12 wayfinding bug
Post by: jamespetts on October 12, 2013, 01:15:29 PM
Thank you for your reports. I have now found and fixed the error on the 11.x branch. This error only occurs when enforce_weight_limits is set to 1 or 3 rather than the default 2, and occurs as a result of not updating code relating to finding the most appropriate route when convoys are allowed to travel over ways for which they are overweight (but more slowly) to take account of the change from vehicle weight to axle load and convoy weight.
Title: Re: 11.12 wayfinding bug
Post by: dannyman on October 13, 2013, 03:04:59 AM
Excellent!  Thanks!