harbaum / galagino

A Galaga, Pac-Man and Donkey Kong arcade emulator for the ESP32
315 stars 21 forks source link

TypeError: object of type 'int' has no len() #23

Closed jf1452 closed 12 months ago

jf1452 commented 12 months ago

PS C:\Software\Arcade\galagino-main\romconv> py ./cmapconv.py frogger_colormap ../roms/pr-91.6l ../galagino/frogger_cmap.h Traceback (most recent call last): File "C:\Software\Arcade\galagino-main\romconv\cmapconv.py", line 222, in palette = parse_palette(sys.argv[2]) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Software\Arcade\galagino-main\romconv\cmapconv.py", line 39, in parse_palette if len(c) == 3: ^^^^^^ TypeError: object of type 'int' has no len()

cmapconv.py returns an error when I try to run it. First I tried DigDug as it the new ROM, but also produces the same error when I try to convert an existing ROM.

I have tried py, python and python 3. Did I miss a setup step?

harbaum commented 12 months ago

Thanks for reporting. This was a stupid bug introduced with the preparations for 1942.

jf1452 commented 12 months ago

Thank you Harbaum, that was a really quick update, thank you.