Cyberpunk 2077:Archive File Format

From Modding Wiki
Revision as of 08:21, 7 October 2024 by Seberoth (talk | contribs)
Jump to navigationJump to search

File Structure

Name Type/Size Info
Header Header See specification of Header below.

Header

Name Type/Size Info
fileId char[4] Constant: "RDAR"
version uint32 Currently 12 (0x0C)
indexOffset uint64 Offset of beginning of file list
indexSize uint32 Size of the file list
debugOffset uint64 Always 0
debugSize uint32 Always 0
fileSize uint64 Size of file (excluding fileSize)
customDataLength uint32 WolvenKit only

File Index List

Name Type/Size Info
fileTableOffset uint32 TODO
fileTableSize uint32 TODO
crc uint64 TODO
fileEntryCount uint32 TODO
fileSegmentCount uint32 TODO
resourceDependencyCount uint32 TODO
files File Entry[fileEntryCount] TODO
fileSegments File Segment[fileSegmentCount] TODO
resourceDependencies uint64[resourceDependencyCount] TODO

File Entry

Name Type/Size Info
nameHash uint64 FNV1A64 hash of the filename
timestamp int64 TODO
numInlineBufferSegments uint32 TODO
segmentStart uint32 TODO
segmentEnd uint32 TODO
resourceDependencyStart uint32 TODO
resourceDependencyEnd uint32 TODO
checksum uint8[20] SHA1 hash

File Segment

Name Type/Size Info
offset uint64 TODO
zSize uint32 TODO
size uint32 TODO