Changes

Jump to navigation Jump to search

Games/ETS2/Modding guides/1.32

340 bytes added, 13:32, 11 August 2018
Cargo generator
Main changes:
* More importantly cargo Cargo is now being defined by units instead of simple weight. One unit of cargo takes some volume, which gives count of unit that might fit into trailer body. From this unit count mass and reward are also derived. Mass is subject for further limitation either by trailer itself or country laws. Both might result in decreasing of cargo unit count loaded.* Another new concept are body types, new trailers and cargo are not linked directly but rather they are being matched with the compatible cargo by body types. Trailer that has body type '''flatbed''' will have only generated jobs that consists of cargo that is compatible with '''flatbed''' body.
=== Cargo data ===
Attributes '''price_coef'''(float), '''mass''' (float array, per trailer from list) and '''cog_height_offset''' (float 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 New attributes:* [token array] '''body_types''' (array or tokens). Mass and price are now defined by system - List of unitstrailer bodies cargo can be loaded in. Unit of cargo has * [float] '''massvolume''' - volume of single one unit, in cubic meters (m3)* [float), ] '''volumemass''' - mass of one cargo unit, in kilograms (kg)* [float) and ] '''unit_reward_per_km''' (- reward for transport of one cargo unit per 1km of distance* [float), ] '''unit_load_time''' (float). Mass and volume limits how many units - loading time of one cargo could be loaded on given trailerunit, rest is loading time and reward. Attribute in second* [bool] '''overweight''' (bool) uses - cargo with this flag is used as is (single unit) and ignores any trailer or country limitations.
=== Trailer def ===
510
edits

Navigation menu