SoftbearStudios / mk48

Mk48.io ship combat game
https://mk48.io
GNU Affero General Public License v3.0
314 stars 60 forks source link

Sprite Packer Issues #211

Open sheumais opened 1 year ago

sheumais commented 1 year ago

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.

finnbear commented 1 year ago

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)