Changes

Jump to navigation Jump to search

Games/ETS2/Modding guides/1.32

775 bytes added, 13:55, 28 August 2018
Ownable trailer configurations
Each trailer configuration of type '''trailer_configuration''' has following attributes:
* [string] '''name''' - Displayable name for this configuration in trailer configurator.
* [string] '''icon''' - Displayed icon for this configuration in trailer configurator.
* [token] '''chain_type''' - Type of the chain this configuration is using (one of chain types defined in '''/def/vehicle/trailer_chain_types/'''.
* [string] '''icon''' - Displayed icon for this configuration in trailer configurator.
* [string array] '''chassis''' - All chassis definitions for this configuration, first chassis for first trailer in chain, second chassis for second trailer in chain etc.
* [trailer_body_set array] '''body_sets''' - Owner pointer array of compatible '''trailer_body_set'''s with this configuration. Except manually linked body sets in configuration file they are also gathered from sub-folder named same as base configuration file name (name of the file to first dot, so configuration "''single3.sii''" or "''single3.mymod.sii''" should have body sets in folder "''/def/vehicle/trailer_owned/<brand.model>/configurations/single3''").
 
===== Trailer body set =====
 
Trailer body set defines set of bodies that can be used on individual trailer configuration. Each body set is then selectable by player in trailer configurator.
 
Each trailer body set contains:
* [string] '''name''' - Displayable name for this configuration in trailer configurator.
* [string] '''icon''' - Displayed icon for this configuration in trailer configurator.
* [trailer_def pointer] '''trailer_definition''' - Pointer to trailer definition to be used for this trailer body set, trough which game knows what kind of cargo can be used with this trailer configuration and body set.
* [string array] '''body''' - All body definitions for this body set, first body for first trailer in chain, second body for second trailer in chain etc.

Navigation menu