From TTWiki
Jump to: navigation, search

Automatically renew vehicles when they reach their maximum age.


Configuration file: autorenew on|off|<months>

Command line: -Xa

Configuration file: forceautorenew on|off

Command line: -XA


Using the switch "autorenew", all vehicles will be automatically renewed the given number of months after they reach the maximum age. Note that they will be replaced by an identical vehicle, unless you have AutoReplace on and a GRF file that supports auto-replacing.

Normally, with "autorenew", the vehicles will be renewed at the next service, or whenever they enter a depot. If you also enable "forceautorenew", they will be sent to a depot and renewed immediately, as soon as they are too old. Setting "autorenew" without "forceautorenew" will not work properly if you are also using the new service intervals, in which case a vehicle will never go to the service where it would be renewed.

The value given with autorenew determines the number of months after the maximum age when they are renewed. This value can be negative, in which case vehicles will be renewed before they reach the maximum age. Since you get the first warning of a vehicle getting old a year before it reaches the maximum age, you have the following options for the value of this switch:

  • less than -12 months: you will get no messages, all vehicles are renewed
  • between -12 and 0 months: you get the message once, so that you have time to manually replace a vehicle
  • more than 1 month: you get several messages warning you to replace the vehicle

The default value is -6, which means that after the first warning, you have half a year to manually replace the vehicle, otherwise it will be renewed with the same vehicle type. If you do get the second warning, it means that something is going wrong: the vehicle could not be renewed and you should pay more attention to it.

The way this renewal works is that when it is time to renew a vehicle, and if you have enough money to actually do the renewal, it will start looking for a depot, as if it were going for a standard maintenance. However, in addition to the maintenance, the vehicle (actually, the entire consist) is also renewed automatically, and the cost is deducted from your account. Afterwards, the vehicle continues its regular schedule, it even keeps the cargo if it had any.