Changes

Jump to navigation Jump to search

Games/ETS2/Modding guides/1.32

134 bytes added, 15:10, 10 August 2018
no edit summary
=== Cargo data ===
Attributes '''price_coef''', '''mass''' (array, per trailer from list) and '''cog_height_offset''' (array, per trailer) was removed. Attribute array '''trailers''' remain only for compatibility reasons of some cargoes.
 
Instead of explicit trailer list, trailers are linked through '''body_types''' (array or tokens). Mass and price are now defined by system of units. Unit of cargo has '''mass''' (float), '''volume''' (float) and '''unit_reward_per_km''' (float), '''unit_load_time''' (float). Mass and volume limits how many units of cargo could be loaded on given trailer, rest is loading time and reward. Attribute '''overweight''' (bool) uses cargo as is and ignores any trailer or country limitations.
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 old trailers only (using cargo folder placement with filled '''trailer''' link and fake underscored trailer '''body_type'''s).
New fields support system that matches cargoes to trailer only through trailer body types with additional information. Most important are '''gross_trailer_weight_limit'''(float, technical or logical limit of trailer+cargo mass), '''body_type''' (token) and '''country_validity'''(token array). Then there are cached/precomputed '''trailer_mass'''(float), '''body_mass'''(float), '''volume'''(float), '''axles'''(int), '''length''' (float) and '''chain_type''' (token) for fast access without necessity of loading all accessories as well as data for trailers that do not have all accessories well defined (eg freight market ones). In aditionaddition, there are also cog placement parameters - unlike older mechanics right now its plain cargo cog offset in meters (before height was height in halfs halved due to historical reasons).
=== Body types ===
510
edits

Navigation menu