Changes

Jump to navigation Jump to search

Games/ETS2/Modding guides/1.28

222 bytes added, 07:48, 27 April 2018
Changes
= Changes =
== Economy Data data ==Multi pivot trailers got separated experience bonuses attributes: '''exp_park_double_bonus''', '''exp_park_double_bonus_medium''' and '''exp_park_double_bonus_hard'''. Hard parking is by default disabled and can be enabled in game by using command "'''''g_simple_parking_double g_simple_parking_doubles 0'''''".
== Physics Data data ==
Physics data definition ('''"/def/vehicle/physics.sii"''') got newly specified roll and pitch for trailer and spreader joints: '''trailer_joint_pitch''', '''trailer_joint_roll''', '''spreader_joint_pitch''' and '''spreader_joint_roll'''.
== Prefab Data data ==
Prefab model unit '''prefab_model''' (found in '''"/def/world/prefab.<infix>.sii"''') got new attribute '''allowed_trailer_length''' defining maximum length of trailer or trailer chain that can be spawned or delivered to the company prefab (value has to be integer in range [0, 255] and presents length in meters). When not specified or set to 0 then no restriction is applied.
{{Note|After changing these values map has to be re-saved to propagate values to company instances correctly.}} == Flares Data data ==Flare unit (usually found as hookup defined models inside '''/unit/hookup''' directory) got new float attribute '''scale_factordefault_scale''' for initial scale of the flare model.
Additionally behaviour of flare with direction type ('''dir_type: narrow''') was modified:
# The size, attenuation and disappearing curve of the flare is now also modulated by sunlight. So during the day this type of flare will be less visible then during the night.
== Vehicles data == === Truck Data data ===
==== Transmission Data data ====
Transmission accessory data unit (found in '''"/def/vehicle/truck/<brand.model>/transmission/<transmission_name>.sii"'''') got new array attribute: '''auxiliary_brakes''' for usage of auxiliary brakes by one switch. Each array item holds three float values: (retarder ratio, engine brake ratio, engine brake downshift).
==== Exterior Camera Data camera data ====
Vehicle exterior camera '''vehicle_behind_rotation_camera''' got new attribute '''height_limit''' restricting camera to not raise above specified value in meters.
=== Trailer Data data ===
==== Cargo Trailer Data trailer data ====
Trailer cargo definition files ('''"/def/cargo/<cargo_name>/<trailer.cargo>.sii"''') got new attributes:
* '''cargo_mass_ratio''' - array of floats defining cargo mass distribution through the trailer chain,
* '''length''' - integer in range [0, 255] specifying length of trailer or trailer chain. It's used in combination with [[#Prefab Data|'''allowed_trailer_length''']] from prefab model definition to prevent this trailer to be spawned and delivered to prefabs where it would be to long. If length is set to zero then no restrictions will be applied.
==== Chassis Data data ====
Accessory chassis data unit (for trailers found in '''"/def/vehicle/trailer/<trailer_name>/<chassis_trailer>.sii"''') got new attributes:
* '''weight_distribution''' - enumeration defining connection type and weight distribution for the chassis of the trailer. Possible values are: '''truck''', '''semitrailer'''(default), '''trailer''', '''spreader'''.

Navigation menu