Carcols.dat

From GTAMods Wiki
Revision as of 14:40, 23 December 2005 by JernejL (talk | contribs) (CAR4)
Jump to navigation Jump to search

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.