Quantcast

Jump to content

» «
Photo

Tutorial: Change car colors instantly

2 replies to this topic
Darlyn
  • Darlyn

    Keyboard & mouse

  • Members
  • Joined: 22 Apr 2006

#1

Posted 22 April 2006 - 08:23 AM


GTA Vice City Modifying Tutorial: How to change car colors
by Darlyn Perez


Ok, the goal of this tutorial is to change a car's general colors in VC without having to download pre-made mod from the web. Small details such as headlights or any signs on the vehicle will not change color.
The only thing that will change color are sections that span over the vehicle.

So, we will be changing an ambulance's colors as an example. First off, I must make it clear that this tutorial goes a bit into the field of C++ game programing. You will be modifying a data file that makes up the game's structure. If you make a mistake, it could possibly interfere with the game.
Also, I insist that you view the pictures that come with this tutorial, hence the fact that you will mess up if you don't.
That said, lets begin:

1. The file you will be accessing is called carcols.dat, located in C:\Program Files\Rockstar Games\Grand Theft Auto Vice City\data. If you cannot find this folder, simply search for "carcols.dat" on your computer.
If this is your first time open a DAT file, then you will be prompted to choose which program to open it with. Choose Notepad from the list and hit OK.

2. After opening the file, maximize the window. Scroll down a bit until you get to somewhere that looks like this (Note: the red text was added by me and will not appear on your computer):
user posted image

3. What you should be looking at now are three columns of text. This is the color table Rockstar conviniently made for us. It is composed of three columns;
the first is a color in RGB form; the second column has the numberical value of this color set by the table and with a color name next to it; the last column also holds the color's name and is there as reference.
Please do not touch anything on this table, as it will modify the game in the wrong way.

4. Now, scroll down a bit more until you reach the end of the color table and stumble into another one. This is the cars table, with two columns.
The first column simply has a short indentifier of the car and then comes a comma (,). After the comma, you will be in the next column, which contains numbers seperated by commas once again.
user posted image

5. Ok, now I will show you an example of the ambulance. The ambulance consists of two main colors: White (1), and Cherry Red (3). We will be changing these values to our preference.
user posted image

6. To change how what these colors will be in the game, we must simply change the values to what we want. Lets say you want to replace the white color with a dark blue. Since dark blue is defined as the number 4, you replace the number 1 (which means white) with the number four.
Now you could change the ambulance's red coloring into a light blue. Just as with the dark blue, we must find the numberical value that represents light blue in the table. In this case, its the number 59, so change the 3 (which means red) into 59.

You have now successfully modified the game right from your computer. To see the effects, run the game and find an ambulance. You should see your changes immediately. Feel free to experiment with other cars and different colors until you get what you want. If you have any questions, please post it on this forum and if I don't reply by a day, then send it to [email protected]



Ben
  • Ben

    Retired

  • Members
  • Joined: 12 May 2005

#2

Posted 22 April 2006 - 08:26 AM

Nice work icon14.gif.

However, this belongs in the Tutorial Forum - I expect it will be moved sometime wink.gif.

Darlyn
  • Darlyn

    Keyboard & mouse

  • Members
  • Joined: 22 Apr 2006

#3

Posted 22 April 2006 - 04:34 PM

Thanks for the comments. I have been experimenting with things like this for a few days and will most likely add other similar programing tutorials.

On this tutorial being moved: I hope it is moved to the tuts sections. smile.gif




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users