Difference between revisions of "CAPS.DAT"

From GTAMods Wiki
Jump to navigation Jump to search
(Created page with "'''CAPS.DAT''' is a binary file in the <code>..\data</code> directory of GTA III and Vice City. This file does not appear upon installation. It is generated along with <code>t...")
 
Line 1: Line 1:
'''CAPS.DAT''' is a binary file in the <code>..\data</code> directory of GTA III and Vice City. This file does not appear upon installation. It is generated along with <code>txd.dir</code> and <code>txd.img</code> once you run the game for the first time and may or may not appear depending on your video card. It contains only four dword entries but their meanings are unknown. Based on how the file is generated, it may be related to textures.
+
'''CAPS.DAT''' is a binary cache file in the <code>./data</code> directory of GTA III and Vice City. It stores information about the capabilities of the user video card for texture caching. This file does not appear upon installation. It is generated along with <code>txd.dir</code> and <code>txd.img</code> once you run the game for the first time.
 +
 
 +
The file is regereneted, alongside the texture cache, if the video card capabilities change between game runs.
 +
 
 +
== File Format ==
 +
 
 +
{|class="wikitable"
 +
!Offset
 +
!Description
 +
|-
 +
| 0x00
 +
| The optimal [[Texture Native Struct#Description|raster format]] for RGBA textures
 +
|-
 +
| 0x04
 +
| The optimal [[Texture Native Struct#Description|raster format]] for RGB textures
 +
|-
 +
| 0x08
 +
| The optimal [[Texture Native Struct#Description|raster format]] for greyscale textures
 +
|-
 +
| 0x0C
 +
| The optimal [[Texture Native Struct#Description|raster format]] for RGBA textures with less than 256 colors.
 +
|}
 +
 
 +
== See also ==
 +
* [[IMG archive]]
 +
* [[Texture dictionary]]
  
[https://support.rockstargames.com/hc/en-us/articles/200147446-GTA-VC-running-slowly-on-PC Rockstar Support] mentions deleting the file to improve performance if your video card was changed. Deleting the file for either games will force the game to reconvert textures to "optimal format" for your video card and regenerate the file.
 
 
[[Category:GTA VC]]
 
[[Category:GTA VC]]
 
[[Category:GTA 3]]
 
[[Category:GTA 3]]
 
[[Category:File Formats]]
 
[[Category:File Formats]]

Revision as of 04:37, 3 February 2015

CAPS.DAT is a binary cache file in the ./data directory of GTA III and Vice City. It stores information about the capabilities of the user video card for texture caching. This file does not appear upon installation. It is generated along with txd.dir and txd.img once you run the game for the first time.

The file is regereneted, alongside the texture cache, if the video card capabilities change between game runs.

File Format

Offset Description
0x00 The optimal raster format for RGBA textures
0x04 The optimal raster format for RGB textures
0x08 The optimal raster format for greyscale textures
0x0C The optimal raster format for RGBA textures with less than 256 colors.

See also