OpenTTD / nml

NewGRF Meta Language
GNU General Public License v2.0
42 stars 36 forks source link

Change: Use extended Action1s #309

Open glx22 opened 11 months ago

glx22 commented 11 months ago

Each spriteset gets its own unique ID. Removes the "all spritesets in a single sprite group/layout must have the same size" limitation.

Not really tested beside checking NFO output.

andythenorth commented 11 months ago

Works for me in test of

PeterN commented 6 months ago

First question... what is an extended action 1? Does this need a specific version of OpenTTD or is it an older feature that just isn't used?

glx22 commented 6 months ago

https://newgrf-specs.tt-wiki.net/wiki/Action1#Extended_format present since OpenTTD 1.2. The most important part is https://newgrf-specs.tt-wiki.net/wiki/Action1#first-set which allows to reduce duplication and the need for same size spriteset in a spritelayout.

andythenorth commented 5 months ago

Still works for me :P