Changes

Jump to navigation Jump to search

Games/ETS2/Modding guides/1.32

185 bytes added, 11:37, 28 August 2018
Trailer def
=== Trailer def ===
Structure '''trailer_def''' was greatly improved and redesigned as its core of the economy. Old system with list of trailers for given cargo is used for rest of remaining old trailers only (using cargo folder placement with filled '''trailer''' link and fake underscored trailer '''body_type'''s). Additionally trailer defs using new owned trailer system are now placed in '''/def/vehicle/trailer_defs''' folder. Old system trailer defs, however, remain in it's original place.
New fields support system that matches cargoes to trailer only through trailer body types with additional information. Most important are:
 
* [float] '''gross_trailer_weight_limit''' - technical or logical limit of trailer(s) + cargo mass, also limited by bridge formula or similar rules.
* [token] '''body_type''' - defines cargo that can be loaded in, should equal to body_type of bodies of all trailers in set
* [float] '''length''' - length of whole trailer set in meters
* [token] '''chain_type''' - type of trailer chain (single, double, b_double, ...)
 
In addition, there are also cog placement parameters - unlike older mechanics right now its plain cargo cog offset in meters (before height was halved due to historical reasons).

Navigation menu