Changes

Jump to navigation Jump to search

Games/ETS2/Modding guides/1.35

2,173 bytes added, 16:35, 14 May 2019
Modded trucks support
TBA
== Modded trucks support dealer UI==
For a brand/Allows all the modded truck brands to be available on one specific UI screen. You have access to show up correctly this feature after you activate a mod in the Mod Truck Dealer screen, the following conditions must be met:* The Manager that contains a defined truck's data is located in '''/def/vehicle/truck/<brand>.<model>/'''.* The truck's unit name in its '''data.sii''' When a mod like this is correctly formatted as '''vehicle.<brand>.<model>'''.* The detected, a button on the truck's dealer definition is located in '''/def/vehicle/truck_dealer/<brand>/'''.* The '''<brand>''' token must match for all of theseworld map that will direct you to the this screen.
The To add a new brand on you mod simply create a directory with the name of your brand in '''/def/vehicle/truck_dealer'''. In this directory you will put your stock truck offer .sii files. For example, for a brand named '''X Brand''', create a directory named "'''xbrand'''" on the mentioned path. Now this directory needs to be populated with valid truck offers, .sii files that contain a vehicle and its accessories. Those accessories and vehicle configurations definitions are stored in a directory in the path '''/def/vehicle/truck'''. For more information on this folder's structure and contents, see the dedicated page: [[Documentation/Engine/Game_data/Player_trucks_definitions|Player trucks definitions]]. It is important to mention if you are creating a new truck definition, the unit [[Documentation/Engine/Units/accessory_truck_data|accessory_truck_data]] should be named using the following convention <code>vehicle.<brand>.<series></code>. So using the example above, if the '''X Brand''''s icon offers use a new truck definition, the name of the accessory_truck_data in the <code>data.sii</code> should look like this:<code>accessory_truck_data : vehicle.xbrand.t_9000</code> {{Note|At the moment, the UK only truck brands defined in '''/def/vehicle/truck_dealer_uk''' are not supported by this feature.}} Additionally, you can add a brand logo to your own brand dealer will be on the '''/material/ui/truck_brand_logo''' directory. To achieve this, create a .mat, a .tobj and a .tga logo files with the name of your new brand (aka "'''xbrand'''" here). Using the provided [[Documentation/Tools/<Conversion_Tools#Download_.26_Installation|conversion tools]] convert these files and add the resulting conversions to the aforementioned directory. The logo size has to be '''128x64'''. If no brand logo is set, in its place there will be an empty material image. Finally, you can still add modded trucks to the in-game dealers using the same procedure of creating a directory with that said in-game's brand>name in the '''/def/vehicle/truck_dealer''' path and populating it with new offers.matSo if a modder wanted to add new offers to DAF for example, they would have to create a directory named "'''daf'''" in the truck_dealer path of their mod and add their truck offers there. All modded content to the in-game brands will be available in both the modding and the actual brand dealers.
== COG data in '''accessory_chassis_data''' ==
Bureaucrats, developer
2
edits

Navigation menu