Difference between revisions of "Carvariations.ymt"

From GTAMods Wiki
Jump to navigation Jump to search
m (windowsWithExposedEdges)
(Name: updated plate info)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{stub}}For assigning colors, kits, lights, etc to vehicles. For modifying these settings, see [[carcols.ymt]].
+
{{Metafile|name = carvariations.meta / carvariations.#mt|struct = CVehicleModelInfoVariation|filetype = VEHICLE_VARIATION_FILE}}{{lowercase}}'''carvariations''' is used assigning colors, kits, lights, etc to vehicles in [[GTA V]]. For modifying these settings, see [[carcols.ymt]]. This file is the successor to [[carcols.dat]] in previous games.
 
=variationData=
 
=variationData=
 +
{{Metafilestruct|struct = CVehicleVariationData}}<br><br>
 
==modelName==
 
==modelName==
 
Vehicle model name.
 
Vehicle model name.
 
==colors==
 
==colors==
 +
{{Metafilestruct|struct = CVehicleModelColorIndices}}<br><br>
 +
There can be only 25 color variations per vehicle. Exceeding that amount will cause color ID's to overlap eachother.
 
===indices===
 
===indices===
Colors IDs, called from [[carcols.ymt]].
+
Colors IDs, called from [[carcols.ymt]]. Those ID's are listed in an array with up to 6 ID's.
 +
*'''First ID:''' Primary Color
 +
*'''Second ID:''' Secondary Color
 +
*'''Third ID:''' Pearlescent Color
 +
*'''Fourth ID:''' Wheel Color
 +
*'''Fifth ID:''' Extra1 Color (typically used for interiors)
 +
*'''Sixth ID:''' Extra2 Color (typically used for dials)
 +
Some recent DLC vehicles feature a seventh color ID, however it doesn't do anything and is ignored by the game.
 
===liveries===
 
===liveries===
Sets whether or not to use a livery texture in the vehicle's .ytd.
+
Sets whether or not to use a livery texture in the vehicle's .ytd. This will not toggle on modkit liveries or livery2's.
 
:'''Value:''' true or false.
 
:'''Value:''' true or false.
 
The '''Item'''s position under liveries is the texture's number. Example: If you wanted to set the Marshall to use livery #8 (flag_sign_8 in marshall.ytd), you would set the eighth Item to true.
 
The '''Item'''s position under liveries is the texture's number. Example: If you wanted to set the Marshall to use livery #8 (flag_sign_8 in marshall.ytd), you would set the eighth Item to true.
Line 18: Line 28:
  
 
==plateProbabilities==
 
==plateProbabilities==
 +
{{Metafilestruct|struct = PlateProbabilities}}<br><br>
 
Chances for what color license plate the vehicle will have.
 
Chances for what color license plate the vehicle will have.
 
===Name===
 
===Name===
Name of the license plate color.
+
Name of the license plate.
*Standard White
+
 
*White Plate 2
+
{| class="wikitable"
*Blue Plate
+
! colspan="4"|License Plates
*Yellow Plate
+
|-
*Police guv plate
+
! ID
 +
! Image
 +
! Name
 +
! Notes
 +
|-
 +
|0
 +
|[[File:GTAV-PlateTextures-ID0.png|150px]]
 +
|<code>Standard White</code>
 +
|Base game plate.
 +
|-
 +
|1
 +
|[[File:GTAV-PlateTextures-ID1.png|150px]]
 +
|<code>Yellow Plate</code>
 +
|Base game plate.
 +
|-
 +
|2
 +
|[[File:GTAV-PlateTextures-ID2.png|150px]]
 +
|<code>Blue Plate</code>
 +
|Base game plate.
 +
|-
 +
|3
 +
|[[File:GTAV-PlateTextures-ID3.png|150px]]
 +
|<code>White Plate 2</code>
 +
|Base game plate.
 +
|-
 +
|4
 +
|[[File:GTAV-PlateTextures-ID4.png|150px]]
 +
|<code>Police guv plate</code>
 +
|Base game plate. Intended for emergency vehicles.
 +
|-
 +
|5
 +
|[[File:GTAV-PlateTextures-ID5.png|150px]]
 +
|<code>yankton plate</code>
 +
|Base game plate. Intended for snowed vehicles during the North Yankton story segments.
 +
|-
 +
|6
 +
|[[File:GTAV-PlateTextures-ID6.png|150px]]
 +
|<code>plate mod 01</code>
 +
|Added in ''GTA Online: The Chop Shop'' DLC.
 +
|-
 +
|7
 +
|[[File:GTAV-PlateTextures-ID7.png|150px]]
 +
|<code>plate mod 02</code>
 +
|Added in ''GTA Online: The Chop Shop'' DLC.
 +
|-
 +
|8
 +
|[[File:GTAV-PlateTextures-ID8.png|150px]]
 +
|<code>plate mod 03</code>
 +
|Added in ''GTA Online: The Chop Shop'' DLC.
 +
|-
 +
|9
 +
|[[File:GTAV-PlateTextures-ID9.png|150px]]
 +
|<code>plate mod 04</code>
 +
|Added in ''GTA Online: The Chop Shop'' DLC.
 +
|-
 +
|10
 +
|[[File:GTAV-PlateTextures-ID10.png|150px]]
 +
|<code>plate mod 05</code>
 +
|Added in ''GTA Online: The Chop Shop'' DLC.
 +
|-
 +
|11
 +
|[[File:GTAV-PlateTextures-ID11.png|150px]]
 +
|<code>plate mod 06</code>
 +
|Added in ''GTA Online: The Chop Shop'' DLC.
 +
|-
 +
|12
 +
|[[File:GTAV-PlateTextures-ID12.png|150px]]
 +
|<code>plate mod 07</code>
 +
|Added in ''GTA Online: The Chop Shop'' DLC.
 +
|}
 +
 
 +
If one creates custom license plates, any name defined in <code>TextureSetName</code> in [[carcols.ymt]] can be used here.
 +
 
 
===Value===
 
===Value===
 
Percentage that it will be that color. Values should add up to 100.
 
Percentage that it will be that color. Values should add up to 100.
Line 31: Line 114:
 
Lighting assignment ID for the vehicle, called from [[carcols.ymt]].
 
Lighting assignment ID for the vehicle, called from [[carcols.ymt]].
 
==sirenSettings==
 
==sirenSettings==
Lighting assignment ID for the vehicle, called from [[carcols.ymt]]?
+
Siren assignment ID for the vehicle, called from [[carcols.ymt]].
 +
 
 +
<br>
 +
----
 
{{GTA5-navi}}
 
{{GTA5-navi}}

Latest revision as of 11:43, 27 August 2024

carvariations.meta / carvariations.#mt
Struct:CVehicleModelInfoVariation
File Type:VEHICLE_VARIATION_FILE

carvariations is used assigning colors, kits, lights, etc to vehicles in GTA V. For modifying these settings, see carcols.ymt. This file is the successor to carcols.dat in previous games.

variationData

Struct:CVehicleVariationData



modelName

Vehicle model name.

colors

Struct:CVehicleModelColorIndices



There can be only 25 color variations per vehicle. Exceeding that amount will cause color ID's to overlap eachother.

indices

Colors IDs, called from carcols.ymt. Those ID's are listed in an array with up to 6 ID's.

  • First ID: Primary Color
  • Second ID: Secondary Color
  • Third ID: Pearlescent Color
  • Fourth ID: Wheel Color
  • Fifth ID: Extra1 Color (typically used for interiors)
  • Sixth ID: Extra2 Color (typically used for dials)

Some recent DLC vehicles feature a seventh color ID, however it doesn't do anything and is ignored by the game.

liveries

Sets whether or not to use a livery texture in the vehicle's .ytd. This will not toggle on modkit liveries or livery2's.

Value: true or false.

The Items position under liveries is the texture's number. Example: If you wanted to set the Marshall to use livery #8 (flag_sign_8 in marshall.ytd), you would set the eighth Item to true.

kits

kitName in carcols.ymt that the vehicle uses.

windowsWithExposedEdges

  • window_lf
  • window_rf

plateProbabilities

Struct:PlateProbabilities



Chances for what color license plate the vehicle will have.

Name

Name of the license plate.

License Plates
ID Image Name Notes
0 GTAV-PlateTextures-ID0.png Standard White Base game plate.
1 GTAV-PlateTextures-ID1.png Yellow Plate Base game plate.
2 GTAV-PlateTextures-ID2.png Blue Plate Base game plate.
3 GTAV-PlateTextures-ID3.png White Plate 2 Base game plate.
4 GTAV-PlateTextures-ID4.png Police guv plate Base game plate. Intended for emergency vehicles.
5 GTAV-PlateTextures-ID5.png yankton plate Base game plate. Intended for snowed vehicles during the North Yankton story segments.
6 GTAV-PlateTextures-ID6.png plate mod 01 Added in GTA Online: The Chop Shop DLC.
7 GTAV-PlateTextures-ID7.png plate mod 02 Added in GTA Online: The Chop Shop DLC.
8 GTAV-PlateTextures-ID8.png plate mod 03 Added in GTA Online: The Chop Shop DLC.
9 GTAV-PlateTextures-ID9.png plate mod 04 Added in GTA Online: The Chop Shop DLC.
10 GTAV-PlateTextures-ID10.png plate mod 05 Added in GTA Online: The Chop Shop DLC.
11 GTAV-PlateTextures-ID11.png plate mod 06 Added in GTA Online: The Chop Shop DLC.
12 GTAV-PlateTextures-ID12.png plate mod 07 Added in GTA Online: The Chop Shop DLC.

If one creates custom license plates, any name defined in TextureSetName in carcols.ymt can be used here.

Value

Percentage that it will be that color. Values should add up to 100.

lightSettings

Lighting assignment ID for the vehicle, called from carcols.ymt.

sirenSettings

Siren assignment ID for the vehicle, called from carcols.ymt.