Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sprite Packer Issues #211

Open
sheumais opened this issue Dec 22, 2022 · 1 comment
Open

Sprite Packer Issues #211

sheumais opened this issue Dec 22, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@sheumais
Copy link
Contributor

Upon running the sprite packer file as listed in the (outdated) instructions, it gives two errors:

error[E0063]: missing field `loop_start` in initializer of `AudioSprite`
   --> src/audio.rs:357:26
    |
357 |             let sprite = AudioSprite {
    |                          ^^^^^^^^^^^ missing `loop_start`

error[E0599]: no method named `log2` found for type `u32` in the current scope
   --> src/texture.rs:188:39
    |
188 |         Box::new((min_size..=MAX_SIZE.log2()).into_iter().flat_map(|power| {
    |                                       ^^^^ help: there is an associated function with a similar name: `ilog2`

It seems both the README and the audio.rs files are over a year out of date.

@sheumais sheumais added the bug Something isn't working label Dec 22, 2022
@finnbear
Copy link
Member

finnbear commented Dec 22, 2022

Thanks! We noticed this issue on our end and have a fix in the next release. I recommend commenting out the audio-related code if you just need the texture-related code to work.

(note: the second error can be caused by a too-recent Rust compiler, since they renamed the unstable method log2 to ilog2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants