Skip to content

Add: --no-32bpp and --no-extra-zoom option to skip some alternative sprites#286

Merged
glx22 merged 1 commit intoOpenTTD:masterfrom
glx22:noEZ-no32
May 21, 2023
Merged

Add: --no-32bpp and --no-extra-zoom option to skip some alternative sprites#286
glx22 merged 1 commit intoOpenTTD:masterfrom
glx22:noEZ-no32

Conversation

@glx22
Copy link
Contributor

@glx22 glx22 commented Apr 19, 2023

Following a discord conversation.

  • zephyris
    Hey, nmlc question for you all. Is there an argument which makes it ignore alternate zoom sprites? Similarly, make it ignore 32bpp alternates of sprites?
  • zephyris
    I'm hoping to make multiple versions of a grf at build time - file sizes get pretty enormous when including 32bpp and not everyone will need/want that.
  • glx
    I think it should be possible to add nozoom and no32bpp flags to nmlc

And it is indeed possible :)

allow_extra_zoom = True

bit_depths = {"BIT_DEPTH_8BPP": 8, "BIT_DEPTH_32BPP": 32.0}
allow_32pbb = True
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
allow_32pbb = True
allow_32bpp = True

And everywhere where it was transposed I guess.

@glx22 glx22 merged commit bcf815d into OpenTTD:master May 21, 2023
@glx22 glx22 deleted the noEZ-no32 branch May 21, 2023 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants