Changes

Jump to navigation Jump to search

Games/ETS2/Modding guides/1.32

1,175 bytes added, 12:51, 28 August 2018
Trailer data
# '''trailer_defs''' - all configurations of possible trailer combinations in the new system (see [[#Cargo generator]]).
# '''trailer_owned''' - ownable trailers data defining configuration, body, paintjob and accessories (similarly as trucks), sorted in <brand.model> sub-folders.
 
==== Trailer dealer data ====
 
Trailer dealer offer is defined by exactly same way as truck dealer offer.
 
In folder '''/def/vehicle/trailer_dealer/''' are folders for every trailer brand and in them are complete definitions of different pre-configured offers that player can select from in-game.
==== Accessory trailer data ====
* [token] '''look''' - The look of the model to use.
==== Trailer dealer data Ownable trailer configurations ==== Each ownable trailer needs it's own configurations which player can select from in the trailer configurator. This configurations are defined in '''/def/vehicle/trailer_owned/<brand.model>/configurations'''. Each trailer configuration of type '''trailer_configuration''' has following attributes:* [string] '''name''' - Displayable name 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'' - Array of compatible body sets with this configuration. Note that compatible body sets are also gathered from sub-folder named same as base configuration file name (name of the file to first dot). 
Trailer dealer offer is defined by exactly same way as truck dealer offer.===== Body set data =====
In folder '''/def/vehicle/trailer_dealer/''' are folders for every Each ownable trailer brand and in them are complete definitions of different pre-configured offers that player can select from in-gameconfiguration requires body sets to work properly.

Navigation menu