Changes

Jump to navigation Jump to search

Games/ETS2/Modding guides/1.25

2,177 bytes added, 07:41, 27 April 2018
Truck data
== Game data ==
All map depended dependent data was moved from '''game_data.sii''' to '''map_data.sii'''. Check '''map_data.sii''' for list of obsolete attributes. == Vehicles data == === Steering wheel adjustment animations === Truck interior '''animations(_uk).sui''' got two new animations for steering wheel adjustment. One animation defines up/down movement and second defines steering wheel extend. Moreover default attributes tell rest position of the steering wheel. Example definition in '''/def/vehicle/truck/<your_truck_name>/interior/animations.sui''':  wheel_updown_anim: "/vehicle/truck/<your_truck_name>/interior/<rotation_animation.pma>" wheel_frontback_anim: "/vehicle/truck/<your_truck_name>/interior/<extension_animation.pma>" wheel_updown_anim_default: 0.3 wheel_frontback_anim_default: 0.5 === Dashboard backlight behavior === Truck interior now contains attribute named '''backlight_with_lights'''. It defines if dashboard is lit with electricity (ignition) on or lights on. Default value is '''true''', so the dashboard is lit when lights are on. === Interior camera lookup presets === Truck interior camera now contains array named '''look_presets_defaults'''. Its 6 element array that defines camera angle (in degrees) on horizontal plane. Default values are:  look_presets_defaults[]: 0 // forward look_presets_defaults[]: -40 // forward-right look_presets_defaults[]: 20 // forward-left look_presets_defaults[]: -70 // right look_presets_defaults[]: 70 // left look_presets_defaults[]: -20 // windscreen center === Steering wheel accessory === Truck interior got new accessory named '''steering_w''', which defines steering wheel as rigid model separated from interior animations model. Models should be placed in the upgrade folder: '''vehicle/truck/upgrade/steering_w/<your_truck_name>''' and accessory definition file has to be in: '''def/vehicle/truck/<your_truck_name>/accessory/steering_w'''. Example steering wheel accessory definition file: SiiNunit { accessory_addon_data : exclusive.<your_truck_brand>.<your_truck_name>.steering_w { name: "Exclusive Steering Wheel" price: 360 unlock: 10 icon: "<your_truck_name>/steering_w_excl" interior_model: "/vehicle/truck/upgrade/steering_w/<your_truck_name>/exclusive.pmd" } }
== Trailer data ==
=== Spawn frequency ===
The per-country spawn frequency definition has been improved and simplified. the The '''old file-based (def/country/(country_name)/ai system is now obsolete'''. Instead of creating a new file for each vehicle definition, put all your customized spawn frequencies into a single file '''/def/country/(country_name)/traffic.(mod_name).sii'''.
For example:

Navigation menu