GoodEngine/HO (File Format): Difference between revisions

no edit summary
No edit summary
No edit summary
 
(13 intermediate revisions by 2 users not shown)
Line 1:
'''HO archives''' are container files used by Heavy Iron Studios in their 7 Good Engine/Havok games. They are used to store assets, which are the resources and objects used to create levels, characters and menus for the games.
 
===Endian===
Line 5:
 
==Format==
===HEL/HEBHeader===
0x800 HO header
 
{| class="wikitable"
|-
! Offset !! Type !! Variable !! Description
|-
| 0x00 || stringchar[4] || '''cMagic''' || '''HEL''' or '''HEB'''
|-
| 0x04 || int || '''verPackFile''' ||
Line 20 ⟶ 18:
| 0x0C || int || '''geBuildNum''' ||
|-
| 0x10 || long || '''timeValue''' || Number of seconds since 00:00, Jan 1 1970 UTC, with a timezone offset of UTC-7:00 (Pacific Time).
|-
| 0x18 || stringchar[0x18] || '''timeString''' || <code>Www Mmm dd hh:mm:ss yyyy</code>
|-
| 0x40 || int || [FormatInfo] '''sectorSize''' || HOAlways archives are divided in0x800 (2048 (0x800bytes) byte sectors, i.e. HO Header is Sector 0, [[#MAST (MasterTable)|MAST]] is Sector 1...
|-
| 0x44 || int || [MasterTable] '''startSector''' || Always 1 (if '''sectorSize''' is 0x800).
|-
| 0x48 || int || [MasterTable] '''tableSize''' || Size of [[#MAST (MasterTable)|MAST]].
|-
| 0x4C || intbyte[0x3B4] || '''pad01reserved''' || ''null''
|-
| 0x400 || WideString || '''platform''' ||
Line 44 ⟶ 42:
* WALE = Wall-E
* Up = Up
* SB09 = SpongebobSpongeBob's Truth or Square
* UFCT = UFC Personal Trainer
* FIVE = Harley Pasternak's Hollywood Workout
* FGUY = Family Guy: Back to the Multiverse
* RB09 = ? '''[Unreleased]'''
* STRO = Saints Row: The Cooler '''[Unreleased]'''
* MM = Megamind '''[Unreleased]'''
* CSNO = Casino '''[Unreleased]'''
* BAKU = ? '''[Unreleased]'''
|-
| 0x4BC || WideString || '''creator''' || always "'''GoodEditor:PackView.GEPlugin'''"
|-
| 0x4FC || WideString || '''comment''' || ''null''
|-
| 0x5FC || WideString || '''hash''' ||
|-
| 0x63C || int || '''libVersion''' || Always 1.
|-
| 0x640 || intbyte[0x1C0] || '''pad02reserved''' || ''null''
|}
 
===MAST (MasterTable)===
====TableHeader====
{| class="wikitable"
Line 71 ⟶ 64:
! Offset !! Type !! Variable !! Description
|-
| 0x00 || stringchar[4] || '''tableTypeTag''' || '''MAST'''
|-
| 0x04 || int || '''entryCount''' || Amount of [[#MasterEntry|master entries]], always 1.
|-
| 0x08 || int || '''tableFlags''' || ''null''
|-
| 0x0C || int || '''firstString''' || Offset to [[#StringTable|StringTable]], relative to start of this header.
Line 81 ⟶ 74:
| 0x10 || int || '''stringTableSize''' || Size of [[#StringTable|StringTable]], relative to end of [[#MasterEntry|MasterEntry]].
|-
| 0x14 || int || '''firstMetaRec''' || ''0xFFFFFFFF''
|-
| 0x18 || int || '''metaDataSize''' || ''null''
|-
| 0x1C || intbyte[4] || '''reserved''' || ''null''
|}
 
Line 95 ⟶ 88:
| 0x00 || int || '''sectionType''' || '''SECT/TCES'''
|-
| 0x04 || shortushort || '''packLangID''' || ''null''
|-
| 0x06 || byteubyte || '''parcelType''' || ''null''
|-
| 0x07 || byte || '''pad''' || ''0x33''
|-
| 0x08 || int || '''userKey''' || ''null''
|-
| 0x0C || intuint || '''nameHash''' || Lowercase BKDR hash of domain string.
|-
| 0x10 || int || '''namePtr''' || Offset to domain string, relative to start of [[#MAST (MasterTable)|MAST]].
|-
| 0x14 || intuint || '''fromNameHash''' || ''null''
|-
| 0x18 || int || '''fromNamePtr''' || ''0xFFFFFFFF''
|-
| 0x1C || int || '''startSector''' || Multiply this by [[#HEL/HEBHeader|'''sectorSize''']] to get the absolute offset. Start of [[#SECT (SectionTable)|SECTSectionTable]].
|-
| 0x20 || int || '''sizeOnDisk''' || Size of [[#SECT (SectionTable)|SECT]].
|-
| 0x24 || int || '''sizeInMem''' || Size of [[#SECT (SectionTable)|SECT]].
|-
| 0x28 || int || '''memoryAlignment''' || ''0xFFFFFFFF''
|-
| 0x2C || int || '''attributeFlags''' || ''null''
|-
| 0x30 || int || '''externName''' || ''0xFFFFFFFF''
|-
| 0x34 || int || '''metaBlockCount''' || ''null''
|-
| 0x38 || int || '''metaRecord''' || ''0xFFFFFFFF''
|-
| 0x3C || intbyte[4] || '''reserved''' || ''null''
|}
 
Line 133 ⟶ 126:
Unknown
 
===SECT (SectionTable)===
====TableHeader====
{| class="wikitable"
Line 139 ⟶ 132:
! Offset !! Type !! Variable !! Description
|-
| 0x00 || stringchar[4] || '''tableTypeTag''' || '''SECT'''
|-
| 0x04 || int || '''entryCount''' || Amount of [[#SectionEntry|section entries]].
|-
| 0x08 || int || '''tableFlags''' || ''null''
|-
| 0x0C || int || '''firstString''' || Offset to domain string, relative to start of this header.
Line 151 ⟶ 144:
| 0x14 || int || '''firstMetaRec''' || Offset to [[#MetaSection|MetaSection]], relative to start of this header.
|-
| 0x18 || int || '''metaDataSize''' || Size of PSL/PSLD entries in [[#MetaSection|MetaSection]] (without child blocks).
|-
| 0x1C || intbyte[4] || '''reserved''' || ''null''
|}
 
Line 165 ⟶ 158:
* '''PD/DP''' = ParcelDebug
* '''PTEX/XETP''' = ParcelTexture
* '''PFST/TSFP''' = ParcelMemFast '''(Not present in Ratatouille)'''
|-
| 0x04 || shortushort || '''packLangID''' ||
'''Values are in big-endian'''<br>First byte is region code, second byte is language code<br>E.g., 0x0409 = English US, 0x0009 = English Neutral
* 0x0000 = Neutral Neutral
* 0x0401 = Arabic SaudiArabia
* 0x0804 = Chinese China
* 0x0C04 = Chinese HongKong
* 0x0404 = Chinese Taiwan
* 0x1004 = Chinese Singapore
* 0x0405 = Czech Republic
* 0x0406 = Danish Denmark
* 0x0413 = Dutch Netherlands
* 0x0409 = English US
* 0x0809 = English UK
* 0x0C09 = English Australia
* 0x1009 = English Canada
* 0x040B = Finnish Finland
* 0x040C = French France
* 0x0407 = German Germany
* 0x0807 = German Swiss
* 0x0408 = Greek Greece
* 0x0410 = Italian Italy
* 0x0411 = Japanese Japan
* 0x0412 = Korean Korea
* 0x0814 = Norwegian Nynorsk
* 0x0415 = Polish Poland
* 0x0816 = Portuguese Portugal
* 0x0416 = Portuguese Brazilian
* 0x0419 = Russian Federation
* 0x041B = Slovak Slovak
* 0x080A = Spanish Mexican
* 0x0C0A = Spanish Spain
* 0x041D = Swedish Sweden
* 0x0422 = Ukrainian Ukraine
|-
| 0x06 || byteubyte || '''parcelType''' ||
* 0 = UNDEFINED
* 1 = EXCLUSIVE
* 2 = SHARED
* 3 = FROMDOMAIN
|-
| 0x07 || byte || '''pad''' || ''0x33''
|-
| 0x08 || int || '''userKey''' || ''null''
|-
| 0x0C || intuint || '''nameHash''' || Lowercase BKDR hash of domain string.
|-
| 0x10 || int || '''namePtr''' || Offset to domain string, relative to start of [[#SECT (SectionTable)|SECT]].
|-
| 0x14 || intuint || '''fromNameHash''' || Lowercase BKDR hash of domain string from original parcel (if '''parcelType''' is 3).
|-
| 0x18 || int || '''fromNamePtr''' || ''0xFFFFFFFF''
|-
| 0x1C || int || '''startSector''' || Multiply this by [[#HEL/HEBHeader|'''sectorSize''']] to get the absolute offset. Start of section.
|-
| 0x20 || int || '''sizeOnDisk''' || Size of section.
Line 189 ⟶ 218:
| 0x24 || int || '''sizeInMem''' || Size of section.
|-
| 0x28 || int || '''memoryAlignment''' || Memory alignment of assetParcelData dataassets in section.
|-
| 0x2C || int || '''attributeFlags''' || ''null''
|-
| 0x30 || int || '''externName''' || ''0xFFFFFFFF''
|-
| 0x34 || int || '''metaBlockCount''' || Amount of [[#PSL (ParcelSliceMeta)|PSL]]/[[#PSLD (ParcelSliceDebugMeta)|PSLD]] entries, always 1.
|-
| 0x38 || int || '''metaRecord''' || Offset to [[#PSL (ParcelSliceMeta)|PSL]] (P, PTEX, PFST) or [[#PSLD (ParcelSliceDebugMeta)|PSLD]] (PD) entry, relative to start of [[#SECT (SectionTable)|SECT]].
|-
| 0x3C || intbyte[4] || '''reserved''' || ''null''
|}
 
 
===MetaSection===
====PSL (ParcelSliceMeta)====
{| class="wikitable"
|-
Line 211 ⟶ 239:
! colspan="4" | MetaParcelSlicesHeader
|-
| 0x00 || stringchar[4] || '''metatype''' || '''PSL'''
|-
| 0x04 || int || '''metasize''' || Size of ParcelSliceMetaPSL.
|-
| 0x08 || int || '''numSlices''' || Amount of slice entries.
|-
| 0x0C || int || '''reserved''' || ''null''
|-
! colspan="4" | MetaParcelSlicesEntry
Line 244 ⟶ 272:
| 0x04 || int || '''brickDataOffset''' ||
|-
| 0x08 || int[6] || ''' reserved''' || ''0x74747474''
|-
! colspan="4" | TOCEntry
Line 250 ⟶ 278:
| 0x00 || int || '''elementSize''' || Size of asset (with 0x33 padding bytes).
|-
| 0x04 || int || '''elementOffset''' || Offset to asset, relative to start of [[#SectionEntry|'''startsectorstartSector''']].
|-
| 0x08 || int || '''blobSize''' || Size of asset (without 0x33 padding bytes).
Line 260 ⟶ 288:
| 0x18 || int || '''wmlTypeID''' || AssetType of corresponding asset.
|-
| 0x1C || short || '''subType''' || Not present in Ratatouille/Wall-E
|-
| 0x1E || short || '''blobFlags''' || int32 in Ratatouille/Wall-E
|}
 
====PSLD (ParcelSliceDebugMeta)====
{| class="wikitable
|-
Line 272 ⟶ 300:
| 0x00 || string || '''magic''' || '''PSLD'''
|-
| 0x04 || int || '''size''' || Size of ParcelSliceDebugMetaPSLD.
|-
| 0x08 || int || '''count'''|| Amount of [[#PSLD Entry|'''entrySize''']] and [[#PSLD Entry|'''NameTableEntry''']].
|-
| 0x0C || int || '''offset''' || Offset to [[#PSLD Entry|'''NameTableEntry''']], relative to start of [[#SectionEntry|'''startSector''']].
|-
| 0x10 || intbyte[416] || Unknown || Unknown
|}
 
=====PD (ParcelDebug)=====
=====PSLD Entry=====
{| class="wikitable"
|-
! Offset !! Type !! Variable !! Description
|-
| 0x00 || int[count] || '''entrySize''' || Length in bytes of the entries below.
|-
! colspan="4" | NameTableEntry
Line 291 ⟶ 320:
| 0x00 || [[AssetID]] || '''assetid''' || AssetID of corresponding asset.
|-
| 0x08 || int || '''offset'''? || OffsetRelative offset to assetname?
|-
| 0x0C || int[5] || Unknown || Unknown
|-
| 0x10 || int || Unknown || ''0xFFFFFFFF''
| 0x20 || String || '''assetname''' || Name of corresponding asset.
|-
| 0x14 || int[3] || Unknown || ''null''
| colspan="4 | Padding bytes until this entry reaches '''<entrySize>''' in length.
|-
| 0x20 || Stringchar[] || '''assetname''' || NameNull-terminated name of corresponding asset.
|-
| colspan="4 | Padding - 0x33 bytes until this entry reaches '''<entrySize>''' in length.
|}
 
 
[[Category:File Format]] [[Category:GoodEngine]]
2,079

edits