News:

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

Way constraints

Started by jamespetts, December 14, 2008, 12:35:09 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Spike

An heuristic could find this end "suspicious" but it might as well be an intended design. So diagnosis is possible, basically, but also imperfect.

Also the path finding must try to jump over the gap, and check if the continuing route actually leads to the desired destination. It's doable but quite a bit extra work.

I assume the feature would still be helpful, even if detecting a few false "problems". Prissi and the patchmakers must decide if it's useful enough to be tried.

jamespetts

Hajo/VS,

I imagine that detecting routing problems caused by signals, signs, electrification and way constraints is orders of magnitude easier than detecting routing problems caused by missing sections of a way, since the former can just run the same pathfinding routine with the constraint checking turned off and comparing the result to that with it turned on, whereas the latter would require enormously complicated hypothetical and heuristic means of determining the route.

A system that told players when their destination wasn't reachable because of a problem with signals, signs, electrification or constraints but gave no reasons when the problem was an entirely missing connexion is vastly better than one that never gives any reasons.
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.