Changes

Jump to navigation Jump to search

Documentation/Engine/Truck Interior Animations and IDs

4,575 bytes added, 14:54, 19 June 2020
Stick Animations
==Interior Animations==
For The movement of various things in the truck interior are used is controlled by program -driven animations ( '''*_anim''' ). For each animation can be , the range is set range by the '''*_anim_min''' and '''*_anim_max''' values. As most animations expect a range from 0 to 1, this these are also the default values. If an animation expect expects any other value range , it will be stated below.
===Special Animations===
|gadget_anim
|
|0&rarr;1 is a full animation cycle<br />(animation will be played as a continuous loop)|This animation is played in a loop while the truck's ignition/electricity is on.
|}
1 - maximum setting
|
|-
|engine_brake_stick_anim
|Engine brake control
|0 - off
1 - maximum setting
|''Added in 1.38''
|-
|auto_transmission_stick_anim
|
|
|-
|differential_lock_stick_anim
|Differential lock switch/control
|0 - disengaged<br />1 - engaged
|''Added in ETS2 1.27/ATS 1.6''
|}
 
===Gauge animations===
This set of animations handles analog gauges. The related '''*_min''' and '''*_max''' attributes set the values that the start and end of the animation correspond to. Where the simulated value exceeds the min/max attribute, the animation is clamped.
{{Note|All '''*_psi_*''' attributes have been renamed to '''*_pressure_*''' as of ETS2 1.27/ATS 1.6. This is to reflect the change to ''bar'' (atmospheres) as the working pressure unit instead of ''psi''.}}
{| class="wikitable"
!Attribute Name
!Notes
|-
|oil_psi_animoil_pressure_anim|Engine oil pressure in pounds per square inch (psibar)|0 - oil_psi_anim_minoil_pressure_anim_min1 - oil_psi_anim_maxoil_pressure_anim_max|403-6 bars (43.5-90 87 psi ) is typical working value
|-
|water_temp_anim
|-
|battery_anim
|Battery potential in volts(V)
|0 - battery_anim_min
1 - battery_anim_max
1 - oil_temp_anim_max
|working value 90°C
|-
|exhaust_temp_anim
|Exhaust gas temperature (°C)
|0 - exhaust_temp_anim_min
1 - exhaust_temp_anim_max
|working range cca to 650°C
|-
|diff_temp_anim
|1mph = 1.60934km/h
|-
|air_psi_animair_pressure_anim|Air brake reservoir pressure in psi (pounds per square inchbar)|0 - air_psi_anim_minair_pressure_anim_min1 - air_psi_anim_maxair_pressure_anim_max||-|brake_pressure_anim|Air brake application (bar)|0 - brake_pressure_anim_min1 - brake_pressure_anim_max|working value 140 psi
|-
|brake_psi_animgeneral_air_press_anim|Air brake applicationGeneral air supply (bar)|0 - general_air_press_anim_min1 - general_air_press_anim_max||-|trailer_air_press_anim|Trailer air supply (bar)|0 - trailer_air_press_anim_min1 - trailer_air_press_anim_max
|
|range is 0 to 1, maximum pressure value should be equivalent of 60-70 psi
|-
|suspension_load_anim
|Suspension load in (newtons)
|0 - suspension_load_anim_min
1 - suspension_load_anim_max
|clock_big_anim
|Analog clock, minute hand (0-60)
|0 - clock_big_anim_min (default 0)1 - clock_big_anim_max (default 60)
|
|-
|clock_small_anim
|Analog clock, hour hand (0-12)
|0 - clock_small_anim_min (default 0)1 - clock_small_anim_max (default 24)
|
|-
|generic_anim
|Animation for other gauges.
|0 when truck is turned off<br />1 when truck is turned on
|
|}
 
===Indicator animations===
These animations are not interpolated from 0 to 1 rather . Instead they have only 2 states: switched off (0) and switched on. So this (1), so these animations should have only 2 key frames. All indicator animations are triggered during the start-up electrical check, as well as for their particular functions.
* {| class="wikitable"!Attribute Name!Function!Behavior!Notes|-|button_left_blinker* button_right_blinker|Left turn signal indicator|rowspan="2"|Flashes on and off with left/right turn signal* |rowspan="2"|The related attribute '''blinker_delay - this ''' is not animation, but value describing length of the half blinking loop(in seconds)|-* |button_right_blinker|Right turn signal indicator|-|button_water_temp* |Water temperature warning light|On when engine temperature is excessive||-|indicator_oil_temp* |Engine oil temperature warning light|On when engine oil temperature is excessive||-|indicator_position_lights* |Position light indicator|On when positional/marker/parking lights are on||-|button_lights* |Headlight indicator|On when headlights are on||-|button_high_beam_lights* |Highbeam indicator|On when highbeam headlights are on||-|indicator_aux_lights_front* |Front auxiliary lights indicator|On when ''front'' auxiliary lights are on||-|indicator_aux_lights_roof* |Roof auxiliary lights indicator|On when ''roof'' auxiliary lights are on||-|indicator_aux_lights_any* button_low_air_psi|Auxiliary lights indicator|On when any auxiliary lights are on||-* button_low_oil_psi|indicator_low_air_pressure* |Low air pressure warning light|On when air pressure drops below cca 5 bars||-|indicator_low_oil_pressure|Low oil pressure warning light|On when engine oil pressure is low|This will also illuminate when the electrical is on and the engine is off|-|button_battery_warning* |Low battery voltage warning light|On when battery voltage is low||-|button_low_fuel* |Low fuel warning light|On when fuel level is low||-|indicator_low_adblue* |Low AdBlue/DEF warning light|On when AdBlue/DEF level is low||-|button_jakebrake* |Engine brake indicator light|On when engine brake (jake brake) is armed or active||-|button_parking_brake* |Parking brake indicator light|On when parking brake is applied||-|button_4way |Four- indicator way flasher status light|On when four-way flasher is on|Indicator should be placed on hazard warning button for blinking* button_abs|-* button_bbw|indicator_retarder* button_avi|Retarder status light* indicator_retarder|On when the retarder is active||-* |indicator_warning - damage |Damage warning indicator* |On when damage is 15% or more||-|indicator_stop - critical |Critical damage indicator* |On when damage is 50% or more||-|indicator_axle_lift - lifted |Lift axle indicator* |On when lift axle is up||-|indicator_cruise_control* |Cruise control status light|On when cruise control is engaged||-|indicator_generic - animation |Animation for other indicator. indicators|0 most of the time, 1 when truck is making electricity check (after turned on).||-|indicator_differential_lock|Differential lock status light|On when differential lock is engaged|''Added in ETS2 1.27/ATS 1.6''|-|indicator_trailer_axle_lift|Trailer lift axle status light|On when trailer axle(s) are raised.|''Added in ETS2 1.27/ATS 1.6''|-|indicator_weigh_green|(ATS) Weigh pass transponder green (bypass) light|On when the player may bypass an upcoming weigh station|''Added in ETS2 1.27/ATS 1.6''|-|indicator_weigh_red|(ATS) Weigh pass transponder red (no bypass) light|On when the player must enter an upcoming weigh station|''Added in ETS2 1.27/ATS 1.6''|}
==Dashboards IDs==
* 1020 - current speed
* 1030 - odometer, needs space for at least six digits
* 1040 - current gear, uses N, DA[number], R or R[number] for automatic and N, [number], R or R[number] for maualmanual or sequential* 1050 - current clock time in proper format, eg. "12:34 " (am/pm"is omitted)
* 1060 - remaining fuel in tank
* 1070 - ui::text for fuel bar, the text is cut left-to-right according to current fuel tank state* 1075 - ui::text that defines size, orientation and range of fuel bar(typical data "H~~0~~1", horizontal range 0 to 1)
* 1080 - guessed operating range of vehicle
* 1090 - water temperature
* 1100 - cruise control speed value
* 1110 - ui::text for oil pressure bar, the text is cut according to current oil pressure
* 1115 - ui::text that defines size, orientation and range of oil pressure bar (typical data "H~~0~~1168", horizontal range 0psi 0bar to 8bar (116psi (8bar))
* 1120 - ui::text for air pressure bar, the text is cut according to current air pressure
* 1125 - ui::text that defines size, orientation and range of air pressure bar (typical data "H~~0~~17412", horizontal range 0psi 0bar to 12bar (174psi (12bar))
* 1130 - ui::text for turbo pressure bar, the text is cut according to current oil pressure
* 1135 - ui::text that defines size, orientation and range of turbo pressure bar (typical data "H~~0~~1", horizontal range 0 to 1)
* 1140 - ui::text for adblue bar, the text is cut according to current adblue tank state
* 1145 - ui::text that defines size, orientation and range of adblue bar(typical data "H~~0~~1", horizontal range 0 to 1)
* 1150 - ui::text for water temperature bar, the text is cut according to current water temperature
* 1155 - ui::text that defines size, orientation and range of water temperature bar (typical data "H~~0~~130", horizontal range 0*C 0°C to 130*C130°C (32°F to 266°F))
* 1160 - instant consumption
* 1170 - average (trip) consumption
* 1220 - compass, displays strings like "N", "E", "SW".
* 1230 - engine brake icon
* 1240 - cruise control icon, can be ui::group or ui::text or any other element that could show/hide. Cruise control speed ( id 1100) explicitly CAN be child of this group.
* 1250 - cruise control memory icon, can be ui::group or ui::text or any other element that could show/hide.
* 1260 - low air pressure warning icon
* 1270 - parking brake indicator icon
* 1280 - engine running time
* 1290 - retarder icon
* 1300 - transmission gear (raw, without mode info)
* 1310 - transmission mode (without gear info, A/M)
* 1320 - battery voltage
* 1330 - battery voltage gauge, expected to be ui_gauge element type
* 1340 - oil temperature gauge, expected to be ui_gauge element type
* 1350 - ui::text for instant fuel economy bar, the text is cut according to current value
* 1355 - ui::text that defines size, orientation and range of instant fuel economy bar (typical data "H~~0~~5", horizontal range 0 to 5 km/l (11.8mpg))
* 1360 - ui::text for average fuel economy bar, the text is cut according to current value
* 1365 - ui::text that defines size, orientation and range of average fuel economy bar (typical data "H~~0~~5", horizontal range 0 to 5 km/l (11.8mpg))
* 1370 - air pressure value (psi only)
* 1380 - transmission mode, detailed (D/N/R/M)
Data for bars are entered in format "H~~0~~130", H means the bar is horizontal (or V for vertical), leftmost position represents value 0, rightmost position represents value 130. Empty text defaults to "H~~0~~1".
506
edits

Navigation menu