Parasite Eve 2 HED CDF

From XentaxWiki
Revision as of 22:46, 9 May 2021 by Ikskoks (talk | contribs) (Compatible Programs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Back to index | Edit this page

HED, CDF


Format Specifications (STAGE0.HED)

// Parasite Eve 2
// HED file format

// unknown entries (120 bytes)
num_of_entries *
{
   40 bytes - unknown
}


num_of_entries *
{
   4 bytes (uint32) - entry ID
   4 bytes (uint32) - offset in sectors
                      // real_offset = offset * 2048
}

x bytes - padding  // 0xFF 0xFF...

Format Specifications (STAGE0.CDF)

// Parasite Eve 2
// STAGE0.CDF file format

num_of_blocks *
{
   x bytes - data block
   x bytes - padding
}

Format Specifications (STAGE1 - STAGE3)

// Parasite Eve 2
// CDF file format

// valid for STAGE1-STAGE3 files

// global TOC (2048 bytes)
num_of_entries *
{
   4 bytes (uint32) - ID
   4 bytes (uint32) - file size in sectors
                       // real_size = size * 2048
}
x bytes - padding
x bytes - unknown
x bytes - padding


num_of_entries *
{
   // local TOC (2048 bytes)
   num_of_entries *
   {
      4 bytes (uint32) - ID
      4 bytes (uint32) - file offset in sectors
                          // real_offset = offset * 2048
   }
   x bytes - padding
   x bytes - unknown
   x bytes - padding


   num_of_entries *
   {
      // data block
      16 bytes - data block header   // This header not always occurs!
                                     // Sometimes there is just raw data or sound data
      x bytes - data
   }
}

Data Blocks Types

First byte of the data block header can indicate type of the file stored inside this data block.
Below table describe type mapping:

File Type File Description Suggested File Extension
0 Room package .pe2pkg
1 Image .pe2img
2 CLUT .pe2clut
4 CAP2 Text .pe2cap2
5 Room backgrounds .bs
6 SPK/MPK music program .spk
7 ASCII text .txt
96 Sounds .pe2snd

MultiEx BMS Script

Not written yet.

Notes and Comments

  • Files inside archive may be compressed with custom LZSS compression.

Games

List of games using this file format:

  • Parasite Eve 2

Compatible Programs