Changes

Jump to navigation Jump to search

Games/ETS2/Modding guides/1.38

1,814 bytes added, 12:22, 19 July 2020
Accessory horn addon data
== Game data ==
* many Many '''SII ''' files (units) that should be have been renamed to '''SUI files (includes) renamed, TBD''' and vice versa. Why?
=== License plate By definition, '''SII''' files are the ones containing game units and are starting by <code>SiiNUnit</code> mark, while '''SUI''' files are included or shared part of some other unit and are not starting by any mark. This was generally true for a long time but game itself did not enforced it technically. Game data ===could include any file. Thus your mods might or might not work based on other conditions (namely file links in other files) now.
* We unified the naming to this strict format to be better able to automatically test all game data and thus speed up development. We also encourage to change all modded data in same way to prevent errors. == License plate data == There was changed generation rulesof LP slightly. Country-based LP are working exactly same as before: if vehicle type is matched that data set is used, TBD* otherwise first dataset is used (regular car typically). City-driven based LPs has been working similarly except there was hardcoded pobability (33%) of using country-based LP instead. Right now city -based LP generation always checks both country and city data for defined vehicle types. If vehicle type is matched data sets are used, but if both country and city type definition exists the decision is based on '''probabilty''' field on city data. As default value is 0.67, it works similarly as before. Main difference is that if you do not define city LP for some vehicle type, first fallback is to country LP for that vehicle type and only the secondary fallabck is the first vehicle type in city LP list. Also you can enforce local LP if desired by setting '''probability''' to 1.0 in city-based LP definitions. As example, this behavior is used in Idaho DLC for emergency vehicles (medical, TBDfire and police).
== Vehicle data ==
=== Accessory horn addon data ===
accessory_horn_addon_data, like There is new unit type '''accessory_horn_addon'''. Its same as '''accessory_addon ''' but with in addition it contains attribute '''sound_path''' that could link soundref file or sound link, TBDbank event directly. It is used for new horn accessories on ETS2 trucks.
== Traffic ==
510
edits

Navigation menu