dir and the content pointed by the directory in the. In this version, the directory and the raw files are stored in separate files, the directory entries are stored in a. By not following this rule, the game might get unstable. This is because the game might read more than one file with a single system call.
The format is divided between directory entries, which contains information about the actual files in the img archive, and the actual files, which are stored (usually) unsorted, uncompressed and linear (no directory tree).ĭirectory entries should be in the same order as the files are stored, and there should not be any empty block between files. This means that even a file with only 123 byte content will take up 2 KiB in the archive. Thus values for offset and size have to be multiplied by 2048. Every file contained in the img archive must be sector aligned, where the size of each sector is 2048 bytes. The format reflects sectors of CD-ROMs, improving I/O speed on the storage media.
They have a very simple format and currently exist in multiple versions. GTA's most commonly used archive files are cd images, known by the extension.