Changes

Jump to navigation Jump to search
Attributes
The '''accessory_transmission_data''' unit class is used to define the transmission characteristics for the [[Documentation/Engine/Game_data/Player_trucks_definitions|player's vehicle]], as well as the differential ratio. Units of this type are usually defined in '''/def/vehicle/truck/<makebrand.model>/transmission/*.sii''' and valid unit names end in <code>.transmission</code>.
== Attributes ==
|stall_torque_ratio
|float
|&#45;1.0|This defines the maximum torque multiplication of the Torque ratio multiplier if torque converter for an automatic transmission. The torque output of the transmission /multiplier is clamped to a maximum of (engine torque &times; gear ratio &times; stall_torque_ratio)present. That Any positive value is, the output torque stops increasing once the output speed drops below (engine speed &divide; gear ratio &divide; stall_torque_ratio). If unset, the transmission behaves like a conventional transmission without a used as multiplier on lower RPM torque converter.
|-
|differential_ratio
|float
|1.0
|This defines the differential/final drive ratio between the transmission output shaft and the wheels.
|-
|0
|The number of output levels for the retarder if applicable. If zero, retarder behavior is disabled for the transmission.
|-
|auxiliary_brakes
|array&lt;float3&gt;
|
|When set, this overrides the retarder control so that it controls both the retarder and engine brake. The components are (retarder strength, engine brake strength, forced downshift). The value of retarder must match the number of members in auxiliary_brakes. (''Added in 1.28'') For example:
<pre> retarder: 5
auxiliary_brakes[]: (0.3, 0, 0) // 30% retarder only
auxiliary_brakes[]: (0.6, 0, 0) // 60% retarder only
auxiliary_brakes[]: (1.0, 0, 0) // 100% retarder only
auxiliary_brakes[]: (1.0, 1, 0) // 100% retarder and 100% engine brake
auxiliary_brakes[]: (1.0, 1, 1) // 100% retarder, 100% engine brake and downshift</pre>
|-
|ratios_reverse
|float_arrayarray&lt;float&gt;
|
|This defines the reverse gear ratios in order of decreasing gear reduction. The values should be negative. Example:
|-
|ratios_forward
|float_arrayarray&lt;float&gt;
|
|This defines the forward gear ratios in order of decreasing gear reduction. The values should be positive. Example:
|
|Points to a unit of the type [[Documentation/Engine/Units/transmission_names|transmission_names]], usually nameless and within the same unit definition file or [[Documentation/Engine/Units#Includes|included]] from a Serialized Unit Include (.sui) type file. This is used to assign custom names to each gear in automatic and sequential modes (these are overridden by h-shifter pattern definitions).
|-
|auto_mode_name
|string
|A
|Prefix for gear number in dashboard display (element id 1310) during automatic transmission mode. ''(Added in 1.35)''
|-
|manual_mode_name
|string
|M
|Prefix for gear number in dashboard display (element id 1310) during manual transmission mode. ''(Added in 1.35)''
|-
|crawls
|uint
|0
|The number of ratios_forward to handle as crawler gears for UI display. ''(Added in ETS2 [[Games/ETS2/Modding_guides/1.27.2#Transmission_Data|1.27.2]])''
|-
|shift_time
|float
|1.0
|The time, in seconds, it takes to shift gears in automatic shifting. ''(Added in 1.31)''
|}
 
{{UnitDef|def=<nowiki> "accessory_transmission_data":{
"superclass":"accessory_data",
"attrs":{
"name":{
"type": "string"
},
"short_name":{
"type": "string"
},
"icon":{
"type": "string"
},
"info":{
"type": "string_array"
},
"price":{
"type": "s64"
},
"unlock":{
"type": "uint"
},
"suitable_for":{
"type": "string_array"
},
"conflict_with":{
"type": "string_array"
},
"defaults":{
"type": "string_array"
},
"require":{
"type": "token_array"
},
"stall_torque_ratio":{
"type": "float"
},
"differential_ratio":{
"type": "float"
},
"retarder":{
"type": "uint"
},
"ratios_reverse":{
"type": "float_array"
},
"ratios_forward":{
"type": "float_array"
},
"transmission_names":{
"type": "owner_ptr"
}
}
},</nowiki>}}
499
edits

Navigation menu