Changes

Jump to navigation Jump to search

Games/ETS2/Modding guides/1.39

2 bytes added, 22:43, 9 October 2020
Accessories
All core vehicle accessories have new attribute '''sounds'''. It is string array and each item has format of "''sound_name|sound_path''". Sound path could be defined by one of three ways:
* Empty string or "-" means no sound is played. Also if the item is missing at all no sample will be plaed played for given sound.* Path to sound reference file ("''*.soundref''") file where sound event is written. This indirection supports easier modding if you only need link another sound wihtout without actually touching sound banks.
* Path to event in bank ("''bank_path#event_name''") which directly specifies event sample. Advantage of this direct approach is simplicity and readability.
Most of the sounds events are former attributes of old sound accessory. For detailed info about all sounds and their names in each accessory see their lists below.
In our data, the basic mechanism is that accessories of given type share "''sound.sui''" file that contains mentioned '''sounds''' array. In array are links to shared soudrefs soundrefs or to unique soundrefs, and in them are names of specific banks and events. This can be modded by many ways and on many levels. First, you can directly change the accessory itself (eg make own sound set). Or you can change content of shared "''sound.sui''" (without touching the accessory itself which will make mod more compatible with future updates). Or you can mod a single sound just by modifying its soundref (both shared or unique sounds). Or you can change sample in bank.
== Vehicle Data ==
510
edits

Navigation menu