Changes

Jump to navigation Jump to search

Games/ETS2/Modding guides/1.35

4 bytes added, 08:16, 22 May 2019
Vehicles data
== Vehicles data ==
=== Modded trucks dealer UI Cabin suspension ===
Allows all the modded truck brands to be available on one specific UI screen. You have access to this feature after you activate a mod 4 point simulation (locator, obsolete/new values in the Mod Manager that contains a defined truck brand. When a mod like this is detected, a button on the truck dealer world map that will direct you to the this screenphysics.sii)TBA
To add a new brand on you mod simply create a directory with the name of your brand in '''/def/vehicle/truck_dealer'''. In this directory you will put your stock truck offer .sii files. For example, for a brand named '''X Brand''', create a directory named "'''xbrand'''" on the mentioned path. Now this directory needs to be populated with valid truck offers, .sii files that contain a vehicle and its accessories. Those accessories and vehicle configurations definitions are stored in a directory in the path '''/def/vehicle/truck'''. For more information on this folder's structure and contents, see the dedicated page: [[Documentation/Engine/Game_data/Player_trucks_definitions|Player trucks definitions]].=== Cargo model randomized ===
It is important to mention if you If there are creating a new truck definition, the unit [[Documentation/Engine/Units/accessory_truck_data|accessory_truck_data]] should be named using the following convention <code>vehicle.<brand>.<series></code>. So using the example above, if the 'stated more than one model of cargo visualization (see ''X Brand'data_path'''s offers use a new truck definition, the name of the accessory_truck_data in the <code>data.sii</code> should look like this:<code>accessory_truck_data : vehicle.xbrand.t_9000</code> {{Note|At the moment, the UK only truck brands defined array in '''/def/vehicle/truck_dealer_ukcargo_model_match''' are not supported by this feature.}} Additionallyunit, you can add a brand logo to your own brand dealer on the stored in '''def/materialcargo/ui*/truck_brand_logo''' directory. To achieve this, create a .mat, a .tobj and a .tga logo files with the name folders of your new brand (aka "'''xbrand'''" herecargoes for owned trailers). Using the provided [[Documentation/Tools/Conversion_Tools#Download_.26_Installation|conversion tools]] convert these files and add the resulting conversions to the aforementioned directory. The logo size has to be '''128x64'''. If no brand logo is set, in its place there will be an empty material image. Finally, you can still add modded trucks to the in-game dealers using the same procedure of creating a directory with that said in-game's brand name in the '''/def/vehicle/truck_dealer''' path and populating it with new offers. So if a modder wanted to add new offers to DAF for examplegiven trailer, they would have to create a directory named "'''daf'''" in the truck_dealer path of their mod and add their truck offers there. All modded content to the inone used is chosen pseudo-game brands will be available in both the modding and the actual brand dealersrandomly from them.
=== COG data in chassis accessory ===
In addition, default COG is now in center of model based on some trailer geometry analysis regardless of trailer model scene origin. So the longitudinal offset used as workaround should be discarded.
=== Cabin suspension Dealer UI for modded trucks === Allows all the modded truck brands to be available on one specific UI screen. You have access to this feature after you activate a mod in the Mod Manager that contains a defined truck brand. When a mod like this is detected, a button on the truck dealer world map that will direct you to the this screen. To add a new brand on you mod simply create a directory with the name of your brand in '''/def/vehicle/truck_dealer'''. In this directory you will put your stock truck offer .sii files. For example, for a brand named '''X Brand''', create a directory named "'''xbrand'''" on the mentioned path. Now this directory needs to be populated with valid truck offers, .sii files that contain a vehicle and its accessories. Those accessories and vehicle configurations definitions are stored in a directory in the path '''/def/vehicle/truck'''. For more information on this folder's structure and contents, see the dedicated page: [[Documentation/Engine/Game_data/Player_trucks_definitions|Player trucks definitions]].
4 point simulation (locatorIt is important to mention if you are creating a new truck definition, obsoletethe unit [[Documentation/Engine/Units/accessory_truck_data|accessory_truck_data]] should be named using the following convention <code>vehicle.<brand>.<series></code>. So using the example above, if the '''X Brand''''s offers use a new values truck definition, the name of the accessory_truck_data in physicsthe <code>data.sii)</code> should look like this:TBA<code>accessory_truck_data : vehicle.xbrand.t_9000</code>
=== Wipers duration & delay format ==={{Note|At the moment, the UK only truck brands defined in '''/def/vehicle/truck_dealer_uk''' are not supported by this feature.}}
In unit [[DocumentationAdditionally, you can add a brand logo to your own brand dealer on the '''/Enginematerial/Unitsui/accessory interior data|truck_brand_logo'''accessory_interior_datadirectory. To achieve this, create a .mat, a .tobj and a .tga logo files with the name of your new brand (aka "''']] attribute xbrand'''wiper_delay''' has been removed" here). Using the provided [[Documentation/Tools/Conversion_Tools#Download_. Instead, 26_Installation|conversion tools]] convert these files and add the resulting conversions to the new attribute aforementioned directory. The logo size has to be '''wiper_duration_and_delay128x64''' (array of float2) has been added. Each element contains animation length (If no brand logo is set, in seconds) and time delay between animation loops (in seconds) of one active stateits place there will be an empty material image.
If no Finally, you can still add modded trucks to the in-game dealers using the same procedure of creating a directory with that said in-game's brand name in the '''wiper_duration_and_delay/def/vehicle/truck_dealer''' is correctly stated path and populating it is defaulted with new offers. So if a modder wanted to single element float2(2.0add new offers to DAF for example, 0they would have to create a directory named "'''daf'''" in the truck_dealer path of their mod and add their truck offers there.0), which serves as single active state All modded content to the in-game brands will be available in such caseboth the modding and the actual brand dealers.
=== Trailer braces sound ===
Default value is now set empty. So there is sound only if data explicitly state it.
=== Cargo model randomized Transmission mode names === Unit '''accessory_transmission_data''' has two new string attributes - '''auto_mode_name''' (default "A") and '''manual_mode_name''' (default "M"). Their value is used in dashboard computer display as transmission mode element (id 1310) if truck display contains one.
If there are stated more than one model of cargo visualization (see '''data_path''' array in '''cargo_model_match''' unit, stored in '''def/cargo/*/''' folders of cargoes for owned trailers) for given trailer, the one used is chosen pseudo-randomly from them.=== Wipers duration & delay format ===
=== Transmission mode names ===In unit [[Documentation/Engine/Units/accessory interior data|'''accessory_interior_data''']] attribute '''wiper_delay''' has been removed. Instead, the new attribute '''wiper_duration_and_delay''' (array of float2) has been added. Each element contains animation length (in seconds) and time delay between animation loops (in seconds) of one active state.
Unit If no '''accessory_transmission_datawiper_duration_and_delay''' has two new string attributes - '''auto_mode_name''' (default "A") and '''manual_mode_name''' (default "M"). Their value is used in dashboard computer display as transmission mode correctly stated it is defaulted to single element float2(id 13102.0, 0.0) if truck display contains one, which serves as single active state in such case.

Navigation menu