PDA

View Full Version : Question about adding cars...


Zeromaru
08-04-2005, 03:37 PM
Alright. We all know about replacing cars in GTA. I've personally done it hundreds of times, as has many many other people. But is it possible to ADD cars?

Personally, I would think it's possible, and not very hard. In San Andreas, default.ide reserves #'s 400-799 for vehicles, but only goes up to 611. In theory, one could add almost two hundred cars into the state. Personally, I'd rather do that than replace existing cars.

My theory for adding cars involves:
1) Adding a new entry to vehicles.ide with unique names
2) Adding a corresponding entry in handling.cfg
3) An entry in carcols.dat and carmods.dat are optional, as some official cars lack entries
4) Adding car to cargrp.dat for road spawnage
5) Adding unique .dff and .txd files to gta3.img
6) Spawning parked at specific coordinates

The problem comes with #6 (which also prevents me from trying it myself). In which file is parked car data stored in, and how can I edit it (something tells me it's not in simple ASCII format)?

Also, is there any other place which stores car information? Like, is the number of cars coded somewhere to prevent new cars?

EDIT: I forgot to mention WHY I need to be able to have it parked somewhere. I've noticed a strange tendency for the game to not spawn a new car model until I find it parked, and then it spawns in overabundance. But I need to find it parked first.

rappo
08-04-2005, 04:38 PM
http://www.gtaforums.com/index.php?showtopic=19141 3

That's for Vice City. I did it for Vice City several times, but I don't know if anybody has tried this out for San Andreas yet.

Zeromaru
08-04-2005, 04:45 PM
Thanks a bunch, rappo dude. I can see where things would need to be changed for San Andreas (like Step 2 isn't needed as there's lots of extra numbers for cars).

EDIT: Still doesn't help for parked cars, though. So it turns out that this tutorial only confirms exactly what I thought I had to do. I'm pretty sure parked cars are done in main.scm, but I don't know where (or how to, though I've found the entries).