Star Wars: The Force Unleashed LP

From XentaxWiki
Jump to: navigation, search

Back to index | Edit this page

LP

  • Format Type : Archive
  • Endian Order : Little Endian / Big Endian
  • Signature : kaPA / APak


Format Specifications

// header
4 bytes (char) - signature // "APak" - big endian
                           // "kaPA" - little endian
4 bytes (uint32) - version  // 5
4 bytes (uint32) - number of files
12 bytes - unknown
4 bytes (uint32) - extra header size
4 bytes (uint32) - name table size
4 bytes (uint32) - offset-table offset
4 bytes (uint32) - data offset
4 bytes (uint32) - unknown
4 bytes (uint32) - number of files (repeated)
4 bytes (uint32) - data offset (repeated)
4 bytes (uint32) - archive size - 1
12 bytes - unknown  // always nulls?
4 bytes (uint32) - data offset (repeated again)
4 bytes (uint32) - archive size - 1 (repeated)
4 bytes (uint32) - unknown  // always nulls?


// extra header (only if extra_header_size > 0)
x bytes - extra header data


// name table
35 bytes (char) - start string  // "/**** START asset name table ****/"
num_of_files *
{
   x bytes (char) - file path  // e.g. "Scum/handheld/PCDX/oneHandCylinder
                                        /rigs/lightSaberDarthVader/lightSaberDarthVader.gto"
}
32 bytes (char) - end string  // "/**** END asset name table ****/"



// info table (64 bytes per entry)
num_of_files *
{
   20 bytes - unknown
   4 bytes (uint32) - name offset (relative for name table)
   16 bytes - unknown
   4 bytes (uint32) - file size
   4 bytes (uint32) - file size (repeated)
   16 bytes - unknown  
}


// offset table (16 bytes per entry)
num_of_files *
{
   4 bytes (uint32) - file ID
   4 bytes (uint32) - file data offset (relative)
   4 bytes (uint32) - always nulls
   4 bytes (uint32) - always nulls
}


// data
num_of_files *
{
   x bytes - file data
}

Notes and Comments

  • LP stands for "Level Pack".
  • There are also some *.LP archives in SWTFU II, but it seems they are just standard ZIP Archives with changed extension.

Games

List of games using this file format:

  • Star Wars: The Force Unleashed Ultimate Sith Edition (PC) (*.LP)
  • Star Wars: The Force Unleashed II (X360/PS3) (*.LP)

QuickBMS Script

Compatible Programs

None.