FS#4858 - Change autoclean_protected to uint16

Attached to Project: OpenTTD
Opened by Christopher Thomas Nicodemus (NicoNet2k) - Wednesday, 30 November 2011, 20:41 GMT
Last edited by Charles Pigott (LordAro) - Friday, 18 August 2017, 21:49 GMT
Type Feature Request
Category Network → Admin
Status Closed
Assigned To No-one
Operating System All
Severity Medium
Priority Normal
Reported Version 1.1.4-RC1
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No


autoclean_protected removes the password from protected companies after x months.
Currently it is defined as an uint8 data type which limits it to 255 months or ~21 years.
There are about 15 minutes per year, and about 5 hours per 20 years.
With that players have to connect quite often to keep their company.
With uint16 this could go to ~5,500 years, or at least a more reasonable 100 years or so.
autoclean_novehicles and autoclean_unprotected are fine as uint8 data types.
This task depends upon

Closed by  Charles Pigott (LordAro)
Friday, 18 August 2017, 21:49 GMT
Reason for closing:  Won't implement
Additional comments about closing:  Closing old tasks spree - a reasonable workaround has been suggested (admin port), and there's been no change or update to this issue in over 5 years
Comment by Nathanael Rebsch (dihedral) - Wednesday, 07 December 2011, 11:55 GMT
you could set that variable to 0 and either never remove companies automatically if they have no password, as a passwordless company with loads of cash also asks for attention by those who join to ruin a game.
Then you would only reset passworded companies manually.

Alternatively you can make use of the admin port in order to have even greater control over resetting companies and/or removing their passwords.