Difference between revisions of "CAPS.DAT"

From GTAMods Wiki
Jump to navigation Jump to search
m
Line 1: Line 1:
'''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. 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.
+
'''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. 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 regenerated alongside the texture cache if the video card capabilities change between game runs.
  
The file is regereneted, alongside the texture cache, if the video card capabilities change between game runs.
+
== File format ==
 
 
== File Format ==
 
  
 
{|class="wikitable"
 
{|class="wikitable"
!Offset
+
!Offset ||Type ||Description
!Description
 
 
|-
 
|-
| 0x00
+
|0x00 ||dword ||The optimal [[Texture Native Struct#Description|raster format]] for RGBA textures
| The optimal [[Texture Native Struct#Description|raster format]] for RGBA textures
 
 
|-
 
|-
| 0x04
+
|0x04 ||dword ||The optimal [[Texture Native Struct#Description|raster format]] for RGB textures
| The optimal [[Texture Native Struct#Description|raster format]] for RGB textures
 
 
|-
 
|-
| 0x08
+
|0x08 ||dword ||The optimal [[Texture Native Struct#Description|raster format]] for greyscale textures
| The optimal [[Texture Native Struct#Description|raster format]] for greyscale textures
 
 
|-
 
|-
| 0x0C
+
|0x0C ||dword ||The optimal [[Texture Native Struct#Description|raster format]] for RGBA textures with less than 256 colors.
| The optimal [[Texture Native Struct#Description|raster format]] for RGBA textures with less than 256 colors.
 
 
|}
 
|}
  
Line 26: Line 19:
 
* [[Texture dictionary]]
 
* [[Texture dictionary]]
  
{{VC-navi}}
+
{{N|VC|3}}
{{3-navi}}
 
[[Category:GTA VC]]
 
[[Category:GTA 3]]
 
 
[[Category:File Formats]]
 
[[Category:File Formats]]

Revision as of 06:06, 14 March 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. 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 regenerated alongside the texture cache if the video card capabilities change between game runs.

File format

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

See also