Outlaw Golf PAK: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
imported>Ikskoks
 
(12 intermediate revisions by the same user not shown)
Line 3: Line 3:
Choose archive extension:
Choose archive extension:


== PAXFILE ==  
== PAK, PAXFILE ==  


* ''' Format Type ''':    Archive <br>  
* ''' Format Type ''':    Archive <br>  
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian <br>  
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian <br>  


=== Format Specifications (Outlaw Golf) ===
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;">
<pre>
// Outlaw Golf (PC)
// PAK file format
// header (96 bytes)
8 bytes (char) - magic // "PAXFILE\xFF"
20 bytes - unknown
4 bytes (uint32) - data offset
4 bytes (uint32) - number of directories + 1
4 bytes (uint32) - number of files
4 bytes (uint32) - align value?
36 bytes - nulls
4 bytes (uint32) - unknown  // 1
4 bytes (uint32) - unknown  // 12
4 bytes - nulls
4 bytes (uint32) - unknown  // 26
// directories info
num_of_directories *
{
  32 bytes (char) - directory name // e.g. "Audio"
  4 bytes (uint32) - unknown // some ID, usually nulls
  4 bytes (uint32) - unknown // some flags, usually nulls
  4 bytes (uint32) - number of the first file in the directory
  4 bytes (uint32) - number of files in directory?
}
// files info
num_of_files *
{
  32 bytes (char) - file name
  4 bytes (uint32) - file offset
  4 bytes (uint32) - file size
}
x bytes - padding
// files data
num_of_files *
{
  x bytes - file data
}
</pre>
</div>
<br>


=== Format Specifications (Outlaw Golf 2) ===  
=== Format Specifications (Outlaw Golf 2) ===  


==== Primary Header ====
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;">
<pre>
<pre>
// Outlaw Golf 2 (PS2)
// PAK file format
// primary header
char      {8}  - Magic ID (PAXFILE\0xFF)  
char      {8}  - Magic ID (PAXFILE\0xFF)  
uint32[5]  {20} - Unknown
uint32[5]  {20} - Unknown
Line 20: Line 78:
uint32    {4}  - Compression header size?
uint32    {4}  - Compression header size?
uint32[13] {52} - Unknown
uint32[13] {52} - Unknown
</pre>
 
==== File List Entry ====
 
<pre>
// file list entry
char      {32} - Name  
char      {32} - Name  
uint32    {4}  - Unknown (some type of id)
uint32    {4}  - Unknown (some type of id)
Line 28: Line 86:
uint32    {4}  - First File Number
uint32    {4}  - First File Number
uint32    {4}  - Number of Files
uint32    {4}  - Number of Files
</pre>
 
==== File Item ====
 
<pre>
// file item
char  {32} - Name  
char  {32} - Name  
uint32 {4}  - Offset of File
uint32 {4}  - Offset of File
uint32 {4}  - Size
uint32 {4}  - Size
</pre>


File is made up of 1 [Primary Header]
 
followed by [File List Count] of [File List Entry]  
// Note: File is made up of 1 [Primary Header] followed by  
followed by [Total File Count] of [File Item]
// [File List Count] of [File List Entry] followed by  
the rest is the data for the files using the offset and size.
// [Total File Count] of [File Item] the rest is the data  
although some files have a header themselves that is 2048 bytes long although only the first few seem to be used. they are  
// for the files using the offset and size. although some  
<pre>
// files have a header themselves that is 2048 bytes long  
// although only the first few seem to be used. they are:
char  {4} - Magic ''HYPC''
char  {4} - Magic ''HYPC''
byte {10} - Unknown possibly a seed and flags.
byte {10} - Unknown possibly a seed and flags.
Line 48: Line 106:
{DATA}
{DATA}
</pre>
</pre>
</div>


=== MultiEx BMS Script ===  
=== MultiEx BMS Script ===  

Latest revision as of 18:03, 21 February 2021

Choose archive extension:

PAK, PAXFILE


Format Specifications (Outlaw Golf)

// Outlaw Golf (PC)
// PAK file format


// header (96 bytes)
8 bytes (char) - magic // "PAXFILE\xFF"
20 bytes - unknown
4 bytes (uint32) - data offset
4 bytes (uint32) - number of directories + 1
4 bytes (uint32) - number of files
4 bytes (uint32) - align value?
36 bytes - nulls
4 bytes (uint32) - unknown  // 1
4 bytes (uint32) - unknown  // 12
4 bytes - nulls
4 bytes (uint32) - unknown  // 26


// directories info
num_of_directories *
{
   32 bytes (char) - directory name // e.g. "Audio"
   4 bytes (uint32) - unknown // some ID, usually nulls
   4 bytes (uint32) - unknown // some flags, usually nulls
   4 bytes (uint32) - number of the first file in the directory
   4 bytes (uint32) - number of files in directory?
}


// files info
num_of_files *
{
  32 bytes (char) - file name
  4 bytes (uint32) - file offset
  4 bytes (uint32) - file size
}

x bytes - padding


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


Format Specifications (Outlaw Golf 2)

// Outlaw Golf 2 (PS2)
// PAK file format


// primary header
char       {8}  - Magic ID (PAXFILE\0xFF) 
uint32[5]  {20} - Unknown
uint32     {4}  - File List Offset. // a file list is like a folder or directory
uint32     {4}  - File List Count
uint32     {4}  - Total File Count
uint32     {4}  - Compression header size?
uint32[13] {52} - Unknown


// file list entry
char      {32} - Name 
uint32    {4}  - Unknown (some type of id)
uint32    {4}  - Unknown (possibly some type of flags)
uint32    {4}  - First File Number
uint32    {4}  - Number of Files


// file item
char   {32} - Name 
uint32 {4}  - Offset of File
uint32 {4}  - Size


// Note: File is made up of 1 [Primary Header] followed by 
// [File List Count] of [File List Entry] followed by 
// [Total File Count] of [File Item] the rest is the data 
// for the files using the offset and size. although some 
// files have a header themselves that is 2048 bytes long 
// although only the first few seem to be used. they are:
char  {4} - Magic ''HYPC''
byte {10} - Unknown possibly a seed and flags.
uint32 {4} - Size of file without header.
byte (2030} - Unknown (mostly 0x00)
{DATA}

MultiEx BMS Script

None available.

Games

List of gaes using this file format:

  • Outlaw Golf
  • Outlaw Golf 2

Notes and Comments

  • Some kind of compression or encryption seems to be used in the HYPC files.

Compatable Programs