kui / 7dtd-map

Map renderer for 7 Day to Die
50 stars 8 forks source link

Black sea if splat4.png was loaded, not splat4_processed.png #103

Closed kui closed 3 months ago

kui commented 3 months ago

splat4.png has no green value:

$ npx tsx tools/print-png-pixel-stat.ts .../AppData/Roaming/7DaysToDie/GeneratedWorlds/Dozogofi\ Territory/splat4.png
  red,gre,blu,alp: count
    0,  0,  0,  0: 60104250
    0,  0, 29,  0: 7004614

And we should warn if splat4.png was loaded, not splat4_processed.png.

kui commented 3 months ago

Current impl https://github.com/kui/7dtd-map/blob/5739eec4eaba69e759bea277923300e9306b35f6/lib/map-files.ts#L297-L323

kui commented 3 months ago

edcb6bccd1a66ab4e34902fabed3b6c13e7dad81