FS#5641 - AIRail::BuildNewGRFRailStation - weird and undocumented behavior

Attached to Project: OpenTTD
Opened by Kogut (Kogut) - Tuesday, 09 July 2013, 19:28 GMT
Last edited by Remko Bijker (Rubidium) - Saturday, 13 July 2013, 15:04 GMT
Type Bug
Category Script → NoAI
Status Closed
Assigned To No-one
Operating System Windows
Severity Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No


tested in r25578 with TEST AI (available at )

NoAI API docs:

In game without NewGrfs AIRail::BuildNewGRFRailStation will result in construction of default train station.

In game with ISR 9.0 requesting steel loading station with length 7 (unavailable, length is restricted to 6) will fail with ERR_UNKNOWN

It seems like a bug - and if it is not than better documentation would be welcome
This task depends upon

Closed by  Remko Bijker (Rubidium)
Saturday, 13 July 2013, 15:04 GMT
Reason for closing:  Fixed
Additional comments about closing:  In r25605, though technically it's a broken NewGRF. It can (and should) check the station size to decide what station to build.