Changes

Jump to navigation Jump to search

Games/ETS2/Modding guides/1.32

22 bytes added, 13:13, 11 August 2018
Trailer def
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 technical or logical limit of trailer(s) +cargo mass, also limited by bridge formula or similar rules.* [token] '''body_type''' - Defines defines cargo that can be loaded in , should equal to body_type of bodies of all trailer trailers in set.* [token array] '''country_validity''' - List list of countries the trailer is allowed in. Empty , empty list impose no limitation.
Then there are cached/precomputed values for fast access without necessity of loading all accessories (instead of summing all chassis and body weights in chain) as well as data for trailers that do not have all accessories defined (eg freight market ones):
* [float] '''trailer_mass''' [float] - summed mass of all trailer chassis parts* [float] '''body_mass''' [float] - summed mass of all trailer bodies parts* [float] '''volume''' [float] - summed volume of all trailer bodies parts* [int] '''axles''' [int] - counted axles of all trailersin set* [float] '''length''' [float] - length of whole trailer setin meters* [token] '''chain_type''' [token] - 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).
510
edits

Navigation menu