kaomoneus / OpenTTD

OpenTTD is an open source simulation game based upon Transport Tycoon Deluxe
https://www.openttd.org/
Other
4 stars 1 forks source link

[Bug]: Breakdown mech is out of balance in slow pace #1

Closed kaomoneus closed 2 years ago

kaomoneus commented 2 years ago

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: