OpenTTD

Tasklist

FS#1822 - Industry prop 24 support

Attached to Project: OpenTTD
Opened by George (George) - Sunday, 02 March 2008, 07:43 GMT
Last edited by Remko Bijker (Rubidium) - Wednesday, 19 November 2008, 23:55 GMT
Type Feature Request
Category NewGRF → NewIndustries
Status Closed
Assigned To Jean-Francois Claeys (Belugas)
Operating System All
Severity High
Priority Normal
Reported Version 0.6.0-beta4
Due in Version 0.7.0
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Please implement prop 24. I need it for ECS Agricultural vector beta 4. If it is already implemented, I'll provide a test GRF, because it does not work for me.

http://wiki.ttdpatch.net/tiki-index.php?page=Action0Industries
Default name for nearby station (24)
If non-zero, this text ID specifies an additional name option for stations built near this industry, which will be used before any of the standard TTD names. The text should contain a 80, which will be the name of the nearby town.
If the newly built station cannot use the specified text (because that name has been used for another station in the same town) the default TTD naming system will be used, but without the names "80 Oilfield" or "80 Mines".
Setting this to zero disables "80 Oilfield" and "80 Mines" without adding any additional station name options.
This task depends upon

Closed by  Remko Bijker (Rubidium)
Wednesday, 19 November 2008, 23:55 GMT
Reason for closing:  Implemented
Additional comments about closing:  In r14598.
Comment by Jean-Francois Claeys (Belugas) - Sunday, 02 March 2008, 12:41 GMT
The work to implement it has already been started.
It's not just an easy one to code, if it has to be done properly.
Thanks for pointing it out :)
The loader and the property itself is coded, the string manipulations are not done, nor the detection of already named stations, nor the disabling.
Comment by Thijs Marinussen (Yexo) - Sunday, 16 November 2008, 15:39 GMT
Attached a patch with the missing code to support this property. I've tested it with station_names.grf (found http://www.tt-forums.net/viewtopic.php?f=26&t=40523)
Comment by Thijs Marinussen (Yexo) - Monday, 17 November 2008, 21:51 GMT
Small bugfix: take the town of the station as base instead of the town of the industry. (pointed out by Roujin)

Loading...