Star Wars: The Force Unleashed LP: Difference between revisions
Jump to navigation
Jump to search
imported>Ikskoks |
imported>Ikskoks |
||
| (14 intermediate revisions by the same user not shown) | |||
| Line 24: | Line 24: | ||
4 bytes (uint32) - number of files (repeated) | 4 bytes (uint32) - number of files (repeated) | ||
4 bytes (uint32) - data offset (repeated) | 4 bytes (uint32) - data offset (repeated) | ||
4 bytes (uint32) - archive size | 4 bytes (uint32) - archive size - 1 | ||
12 bytes - unknown // always nulls? | 12 bytes - unknown // always nulls? | ||
4 bytes (uint32) - data offset (repeated again) | 4 bytes (uint32) - data offset (repeated again) | ||
4 bytes (uint32) - archive size (repeated) | 4 bytes (uint32) - archive size - 1 (repeated) | ||
4 bytes (uint32) - unknown // always nulls? | 4 bytes (uint32) - unknown // always nulls? | ||
// extra header (only if extra_header_size > 0) | |||
x bytes - extra header data | |||
| Line 41: | Line 45: | ||
// 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 | |||
} | |||
</pre> | </pre> | ||
</div> | </div> | ||
| Line 47: | Line 79: | ||
* LP stands for "Level Pack". | * LP stands for "Level Pack". | ||
* There are also some *.LP archives in SWTFU II, but it seems they are just standard [[GRAF:ZIP Archive|ZIP Archives]] with changed extension. | |||
=== Games === | === Games === | ||
| Line 65: | Line 98: | ||
[[Category:Complete | [[Category:Complete Almost Done|Star Wars: The Force Unleashed LP]] | ||
[[Category:Platform PC|Star Wars: The Force Unleashed LP]] | [[Category:Platform PC|Star Wars: The Force Unleashed LP]] | ||
[[Category:Platform X360]] | [[Category:Platform X360]] | ||
Latest revision as of 12:48, 30 April 2022
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.