Difference between revisions of "Project Earth DPK"

From XentaxWiki
Jump to: navigation, search
 
m (Ikskoks moved page DPK4 to Project Earth DPK)
 
(4 intermediate revisions by 3 users not shown)
Line 9: Line 9:
 
<tt><b>
 
<tt><b>
 
uint32 {4}&nbsp;&nbsp; - Header <font color="purple">(DPK4)</font> <br>  
 
uint32 {4}&nbsp;&nbsp; - Header <font color="purple">(DPK4)</font> <br>  
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Hash? '' </font> <br>  
+
uint32 {4}&nbsp;&nbsp; - Archive Size <font color="purple">(in bytes)</font> <br>  
 
uint32 {4}&nbsp;&nbsp; - Directory Length <font color="purple">(not including these 4 fields)</font> <br>  
 
uint32 {4}&nbsp;&nbsp; - Directory Length <font color="purple">(not including these 4 fields)</font> <br>  
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>  
+
uint32 {4}&nbsp;&nbsp; - Number of Files in the Archive <br>  
 
<br>
 
<br>
 
<font color="blue"> ''' // for each file ''' </font> <br>  
 
<font color="blue"> ''' // for each file ''' </font> <br>  
Line 64: Line 64:
 
These games also use this file format<br>
 
These games also use this file format<br>
 
* Battle Strike - The Road To Berlin *.dpk
 
* Battle Strike - The Road To Berlin *.dpk
 +
* Project Earth *.dpk
 +
* Space Interceptor *.dpk
 
* Starmageddon *.dpk
 
* Starmageddon *.dpk
* Project Earth *.dpk
+
* Terrorist Takedown *.dpk
 +
 
 +
 
 +
[[Category:File Format]]

Latest revision as of 14:13, 17 January 2021

DPK


Format Specifications

uint32 {4}   - Header (DPK4)
uint32 {4}   - Archive Size (in bytes)
uint32 {4}   - Directory Length (not including these 4 fields)
uint32 {4}   - Number of Files in the Archive

// for each file

uint32 {4}   - File Entry Length
uint32 {4}   - Decompressed File Size
uint32 {4}   - Compressed File Size
uint32 {4}   - File Offset
char {X}     - Filename
byte {1}     - null Filename Terminator
byte {0-3}   - null padding to a multiple of 4 bytes


byte {X}     - File Data

MultiEx BMS

IDString 0 DPK4 ;
ComType ZLib1 ;
ImpType Standard ;
Get ASize Long 0 ;
Get HSize Long 0 ;
Get FNum Long 0 ;
For T = 1 To FNum ;
SavePos TJ 0 ;
Get ESize Long 0 ;
SavePos UCSOff 0 ;
Get UCSize Long 0 ;
SavePos CSizeOff 0 ;
Get CSize Long 0 ;
SavePos OOF 0 ;
Get Offset Long 0 ;
Get FN String 0 ;
Math TJ += ESize ;
GoTo TJ 0 ;
CLog FN Offset CSize OOF CSizeOff UCSize UCSOff ;
Next T ;

Notes and Comments

  • Uses ZLib compression for the files


Supported Programs


Other Games

These games also use this file format

  • Battle Strike - The Road To Berlin *.dpk
  • Project Earth *.dpk
  • Space Interceptor *.dpk
  • Starmageddon *.dpk
  • Terrorist Takedown *.dpk