Author Topic: Questions about structures in LGP files  (Read 2861 times)

jedwin

  • Guest
Questions about structures in LGP files
« on: 2002-04-21 21:50:00 »
So, can anybody tell me any of the following things about LGP files:

In the directory at the beginning of the file, after the filename and the "offset", there is a 1-byte field and a 2-byte field.  The 2-byte field is an index into the 130-byte long structures that follow the directory, if any.  What is the 1-byte field?  (i.e. whose value is usually, but not always 0x0e)  And what are the 130 byte structures?  And why can an LGP file contain multiple files with the same name if it is using these extra structures?

An example of such a file is magic.lgp, where, for instance, only deathlv5.hrc has a  value other than 0x0e in the 1-byte field (value is 0x0b), and wind_1.p, for instance, occurs 4 times in the archive.  Magic.lgp contains 0x28c (==652) of these additional 130 byte structures, which don't seem to contain much information.

Qhimm

  • Founder
  • *
  • Posts: 1996
    • View Profile
    • Qhimm.com
Questions about structures in LGP files
« Reply #1 on: 2002-04-22 09:00:00 »
These 130-byte structures are hierarchical in order, but unfortunately I can't tell much more. They do contain what seems to be the original PSX file names, so it's possible it's some kind of lazy programmer hack to port PSX file references into the LGP format.