Station Spriteset Limit
Moderator: Graphics Moderators
-
- Engineer
- Posts: 45
- Joined: 26 Dec 2006 12:12
Station Spriteset Limit
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
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?
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?
He's like, some kind of OpenTTD developer.
-
- Engineer
- Posts: 45
- Joined: 26 Dec 2006 12:12
Re: Station Spriteset Limit
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](https://newgrf-specs.tt-wiki.net/images/grfwiki/9/98/Nml_station_graphics.dot.png)
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
![Confused :?](./images/smilies/icon_confused.gif)
![Image](https://newgrf-specs.tt-wiki.net/images/grfwiki/9/98/Nml_station_graphics.dot.png)
Re: Station Spriteset Limit
yeah there is a 6 spriteset limit per spritelayout, but you can add custom spritesets (I forgot the limit for custom spritesets, sorry) and default spritesets for station items.
I'm also developing a station grf. Hopefully my source code would help you solve the problem.
https://github.com/wensimehrp/jppluswins
Ah, and the easy way is to put everything inro one single spriteset, but that would be a total mess.
I'm also developing a station grf. Hopefully my source code would help you solve the problem.
https://github.com/wensimehrp/jppluswins
Ah, and the easy way is to put everything inro one single spriteset, but that would be a total mess.
-
- Tycoon
- Posts: 5953
- Joined: 27 Apr 2005 07:09
- Contact:
Re: Station Spriteset Limit
There's no station spriteset limit (of 6 sets per station), at least not when coding in plain nfo or in m4nfo:
http://www.ttdpatch.de/grfspecs/m4nfoManual/
https://github.com/kiwitreekor/korean_station
regards
Michael
http://www.ttdpatch.de/grfspecs/m4nfoManual/
https://github.com/kiwitreekor/korean_station
regards
Michael
Who is online
Users browsing this forum: No registered users and 3 guests