Changes

Jump to navigation Jump to search

Games/ETS2/Modding guides/1.54

1,758 bytes added, 19 March
Cargo system
For '''''top_over''''' lashing cargo model requires lashing rail locators with naming: <code>lash_s_Z_X</code> and <code>lash_e_Z_X</code> where <code>Z</code> donates index of multiple rails along model forward axis and <code>X</code> donates index of multiple rails along model X axis. Multiple rails are usually used when there is some obstruction in the model and you need manual dividing into multiple railing (e.g. some separation elements). In all other cases one should use single Z rail indexing since the game will place multiple lashings on the distance of 1.25m from each other. X indexing should be done from left to the right (from -X to +X in model space)
 
=== Traffic trailer data ===
As for the traffic vehicles, they got reworked too. Similarly as player vehicles, they now need linked '''trailer_def_u''' and list of the cargoes they support via new attribute '''cargoes[]''' which is an array of cargo name tokens. So if you want to create new traffic trailer one would need to:
# link permanent trailer definition from <code>/def/vehicle/trailer_defs/</code>
# add body accessory to it
# supply array of supported cargoes.
 
Example of traffic trailer definition:
<pre>
traffic_trailer : traffic.trailer.scs_brick_r
{
trailer_definition: trailer_def.scs.flatbed.single_3.brick
accessories[]: .scs_brick_r.chassis
accessories[]: .scs_brick_r.rwheel
accessories[]: .scs_brick_r.rwheel2
accessories[]: .scs_brick_r.rwheel3
accessories[]: .scs_brick_r.body
accessories[]: .scs_brick_r.paint_job
 
cargo_mass: 20000
 
tags[]: low
tags[]: flatbed
tags[]: brick
tags[]: medium
tags[]: cargo
tags[]: construct
 
cargoes[]: fertilizer
cargoes[]: bricks
cargoes[]: outdr_flr_tl
cargoes[]: plant_substr
}
 
vehicle_accessory: .scs_brick_r.chassis
{
data_path: "/def/vehicle/trailer/scs_brick/red.sii"
}
 
vehicle_wheel_accessory: .scs_brick_r.rwheel
{
offset: 0
data_path: "/def/vehicle/t_wheel/single_385_55_steel.sii"
}
 
vehicle_wheel_accessory: .scs_brick_r.rwheel2
{
offset: 2
data_path: "/def/vehicle/t_wheel/single_385_55_steel.sii"
}
 
vehicle_wheel_accessory: .scs_brick_r.rwheel3
{
offset: 4
data_path: "/def/vehicle/t_wheel/single_385_55_steel.sii"
}
vehicle_accessory: .scs_brick_r.body
{
data_path: "/def/vehicle/trailer/scs_brick/accessory/body.sii"
}
vehicle_paint_job_accessory: .scs_brick_r.paint_job
{
data_path: "/def/vehicle/trailer/scs_brick/custom_paint_job/red.sii"
}
</pre>

Navigation menu