Gregory365 / TPF2-Timetables

The Timetable mod for Transport Fever 2
GNU General Public License v3.0
13 stars 4 forks source link

Issue with Auto-Unbunch #70

Open stebbo63 opened 1 month ago

stebbo63 commented 1 month ago

Hello,

I have been using this mod for a while without issue and really enjoy it.

On my current map, however, I am noticing some very interesting behaviour. I always use the auto-unbunch option which has previously worked well. Now, I am noticing that the unbunch time is becoming un-realistic. On a two train route, with a frequency of about 4 minutes, the unbunch time has extended out to 23 mins.

This line has been running for some time, and I am wondering if the unbunch time is in a feedback loop, holding the train a little longer each time and slowly increasing the frequency time.

Regards, Chris.

Gregory365 commented 1 month ago

How the mod works

The mod uses the games built-in frequency estimate to spread departures by that amount (subtract the margin time) I have also noticed this happening in my game too. I wonder if how frequency is calculated has been changed. Has this issue been happening for a while for you, or only since the recent Autumn update?

The Problem

You are correct in this is caused by a feedback loop in which the unbunch time increases the frequency time, which causes the unbunch time to increase again, and so on.

The Solution

I increased the margin time from 1 to 2/3 minutes to account for longer frequency. This should prevent the increase in frequency time affecting the unbunch time. I also reset the timetable for the affected line by unchecking the tick-box next to the line name in the timetable menu, waited for the frequency of the line to reset to a sensible value again, and then re-enabled the line.

Thanks for the feedback.