CarEd v1.4


Description:

CarEd is an editor for Grand Theft Auto Vice City's vehicle handling.


Files:

CarEd1.4 CarEd version 1.4.


Running:

The first time CarEd is run, it creates a backup of your original handling.cfg if one doesn't already exist. If anything goes wrong or you can copy your <Vice City Directory>\data\handling.cfg.original over <Vice City Directory>\data\handling.cfg and everything will reset to the way it was before you first ran CarEd.

At the moment, you can only edit existing vehicles.

CarEd appears to load GTA3 handling.cfg files fine, but I haven't tested it with that game yet.


V1.1 Changes:

Fixed car not being updated when the Save button is pressed right after changes have been made and another car hasn't been selected.

 

V1.2 Changes:

Vehicle listbox is now sorted alphabetically.

For boats, some fields mean different things than in other vehicles. The edit boxes for those fields are now re-labeled appropriately if the "IS_BOAT" checkbox is checked.

Fixed the tab order.

Added the ability to edit the extra data for bikes, boats, and flying vehicles. Its ugly and uses the field names right out of handling.cfg, but it works. Once I find a list of what all those fields mean in plain english, I'll relabel them to something more descriptive. Note: You can't add extra data to a vehicle that didn't already have it and if there are multiple sets of data (ie. a vehicle has a bike line and a boat line in handling.cfg) you can only edit one of them and it will choose bike data first, then boat data, then plane data. If a vehicle does have more than one set, they will all still be loaded/saved, but you will only be able to edit one.

Reorganised everything. I'm not as happy with it as I'd like to be, but its the best layout I could think of for what I had to work with. A side effect of this change and the adding of more fields for editting bike/boat/plane data is that the program's window is quite large now. 1024x768 is the lowest resolution that can show the whole program at once.

Replaced the save, exit, and settings buttons with menus.

V1.3 Changes:

Added the ability to edit a car's wheel scale and select the wheel model ID. Only the models named "wheel_*" inside the "objs" section of default.ide will show in the list of wheels you can select from. Like with handling.cfg, a backup of default.ide named default.ide.original is made the first time CarEd is run and one doesn't exist. Also, any user modifications to other sections of default.ide are preserved when saved.

Got rid of the message box that came up when you saved. Now it only comes up if it was unable to save.

V1.4 Changes:

Fixed a bug where the wrong data is shown when CarEd is opened and a different car hasn't been selected yet.

Added the ability to edit the class in default.ide.

Can now edit car colors via the Edit->Colors menu, which brings up the color editor. In the color editor you can change the color of existing color pairs, add new color pairs, or delete color pairs (can't delete the last pair). You can edit the colors themselves, but I don't recommend it yet since it changes a color for every car that uses it and I haven't finished that part of the color editor yet (doesn't change the color name or "radio name" and theres no way to add new colors. Note: The vehicle names in the color editor are the names from carcols.dat, so they'll be different from the names you see in the main editor. Also note: If the "lock pair" checkbox is checked, changing one color in a color pair changes them both. The "lock pair" checkbox is automatically checked when a vehicle is selected and none of its color pairs have different color1 and color2 colors.

CarEd now unsets the read-only flag on default.ide, handling.cfg, and carcols.dat each time it is run.

Added the "Edit->Revert to original" menu which will restore the handling fields of the selected vehicle to their original values (or whatever is stored in handling.cfg.original if it has been changed).


TODO:

Add a way to copy one or more fields from one vehicle to another.

Add a way to create new vehicles (its possible in Vice City, but theres a limited number of free IDs to use).

Change the edit boxes so you can't enter a number thats invalid or exceeds the precision for that field.

<PICKY>Make written floats strip off trailing zeroes and add some code to make everything line up nice when big/small numbers are used</PICKY>

Extend the "revert to original" function so the user can select which fields to revert.

Make CarEd prompt to save if it is closed and changes have been made to vehicles.

Really needs a rewrite. Had I known when I started that CarEd would be editing more than just handling.cfg, I would have done things a lot differently.


Rant:

I'm probably gonna catch a bunch of flak about how CarEd isn't all nicely organized with tabs like the GTA3 editors, but I prefer it this way. Everything I need to see is right there on one page and I don't have to go flipping though a bunch of tabs to see how another car is set up.