Breakdown is kind of limit to free run of vehicle without service.
This is why for example we can't send slow planes from one corner of 4096x4096 map to another one without heaving it broken.
Actual result
Current breakdown mech is associated with days amount and thus breakdown might never happen during such long vehicle runs.
Steps to reproduce
Just run the game with year pace equal to one day and send airplane far away.
Some obvious problems one the way to fix it
1. Currently breakdowns are triggered by OnNewDay
After a night of wondering, I think we could trigger it at higher frequency. Perhaps we should introduce OnNewVanillaDay.
Luckily running cost expenses doesn't depend on service events and withdrawn on daily basis, which is OK fur us.
NOTE: We can still to store service period in vanilla days. It will allow us to keep backward compatibility with previous slowpace versions. May be in future we will be able to upgrade game saves from non-slow pace modes into slow-pace.
2. Update GUI, Vehicle Details dialog:
It should be possible to setup service period in hours and may be even in minutes.
"Last service" label should in addition to date should contain time. Perhaps we should reuse functions we use for current date and time.
Version of OpenTTD
12.0.slowpace
Expected result
Breakdown is kind of limit to free run of vehicle without service. This is why for example we can't send slow planes from one corner of 4096x4096 map to another one without heaving it broken.
Actual result
Current breakdown mech is associated with days amount and thus breakdown might never happen during such long vehicle runs.
Steps to reproduce
Just run the game with year pace equal to one day and send airplane far away.
Some obvious problems one the way to fix it
1. Currently breakdowns are triggered by
OnNewDay
After a night of wondering, I think we could trigger it at higher frequency. Perhaps we should introduce
OnNewVanillaDay
.Luckily running cost expenses doesn't depend on service events and withdrawn on daily basis, which is OK fur us.
NOTE: We can still to store service period in vanilla days. It will allow us to keep backward compatibility with previous slowpace versions. May be in future we will be able to upgrade game saves from non-slow pace modes into slow-pace.
2. Update GUI, Vehicle Details dialog: