FS#1029 - Fix : Autorenew old vehicules
Attached to Project:
OpenTTD
Opened by Sylvain Devidal (MagicBuzz) - Thursday, 12 July 2007, 19:59 GMT
Last edited by andythenorth (andythenorth) - Monday, 14 August 2017, 20:11 GMT
Opened by Sylvain Devidal (MagicBuzz) - Thursday, 12 July 2007, 19:59 GMT
Last edited by andythenorth (andythenorth) - Monday, 14 August 2017, 20:11 GMT
|
DetailsCurrently, if you set "service interval" to 0, and don't schedule depots in your orders, you don't have any chance of getting you vehicule renewed when it gets old. Thus, the autoreplace feature won't work as well.
To get it working, you must manually send your vehicules to depot. Worst of all, if the autorenew patch is enabled, you aren't even warned about your vehicule gets old. With this patch, when the vehicule reachs the age it has to be renewed, if not any service is scheduled (nor in the orders nor at intervals) it should automatically head to a depot to get renewed. This will also enable the autoreplace feature as well : all concerned vehicules will head to a depot. Patch runs on rev10532 |
This task depends upon
Closed by andythenorth (andythenorth)
Monday, 14 August 2017, 20:11 GMT
Reason for closing: Won't implement
Additional comments about closing: Mass closure of patch tickets with no commentary for >5 years. Goal is to reduce patch queue as an experiment to see if it aids faster reviewing and rejection/acceptance (it may not). If this offends you and the patch is maintained and compiles with current trunk, discuss with andythenorth in irc. (andythenorth has no ability to review patches but can re-open tickets).
Monday, 14 August 2017, 20:11 GMT
Reason for closing: Won't implement
Additional comments about closing: Mass closure of patch tickets with no commentary for >5 years. Goal is to reduce patch queue as an experiment to see if it aids faster reviewing and rejection/acceptance (it may not). If this offends you and the patch is maintained and compiles with current trunk, discuss with andythenorth in irc. (andythenorth has no ability to review patches but can re-open tickets).
Now all concerned vehicles won't go to depot immediately, but wait until you use the "send to service" button in vehicle list window.
This button now only impacts the vehicle concerned by an autoreplace.
I still have to check this won't impact the game when playing with servicing.
With Vehicle-breakdown set to None, and the 'no-service-if-breakdown-disabled' configure patch, none of the vehicles go to a depot if they are beyond their life-time and autorenew is switched on.
In addition, trains and airplanes warn about obsolete vehicles, ships and road vehicles do not. Attached a saved game to experiment with, containing obsolete vehicles of all types.
After a quick try, I wasn't able to fix it. I'll try to investigate more in the next days.
I tested this new version with your saved game with those results :
- Trucks and ships are immediately replaced, as they are still available
- If you use the "autoreplace" feature and set up a replacement model for your trains/planes, they are replacing correctly
r12059
PS: This need to be tested, I did only a few tests, but I'm unsure the patch works as expected with "normal" settings (breakdowns and servicing). I'll try to do some tests soon.