Difference between revisions of "Carcols.dat"

From GTAMods Wiki
Jump to navigation Jump to search
(created by Delfi 23.12.2005)
 
(CAR4)
Line 48: Line 48:
  
 
{{file-stub}}
 
{{file-stub}}
[[Category:Category:File_Formats]][[Category:GTA 3]][[Category:GTA VC]][[Category:GTA SA]]
+
[[Category:File_Formats]][[Category:GTA 3]][[Category:GTA VC]][[Category:GTA SA]]

Revision as of 14:35, 23 December 2005

Introduction

Car Colors file (carcols.dat) contains a color palette and numbers to asociate them with specific cars. Cars may or may not have a color palette.

Structure

The carcols.dat file is split up into two or three sections named "col", "car" and "car4" (car4 being only used in gta-sa). Each section starts with a section identifier and ends with the keyword "end", both in a single line.

comments in this file are done by using the numbersign "#" symbol in start of line.

Example:

# a comment!
col
...
end
car
...
end
car4
...
end

COL

Col section contain color palette, the data is made of text lines, every line contains 3 numbers seperated with a comma ',' sign. The 3 numbers in a line specifify the Red, Green and Blue component of that line's color.

First color has index of 1 (one). Commented or empty lines don't count.

CAR

CAR section asociate specific colors from color palette with cars, data in a line is separated same as in COL section (with a comma ','). Every line contains car's model name, and numbers which specify car's color pairs (2 colors per color pair - primary and secondary).

here is an made-up example:

thiscar, 1, 3, 4, 8

game will interpreter data like this:

  • the color pair data belongs to car 'thiscar'
  • numbers '1' and '3' are first color pair
  • numbers '4' and '8' are second color pair

Carname

CAR4

San andreas only, contains same data as CAR section but specifies 4 colors for specific cars, that is instead of two colors in a color pair there are four.