kitao / pyxel

A retro game engine for Python
MIT License
15.35k stars 847 forks source link

Pyxel Editor crash when selecting Music Editor #512

Closed fgallaire closed 10 months ago

fgallaire commented 10 months ago
  File "/home/fgallaire/.local/lib/python3.10/site-packages/pyxel/editor/music_editor.py", line 96, in get_field
    return music.seqs[index]
IndexError: list index out of range
kitao commented 10 months ago

Let me know your platform, pyxel version, and what kind of operations you did from booting the Pyxel Editor so that I can reproduce the situation.

Though my current estimation is that old version of Pyxel opened newer version's resource data.

fgallaire commented 10 months ago

Pyxel 2.0.4 Ubuntu and Debian pyxel edit then click the Music icon

kitao commented 10 months ago

Didn’t load any resource file?

kitao commented 10 months ago

Now I reproduced the error. Started fixing it.

kitao commented 10 months ago

Fixed. Please try Pyxel 2.0.5.

fgallaire commented 10 months ago

Works great !