Changes

Jump to navigation Jump to search

Games/ETS2/Modding guides/1.38

2,003 bytes added, 09:43, 28 June 2020
Traffic
New animation '''engine_brake_stick_anim'''.
== Traffic =Vehicle types ===There has been an extensive cleanup and renaming among traffic vehicle types to bring more consistency into the type separation logic and consistency. Most of the type names are based on their real-world counterparts. They are further subdivided to allow correct application of traffic rules and/or some special behavior for all vehicles. There is more info in ''/def/vehicle/traffic_vehicle_types.sii''. Note together with type names, also traffic vehicle storages were renamed accordingly (''/def/vehicle/traffic_storage*.sii''). Please check if vehicle definitions added by mods are in correct storage(s) === Trailer types ===Together with vehicle types, also several trailer types were renamed. Their names are based on the vehicle types they are used by. There is more info in ''/def/vehicle/traffic_trailer_types.sii''. Note together with type names, also traffic trailer storages were renamed accordingly (''/def/vehicle/traffic_storage_trailer*.sii''). Please check if trailer definitions added by mods are in correct storage(s) === Referencing multiple vehicle/trailer definitions ===A new attribute '''tags''' (array of tokens) has been added to both vehicle and trailer data definitions. Tags serve as 'filters' which allow referencing multiple vehicle/trailer definitions without the need to name each unit name explicitly. The way of referencing has been unified across the traffic definitions. Now, each reference can be:* '''explicit unit name:''' "traffic.vehicle.unit.name"* '''combination of vehicle/trailer type together with 1-3 inclusion/exclusion tags:''' "vehicle_type tag1_include1 !tag2_exclude tag3_include" The unified system can now be used for:* traffic vehicle definitions (''trailer_chains[]'')* parked vehicle hookup definitions (''allowed_vehicle[]'' and ''allowed_trailer[]'')* parked trailer hookup definitions (''allowed_trailer[]'')* spawn density rules NOTE: this change made parked vehicle hookup attribute ''allowed_vehicle_type[]'' obsolete.

Navigation menu