The International Simutrans Forum

 

Author Topic: Private car routing needs more active invalidation  (Read 251 times)

0 Members and 1 Guest are viewing this topic.

Offline Vladki

  • Devotee
  • *
  • Posts: 3241
    • My addons, mostly roadsigns, pak128.cs
  • Languages: EN, CS
Private car routing needs more active invalidation
« on: April 17, 2020, 09:07:13 PM »
On stephenson simutrans game we have several occurences, where private cars end up looping a few tiles there and back, or can be even tricked into dead end. The trick is find a busy route junction, and delete one so that there still is an alternative (but a detour). The remaining route will come to standstill, and cars will start to pile up where the original route diverged. The wont continue, even if the alternative road is clear. You can try at stephensonsiemens - delete the road at (575,50) - (please do it offline). If you rebuild the old route, it will be used immediately again.

I tried that on less busy roads, and the cars seemed to adapt to new route much better.

Solution? - if the directions found by private car tell him to turn back, turn where no road is, or lead to dead end, the route for given destination should be immediately invalidated. Car should switch to old random mode (brownian motion)? Also any road deletion or change of oneway/twoway, should invalidate routes stored at that tile. Recalculation of route should not be immediate, as the roadworks may still be in progress.
(Or the car should be destroyed in an accident for obeying the navigation without applying common sense).

Funny places in stephenson-siemnes-game: (448,108), (553,98), (392, 119), (884, 475)

Offline Vladki

  • Devotee
  • *
  • Posts: 3241
    • My addons, mostly roadsigns, pak128.cs
  • Languages: EN, CS
Re: Private car routing needs more active invalidation
« Reply #1 on: April 18, 2020, 10:21:23 PM »
After some investigation into stuck places, I found out roads that are almost unused (bypasses) even after two years after being built.
I suspect that the private car routing is not recalculated at all.

Offline Freahk

  • *
  • Posts: 960
  • Languages: DE, EN
Re: Private car routing needs more active invalidation
« Reply #2 on: April 18, 2020, 10:36:30 PM »
I'd like to add that stored routes seem to take precedence over everything, thus mothballed road traps work again if placed on part or a route.
Further, cars can enter one-way roads in the wrong direction and pass unconnected roads as long as they are still adjacent.

Offline jamespetts

  • Simutrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 19684
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Private car routing needs more active invalidation
« Reply #3 on: May 16, 2020, 04:30:28 PM »
Can I check whether this is still an issue following the latest private car routing changes?

Offline Freahk

  • *
  • Posts: 960
  • Languages: DE, EN
Re: Private car routing needs more active invalidation
« Reply #4 on: May 16, 2020, 04:43:46 PM »
Further, cars can enter one-way roads in the wrong direction and pass unconnected roads as long as they are still adjacent.
That still persists, just after modifying roads with stored routes. Although routes will be updated rather quickly whenever that happens.

Not sure about mothballed traps, I'll try it out. In any case, such traps won't work for a long time as recalculated routes won't guide to mothballed roads.