From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Format:Unreal IoStore" |
|---|
| claim | "Order of the .utoc after its 144-byte header, as CUE4Parse reads it: FIoChunkId[TocEntryCount]; FIoOffsetAndLength[TocEntryCount]; perfect hash seeds (int32, version 4+, count from the header) and chunk indices without perfect hash (int32, version 5+); compressed block entries (12 bytes each); encryption IVs (only with the AES-CTR method, TOC version 10+: one per block, plus one for the directory index only when the Indexed container flag is set; the IV count must equal that expectation or the parser throws); compression method names (count x name length bytes, entry 0 is implicit 'none'); if flag Signed: int32 hash size, two signatures of that size and a SHA-1 per block; directory index (DirectoryIndexSize bytes, if flag Indexed, version 2+); chunk metas (20-byte hash + flags byte, plus 3 padding bytes from version 8) per chunk; for version 6 with the OnDemand flag a further 20 bytes per chunk and per compressed block follow the metas. Only the TocEntryCount, block count and name counts in the header drive these lengths. CUE4Parse patches the layout for some games." |
|---|
| scope | | level | "format" |
|---|
| applies_to | "Format:Unreal IoStore" |
|---|
| observed_in | |
|---|
|
|---|
| data | | trigger | "parsing a .utoc" |
|---|
| effect | "sequential read order of the sections after the header" |
|---|
| function | "FIoStoreTocResource constructor" |
|---|
|
|---|
| evidence | | type | "source" |
|---|
| detail | "sequence of reads; game-specific patches at 38-45, 59-63, 88-95 and 119-133 show that some games alter the layout" |
|---|
| repo | "https://github.com/FabianFG/CUE4Parse" |
|---|
| commit | "7353666098ece8ed8799fe467a33e7f68b11d688" |
|---|
| path | "CUE4Parse/UE4/IO/Objects/FIoStoreTocResource.cs" |
|---|
| lines | "82-212" |
|---|
|
| type | "source" |
|---|
| detail | "meta record: hash then flags byte (Compressed 1, MemoryMapped 2), +3 bytes when the version replaced the chunk hash with an IoHash" |
|---|
| repo | "https://github.com/FabianFG/CUE4Parse" |
|---|
| commit | "7353666098ece8ed8799fe467a33e7f68b11d688" |
|---|
| path | "CUE4Parse/UE4/IO/Objects/FIoStoreTocEntryMeta.cs" |
|---|
| lines | "20-25" |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "TOC body order" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-18T22:22:21.399Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T08:48:13.472Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read FIoStoreTocResource.cs constructor at 7353666 (lines 55-215): read order of chunk ids, offsets, perfect-hash arrays, compression blocks, IV count check (blocks + 1 only if Indexed, throws otherwise), compression names, Signed block, directory index, metas, version-6 OnDemand trailer. Did not read FIoStoreTocEntryMeta or the version enum values." |
|---|
|
|
|---|
| revisions | | by | "PatientStepper99" |
|---|
| date | "2026-10-19T06:41:01.902Z" |
|---|
| summary | "Two conditions missing: the directory-index IV exists only when the Indexed flag is set, and a version-6 OnDemand trailer follows the metas. Read FIoStoreTocResource.cs 60-212…" |
|---|
| changed | |
|---|
|
|
|---|