Assassins Creed:Datafiles

From TBotR Wiki

Introduction

Datafiles are another container file usually compressed and stored within the forge file. Here I will be detailing the format of an decompressed datafile. Uncompressed datafiles that are stored in forge files generally do not have any usuable information.
PC Datafiles are read little-endian, XBox360 Datafiles are read big-endian.

The following game abbreviations are used throughout this page:

AC1 -- Assassin's Creed
AC2 -- Assassin's Creed II
ACB -- Assassin's Creed: Brotherhood
ACRe -- Assassin's Creed: Revelations
AC3 -- Assassin's Creed III
AC3SP -- Assassin's Creed III (Single Player)
AC3MP -- Assassin's Creed III (Multi-Player)
ACL -- Assassin's Creed: Liberation
AC4 -- Assassin's Creed IV: Black Flag
AC4SP -- Assassin's Creed IV: Black Flag (Single Player)
AC4MP -- Assassin's Creed IV: Black Flag (Multi-Player)
ACU -- Assassin's Creed: Unity
ACRo -- Assassin's Creed: Rogue

Structure

Header
Index Table
File Table File Header
File Data

Header

This section provides us with the file count for this datafile.

AC1, AC2, ACB, ACRe, AC3, ACL, AC4, ACU, ACRo
Offset Type Description
0 INT16 File Count

Index Table

This section provides us with a Resource Type and a file data size for each file contained in the datafile.
Repeat this section a number of times equal to the File Count contained in the Header.

AC1 AC2, ACB, ACRe, AC3MP, AC4MP AC3SP, ACL, AC4SP, ACU, ACRo
Offset Type Description
0 INT32 File ID
4 INT32 File Data Size
Offset Type Description
0 INT32 File ID
4 INT32 File Data Size
8 INT16 Unknown
Offset Type Description
0 INT64 File ID
8 INT32 File Data Size
12 INT16 Unknown

AC2, ACB, ACRe, AC3MP, and AC4MP have an unknown INT32 in between the Index Table and the File Table

File Table

This section provides us with a file data block for each file contained in the datafile.
Repeat this section a number of times equal to the File Count contained in the Header.

Structure

Header
File Data

Header

AC1, AC2, ACB, ACRe, AC3, ACL, AC4, ACU, ACRo
Offset Type Description
0 INT32 Resource Type
4 INT32 File Size
8 INT32 File Name Size
12 CHAR[n] File Name, n = File Name Size

File Data

Each Resource Type has its own file format. Visit the File Formats page for a listing of those formats that have been determined.

AC1, AC2, ACB, ACRe, AC3, ACL, AC4, ACU, ACRo
Offset Type Description
0 BYTE Unknown
If Unknown BYTE = 1
Offset Type Description
0 BYTE[3] Unknown
3 INT32 Unknown Count
Repeat the following equal to unknown count
7 INT32[3] Unknown
??? CHUNK Raw Data Chunk equal to file size
Personal tools