Games/ETS2/Modding guides/1.54

From SCS Modding Wiki
< Games‎ | ETS2/Modding guides
Revision as of 16:13, 17 March 2025 by 50keda (talk | contribs) (Game Data)

Jump to navigation Jump to search

Introduction

The following page contains modding guidelines for the new update of the game.

To better understand changes in units it is recommended to check Units documentation page.

Recommendations

  • When basing your model on the original ones, add to your mod also ALL original /automat/ files used by it. The names of the files are generated as CityHash64 hash of theirs content so whenever we change the parameters of the material in any way, a different file will be used to store them and the original file might cease to exist if there is no other model utilizing the original parameters.
  • When modifying original models, always include ALL components of the model (pmg+pmd) instead of just those you changed. Otherwise you risk crash if we change the model.
  • As always when adding new objects to files which support multi-file approach (e.g. road_look.sii) it is HIGHLY RECOMMENDED to use suffix or prefix in the name to avoid conflicts with new objects we are adding in patches. Otherwise you might have to use the batch renaming functionality (see Batch renaming) to fix the conflicts when new patch appears.

How to convert map

  • Load map
  • Do rebuild (F8)
  • Save map

Changes & New Features

Vehicle Data

Cargo system

New cargo system aims to decouple trailer and it's cargo model to generic assembly. Where trailers with specific loading methods will be able to automatically load any cargo that uses it. The system is designed to independently define trailer data from cargo data.

Trailer data

To support cargo loading trailer body accessory needs to be used, it's mandatory, since cargo system loads new attributes from it:

  • cargo_loading_methods[] - array of tokens representing supported cargo [loading methods|#Loading-Methods] by this body
  • cargo_regular_width - float representing at which width extension parts for the trailer are switched on
  • cargo_warning_signs - bool value indicatin whether body should have warning signs part switching supported or not
  • cargo_areas[] - array of area sizes (X,Z) that are used for any of area based loading method
  • cargo_areas_cylinder_data[] - array aligned with cargo areas, storing additional data for cylinder based loading (each item representing height, slope angle for given cargo area)
  • cargo_custom_loads[] - array of cargo_custom_load_data_u unit pointers storing custom load offset per cargo
  • cargo_lashing_mounts[] - array of cargo_lashing_mount_u unit pointers storing lashing mount definitions
  • cargo_lashing_strap - unit pointer to cargo_lashing_gear_u storing configuration of lashing gear used when strap gear method is sečected by the cargo model match
  • cargo_lashing_chain - unit pointer to cargo_lashing_gear_u storing configuration of lashing gear used when chain geat methods is selected by the cargo model maths.
Cargo Custom Load Data

TBA

Cargo model match data

TBA

Common structures

TBA