HED: Difference between revisions

From Game Research Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 3: Line 3:
* [[Parasite Eve II]] (PSX)
* [[Parasite Eve II]] (PSX)


The file extension suggests it is some type of header file. Possibly some sort of index that is used by the game to load game assets. File name used is "STAGE0.HED". There is no difference between the one on disc 1 and 2 (they are 1:1 match). A pattern is observed starting from position 128 (0x80). 4 bytes that increases followed by another 4 bytes that appears to be a number with no obvious relation to the first number. Essentially, there is pairs of 4 bytes for the majority of the file. The first 128 bytes has no pattern that can be seen other than a possible ID that matches other formats where there is a header before each data entry that ID's the type and possibly how many frames/sectors the data occupies on the disc.
This file is only seen used with reference to "STAGE0.CDF". The other CDF files have the header file embedded inside at the start of CDF files. For this format, it appears the first 120 bytes are used for another type of reference. Online research shows this is streaming file list. The format is a little more complicated than I thought. Also have folder lists as well. However, at
least for this one, as far as I can currently tell, there is no folders for STAGE0. All locations are aligned by 2048 bytes to match the CD structure frames/sectors. Initially I misread the
zeros as padding but turns out they are the first file entry in the index. File 0 which starts at the offset of the file 0. So looks like 8 bytes of zeros but actually 2, 4 byte values.
 
The index entry points to a data header section that is 16 bytes that describes the content that is stored at the location. This includes the file type and how large it is along with a few other
values to figure out.


== Structure ==
== Structure ==
Line 11: Line 16:
! Size !! Content !! Description
! Size !! Content !! Description
|-
|-
| 128 bytes || Unknown ||
| 120 bytes || Streaming list(?) ||
|-
|-
!colspan="15"|Index
!colspan="15"|Index
Line 17: Line 22:
! Size !! Content !! Description
! Size !! Content !! Description
|-
|-
| 4 bytes || Unknown ||
| 4 bytes || File ID ||
|-
|-
| 4 bytes || Unknown ||
| 4 bytes || File offset in data archive ||
|}
|}


== See Also ==
== See Also ==
[[CDF]]
[[CDF]]

Latest revision as of 03:47, 23 January 2023

Used in the following games:

This file is only seen used with reference to "STAGE0.CDF". The other CDF files have the header file embedded inside at the start of CDF files. For this format, it appears the first 120 bytes are used for another type of reference. Online research shows this is streaming file list. The format is a little more complicated than I thought. Also have folder lists as well. However, at least for this one, as far as I can currently tell, there is no folders for STAGE0. All locations are aligned by 2048 bytes to match the CD structure frames/sectors. Initially I misread the zeros as padding but turns out they are the first file entry in the index. File 0 which starts at the offset of the file 0. So looks like 8 bytes of zeros but actually 2, 4 byte values.

The index entry points to a data header section that is 16 bytes that describes the content that is stored at the location. This includes the file type and how large it is along with a few other values to figure out.

Structure

Header
Size Content Description
120 bytes Streaming list(?)
Index
Size Content Description
4 bytes File ID
4 bytes File offset in data archive

See Also

CDF