News:

Use the "Forum Search"
It may help you to find anything in the forum ;).

11.12 wayfinding bug

Started by dannyman, October 11, 2013, 02:16:56 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dannyman

[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.

Sarlock

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."
Current projects: Pak128 Trees, blender graphics

jamespetts

Are the loaded lorries too heavy for the bridge?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

dannyman

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 . . .

Sarlock

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

Going to test more.
Current projects: Pak128 Trees, blender graphics

jamespetts

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.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.