city41 / sromcrom

Graphics pipeline tool for Neo Geo development
GNU General Public License v3.0
11 stars 2 forks source link

error out whenever a tile has more than 16 colors #5

Closed city41 closed 11 months ago

city41 commented 2 years ago

Currently sromcrom doesn't care if a tile has too many colors. It will keep trucking and ultimately emit palettes that are too large and bad crom data.

The old version used to throw an error then dump the bad tiles to pngs for inspection. Bring this back.

city41 commented 11 months ago

It does throw if a palette has more than 16 colors here: https://github.com/city41/sromcrom/blob/main/src/orchestrators/common/determinePalettesToEmit.ts#L103

That is good enough for this.