Starfield Mod:Biome File Format

'BIOME files are found in one of Starfield's ESM file and appear to contain data related to the biomes of each planet. Each BIOME file in Starfield is exactly 655,406 bytes in size although the format appears to support different size maps.

Overall Structure
Header (12 bytes) Color Data 1 (262144 bytes) Index Data 1 (65536 + 4 bytes) Color Data 2 (262144 bytes) Index Data 2 (65536 + 4 bytes)

The two image sections appear to form the top half and bottom half of a rectangular 256x512 image matching the aspect ratio of the planet textures.

Header
The first 14 bytes at the start of the file: word ? (261)    dword ? (1)    dword ? (color RGB, same as in data?) dword ? (2, flags?)

Color Data
Appears to be color RGBA values, 4 bytes per pixel. Has a 12 byte header indicating the image/data size. dword Width (256) dword Height (256) dword Size  (65546) rgba_t Color[Size]

== Index Data Appears to be indexed or bitflag value, usually lower numbers starting at 0, 1 byte per pixel. Has a 4 byte head indicating the size in bytes. dword Size  (65546) byte Index[Size]