The Table of contents contains both Directories and File Entries. It starts after 2048 bytes from the file origin. The Table of contents size is determined by the header of the RPF archive. The Number of Entries tells us the number of files contained in the archive. The Table of Contents Size tells us the size of the table of contents (toc) segment in the file. The header tells us the version of the archive and how many entries there are.Ĥb - INT32 - Table of Contents Size (in bytes)Ĥb - INT32 - Number of Entries (root entry '/' included) The RPF files all contain the same header. Version 8: 0x52504638 - Red Dead Redemption 2 Version 7: 0x52504637 - Grand Theft Auto V Version 6: 0x52504636 - Red Dead Redemption Version 3: 0x52504633 - Grand Theft Auto IV Audio & Midnight Club: Los Angeles Version 2: 0x52504632 - Grand Theft Auto IV Version 0: 0x52504630 - Rockstar Games Presents Table Tennis
The RPF Version tells us the version of the RPF Archive: