News:

SimuTranslator
Make Simutrans speak your language.

Road convoi can't reroute if stopped at multiple intersections

Started by Isaac Eiland-Hall, January 24, 2016, 09:58:08 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Isaac Eiland-Hall

The subject isn't the greatest, so let me explain:

If you use road vehicles, you know that if you remove a road tile that's in its path, it will be forced to re-route. I've found that road vehicles won't reroute (or even say they're stuck - they just sit there) if there's two intersection tiles in front of them. Example:

http://i.imgur.com/2EDtEwG.png

Note that I had to reconstruct this example, but it's what was happening. I know it's slightly confusing, so here's what you're looking at:

1. The bus is travelling the same way multiple road vehicles were, and is in the tile in which they all got stuck.

2. The two circles indicate the two intersections.

3. The arrow at the top is where the road I removed was - the busses were travelling up that road

4. The busses stopped until I removed the road with the "X" and arrow on it. Then the busses rerouted.

Note that I rebuilt the road with the X on it, and busses already in-progress who reached the intersection were stuck again until I removed the road again. I rebuilt the road to show this example...

I also had another case where there was a flat river crossing with an intersection just past it that also cause the same scenario:

http://i.imgur.com/EezhSFc.png

Okay, slightly confusing, but the longest arrow is where the old highway used to be.

The short orange crossbar is where I deleted the old highway (now there's unconnected dirt road - it was grass). So instead of going straight after crossing the bridge, they had to turn left or right (where the shorter arrows point - there's no longer a road in one direction).

In this case, vehicles stopped before the level water crossing and wouldn't proceed until I removed the road as shown here (I removed the ability to turn right).

Again, no "stuck" messages. The vehicles just started lining up.

Am using the Steam nightly: 120.1.3 Nightly rr7746

TurfIt

The bus driver is patiently waiting for you to rebuild the road he was supposed to take!
The stuck messages are only generated at month end; Wait until then (or the month after that) and I'd expect you'll see a message.
I assume you mean automatically reroute? You should be able to trigger a reroute manually by opening/closing the schedule.

Codewise, if you remove the ground, it reroutes. Removing the way, it does not. Probably should?

Isaac Eiland-Hall

I guess it's a question of what the devs think the proper functionality is. :)

I didn't realize stuck messages happened only at month end - I'll remember that.

And manual rerouting would be a pain since a number of different lines use the roads. :)

All said, it's not a huge worry - especially if it's not unexpected. I'm just used to seeing road vehicles come to the end of the existing road (where I deleted road beyond a point) and "stutter" and instantly reroute themselves. This stopping is new to me. :)

DrSuperGood

The interchange logic was modified at some stage to prevent infinite recursion. If it never used to happen before it is possible that those fixes (implemented a year or so ago) introduced this as a bug.

Ters

I'm pretty sure that removing ways cause rerouting once the vehicle tries to drive onto that piece of way. The problem here probably has something to do with road vehicles trying not to enter an intersection unless they can leave it, causing them to never reach the check for missing ways. This is assuming all stuck vehicles saw the intersection at the time they got stuck (not sure I understood this correctly), because I don't think intersections are marked in the route.

Isaac Eiland-Hall

#5
It sounds like that's on the right track¹. Is there something in particular I can try to do to test to get more information? The next thing I'm going to do is see if I can reproduce this on a small map - and leave it for a while to see if I get a "stuck" message at the end of the month.

edit1: End of the first month, and no "stuck" message or reroute.

http://i.imgur.com/Gj6r1r3.png

edit2: Okay, end of the second month, and now I have a "stuck" message.

edit3: Third, forth month - it hasn't moved, only "stuck". I thought "stuck" eventually gave up. I'll leave it running overnight because now I'm sleepy. :)



¹ well... road

Ters

I don't think stuck ever gives up without human intervention. And I think it is correct that a vehicle must have stood still the entire month before it is marked as stuck at the end of a month (or beginning of the next). I also believe that new stuck messages are generated every month if the situation doesn't change.

Isaac Eiland-Hall


Dwachs

Parsley, sage, rosemary, and maggikraut.

Isaac Eiland-Hall


Ters