Deadly Premonition XPC: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
imported>Ikskoks
 
(31 intermediate revisions by the same user not shown)
Line 2: Line 2:
== XPC ==  
== XPC ==  


* ''' Format Type ''':    Archive / Texture <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>
* ''' Signature ''':    XPC2 <br>  
* ''' Signature ''':    XPC2 <br>  
Line 11: Line 11:
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;">
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;">
<pre>
<pre>
// header
// header (64 bytes)
4 bytes (char) - signature // "XPC2"
4 bytes (char) - signature // "XPC2"
4 bytes (uint32) - total archive size
4 bytes (uint32) - total archive size
2 bytes (uint16) - number of textures
2 bytes (uint16) - number of materials
2 bytes (uint16) - number of used textures
18 bytes - nulls
4 bytes (uint32) - index start offset  // 64
4 bytes (uint32) - data offset
24 bytes - nulls


// TODO
 
 
// file index (32 bytes per entry)
number of entries *
{
  16 bytes (char) - original DDS filename  // e.g. "CNF0111.DDS"
  4 bytes (uint32) - file offset
  4 bytes (uint32) - file compressed size
  4 bytes (uint32) - file type
  4 bytes (uint32) - file uncompressed size?
}
 
 
 
// data
number_of_entries *
{
  x bytes - file data
}
</pre>
</pre>
</div>
</div>
Line 21: Line 46:
=== Notes and Comments ===  
=== Notes and Comments ===  


* This archive type seems to be only used to store DDS files.
* Files may be compressed with '''ZLIB'''.
* Files may be compressed with '''ZLIB'''.


Line 29: Line 55:
=== QuickBMS Script ===  
=== QuickBMS Script ===  


Not written yet.
* [https://github.com/bartlomiejduda/Tools/blob/master/NEW%20Tools/Deadly%20Premonition/Deadly_Premonition_XPC_script.bms Deadly_Premonition_XPC_script.bms]


=== Compatible Programs ===  
=== Compatible Programs ===  
Line 37: Line 63:




[[Category:Complete WIP|Deadly Premonition XPC]]
[[Category:Complete Almost Done|Deadly Premonition XPC]]
[[Category:Platform X360|Deadly Premonition XPC]]
[[Category:Platform X360|Deadly Premonition XPC]]
[[Category:CE Compressed|Deadly Premonition XPC]]
[[Category:CE Compressed|Deadly Premonition XPC]]
[[Category:Format_Archive | Type: Archive]]
[[Category:Format_Archive | Type: Archive]]
[[Category:Extension_xpc | Extension: xpc]]
[[Category:Extension_xpc | Extension: xpc]]
[[Category:BMS_None | BMS: None]]
[[Category:ZLIB compression]]
[[Category:ZLIB compression]]
[[Category:File Format]]
[[Category:File Format]]

Latest revision as of 22:10, 13 September 2022

Back to index | Edit this page

XPC

  • Format Type : Archive
  • Endian Order : Little Endian
  • Signature : XPC2


Format Specifications

// header (64 bytes)
4 bytes (char) - signature // "XPC2"
4 bytes (uint32) - total archive size
2 bytes (uint16) - number of textures
2 bytes (uint16) - number of materials
2 bytes (uint16) - number of used textures
18 bytes - nulls
4 bytes (uint32) - index start offset  // 64
4 bytes (uint32) - data offset
24 bytes - nulls



// file index (32 bytes per entry)
number of entries *
{
   16 bytes (char) - original DDS filename  // e.g. "CNF0111.DDS"
   4 bytes (uint32) - file offset
   4 bytes (uint32) - file compressed size
   4 bytes (uint32) - file type
   4 bytes (uint32) - file uncompressed size?
}



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

Notes and Comments

  • This archive type seems to be only used to store DDS files.
  • Files may be compressed with ZLIB.

Games

List of games using this file format:

  • Deadly Premonition (X360) (*.XPC)

QuickBMS Script

Compatible Programs

None.