Skip to content

Problem with the massformatter working on fonts. #4

@sinister-kid

Description

@sinister-kid

done generating spr_stairs
generating spr_floorswitch
done generating spr_floorswitch
converting tiles
working on tile_bg_1 0/ 13 0.00% done
working on tile_bg_2 1/ 13 7.69% done
working on tile_bg_3 2/ 13 15.38% done
indexed (np.uint8(0), np.uint8(255), np.uint8(0)) as 0 for tile_bg_3.bmp
working on tile_bg_4 3/ 13 23.08% done
working on tile_bg_secret 4/ 13 30.77% done
working on tile_bg_true 5/ 13 38.46% done
working on tile_bg_void 6/ 13 46.15% done
working on tile_candle 7/ 13 53.85% done
working on tile_edges 8/ 13 61.54% done
working on tile_edges_true 9/ 13 69.23% done
working on tile_house_1 10/ 13 76.92% done
working on tile_house_2 11/ 13 84.62% done
working on tile_mini 12/ 13 92.31% done
indexed (np.uint8(127), np.uint8(127), np.uint8(127)) as 4 for credits.bmp
done converting tiles
converting fonts
Traceback (most recent call last):
File "C:\Users\Aurora\GBAStranger\misc\convertAllAssets.py", line 195, in
massFormatter.massFormatter.main()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "C:\Users\Aurora\GBAStranger\misc\massFormatter\massFormatter.py", line 1744, in main
convertFonts("./formattedOutput/fonts/")
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Aurora\GBAStranger\misc\massFormatter\massFormatter.py", line 770, in convertFonts
writeFont(fontTiles, charData, outputPath, font, fontDataFile)
~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Aurora\GBAStranger\misc\massFormatter\massFormatter.py", line 731, in writeFont
fontDataFile.write(",".join([ str(charData[char]["width"]) for char in range(32, 126+1) ] + ["1"]))
~~~~~~~~^^^^^^
KeyError: 32

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions