You may have seen this file in the posteffect folder in an szs file. What is it?
It controls lighting effects (hence the 'blight' filetype).
Header is:
0x00 (4) = "BGHT" magic
0x04 (4) = File size (always 05 A8)
0x08 (4) = Unknown value (seen as 02 00 00 00 in Bowser's Castle)
0x0C (4) = Unknown value (always 00 00 00 00?)
0x10 (2*2) = Unknown value (both seen as 00 10 in Bowser's Castle)
0x14 (4) = Unknown value (always 00 00 00 FF?)
0x18 (F) = Padding
However, one thing to note is that although 16 lights are stored in this file, only 8 can be referenced by the KCL (IDs 00 to 07). The next 8 have unknown uses.
Here is one Light Object.
The first object starts at 0x28.
These addresses are relative to the start of the object.
0x00 (4) = The magic, LOBJ
0x04 (4) = Size of each one (always 00 00 00 50)
0x08 (8, or 2*4?) = Unknown value (always 02 00 00 00 00 00 00 00)
0x10 (4) = Unknown value (00 00 02 01 if used, 00 00 00 01 if not)
0x14 (2) = Light ID, also references a color at the end of the file for ambient light
0x16 (2) = Unknown value (always 06 41)
0x18 (4*3) =
Vector, angle of light
0x24 (4) = Unknown value (always 00 00 00 00)
0x28 (4) = Unknown value (always 00 00 00 00)
0x2C (4) = Unknown value (always 00 00 00 00, these three might be a vector?)
0x30 (4) =
Float Unknown value (always 3F 80 00 00)
0x34 (4) =
RGBA Light Color (RR GG BB AA)
0x38 (4) = Unknown Value (always 00 00 00 FF)
0x3C (4) =
Float Unknown Value (Part of another vector? Always 42 B4 00 00, 90 in float point)
0x40 (4) =
Float Unknown Value (Always 3F 00 00 00?)
0x44 (4) =
Float Unknown Value (Always 3F 00 00 00?)
0x48 (8) = Padding? (always 00 00 00 00 00 00 00 00, unless it is the last light. In that case, it's 00 00 00 FF 00 00 00 00)
0x50 = End of object, start of next
At 0x0528 in the file, a list of colors starts, separated by four 00's. These are the ambient colors used by each light. They're in order.
0x00 (4) =
RGBA Ambient Light Color
0x04 (4) = Padding
0x08 = start of next color
Just like light objects, there are 16 ambient colors. All unused ones are 64 64 64 FF (a neutral gray).