FS#6562 - Stations: extended byte for NewStation ID

Attached to Project: OpenTTD
Opened by kiwitree (kiwitree) - Wednesday, 17 May 2017, 09:28 GMT
Last edited by andythenorth (andythenorth) - Friday, 01 September 2017, 10:29 GMT
Type Patch
Category NewGRF → NewStations
Status With patch
Assigned To No-one
Operating System All
Severity Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


This patch makes NUM_STATIONS_PER_GRF to 65535.
It's using grf version 9 and savegame version 197.

NewGRF syntax changes
NewStation ID: byte to extended byte
Action 4: Not using C4xx and C5xx range. It uses feature 0x04 and extended byte id for name of stations and it uses feature 0x48 and D0xx range for class id.
Action 0: Added Property 0x1B. It sets text id for station class.
This task depends upon

Comment by andythenorth (andythenorth) - Friday, 01 September 2017, 10:28 GMT
"Nobody needs 65535 stations". But I left it open because frosch indicates that increasing newgrf limits is a valid OpenTTD goal :)

Changed status to reflect the attached patch.