LBX file format
Posted: Sat Feb 25, 2006 4:52 pm
The LBX files in the original game are archives containing, similar to ZIP files except that there's no compression. The format of each LBX file is:
You can find the program I wrote to extract from the LBX files on the downloads page.
Implode.
- First 2 bytes indicate the number of subfiles within the LBX file
Next 4 bytes are the fixed value hex FEAD (i.e. the actual order of bytes in the file is AD FE 00 00)
Next 2 bytes are a version number - never found a use for this
Next there are [number of subfiles] sets of 4 byte offsets - these indicate the start position in the LBX file of each subfile
These are ended by another 4 byte offset indicating the end of the last subfile (i.e. these 4 bytes = the size of the LBX file)
You can find the program I wrote to extract from the LBX files on the downloads page.
Implode.