Originally Posted By: cspctec
How did you determine the structure of the LSB files? Did you just use trial and error, or does Larian have the structure of the files posted somewhere?


They're undocumented, so it's mostly guesswork by looking at the hex dump of the file itself or occasionally some disassembly if you're stuck.
Knowing roughly what structure to expect (in this case, having the corresponding .lsx file) helps a lot though.

My LSF and LSB parsers are here:
https://github.com/Norbyte/lslib/blob/master/LSLib/LS/LSFReader.cs
https://github.com/Norbyte/lslib/blob/master/LSLib/LS/LSBReader.cs