News:

Simutrans Forum Archive
A complete record of the old Simutrans Forum.

[11.0] problematic routing

Started by asaphxiix, July 14, 2013, 01:33:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

asaphxiix

convoys take the red routing, rather than the more appropriate blue routing.


http://imgur.com/vWnUXB0


http://speedy.sh/j2NVE/routing.sve

neroden

In simutrans, convoys have a preference for going "straight ahead" rather than turning. 

The best way to fix this is for the player to use waypoints, since this can solve the problem in every case I've ever found.  The waypoint will force the convoy to make the turn where you want it to turn, and then it follows an appropriate route the rest of the way.  It is not worth changing the routing engine for this.

ӔO

it can get costly, but demolishing some buildings to make straighter roads can also fix this.

I think you can get away with just one building in this case.
My Sketchup open project sources
various projects rolled up: http://dl.dropbox.com/u/17111233/Roll_up.rar

Colour safe chart:

asaphxiix

thanks guys. this isn't a major problem anyways, but I still don't see how the red way has less turns than the blue.

neroden

Quote from: asaphxiix on July 14, 2013, 04:15:38 AM
thanks guys. this isn't a major problem anyways, but I still don't see how the red way has less turns than the blue.

It isn't "less turns", it's "at any given corner, the convoy prefers to go straight".   Notice that two of the times the convoy goes the "wrong way" it goes straight instead of making a turn?  Yep, that's what's going on.  It will avoid taking routes which take it further away from its target, which is what convinces it to make the turns which it *does* make....
---
As a result, you can convince it to go the correct way by preventing it from going straight at those two corners (breaking the road grid).

greenling

Hello asaphxiix
That what you have alive, came through wrong timeing to let drive a convoy.
Opening hours 20:00 - 23:00
(In Night from friday on saturday and saturday on sunday it possibly that i be keep longer in Forum.)
I am The Assistant from Pakfilearcheologist!
Working on a big Problem!