Page 1 of 1

Station Spriteset Limit

Posted: 26 May 2023 04:13
by Trolley Trev
This might be a random question, but just curious as to why station newGRFs are limited to 6 sprite sets per station? Is this a legacy limit from the original newGRF spec or just an arbitrary number? Only reason I ask is because I'm currently developing a station set and I want to have the option of "Auto Station" much like in ISR, but this sprite set limitation will allow me to only have a maximum of 6 unique tiles in any given station. I could hack around it by making a freaking huge sprite set with sprites for multiple tile types, but I'd rather not. Anyone have any insights into this?

Re: Station Spriteset Limit

Posted: 26 May 2023 13:49
by peter1138
Hmm, where/what is limited to 6?

Do you mean the number of station sprite layouts, which is actually 4 (8 if you count X/Y separately, but that isn't a useful distinction) unless you use the callback to select a different one?

Re: Station Spriteset Limit

Posted: 26 May 2023 22:54
by Trolley Trev
You can use more than 6 sprite layouts per station item, so long as collectively they don't reference more than 6 custom spritesets, otherwise nmlc throws an error on compile saying you can only have 6. Built-in sprites don't count towards the 6.

This pic from the nml wiki on stations has a little note about upto 6 spritesets, but I'm not sure what the reason for the limit is :?

Image