This tool can be used to create definition files for all trucks at once. It can also generate the tobj and mat file for your ui-icon.
Motivation
As a creator of interior accessories i found it quite annoying to copy paste all the definition files for each truck and just change one line each time. This tool does it all for you and will save you lots of time in the process.
Funktionality
It creates the .sii definition files for each truck. It also creates the needed folders for you, if they dont already exist. If the .sii file already exists it will just overwrite it.
How to use
- Preperation:
Download the tool here https://github.com/Sineptorro/DefCreator . To find the .exe you have to extract the DefCreatorV1.zip and scroll down a bit, in there you also find the files ModTrucksATS.txt and ModTrucksETS.txt with those files you can add the ModTrucks you want to support. I´ve already added 2ModTrucks to the ModTrucksETS.txt file, use this as a guidline since the program wont work if you mess those files up. Each unit name has to be in a seperate line, empty lines are not allowed. It can happen that windows antivirus doesnt like the .exe, in this case you can just go to the source folder and open DefCreator.py with python. When you start the program it will ask you the game and the mode the modes are explained in the following: - Accessory Mode:
In this mode you find multiple selections that you can do, they are mostly self explanatory. The file ending .pmd etc. doesnt matter since my program ignores it and puts .pmd at the end automatically. It also doesnt matter if you use the entire path for the models or just the relative path to the base folder. The advanced mode is needed when creating objects that have more complex definition files for example when they use animations. To generate the .mat and .tobj file you should already have the corresponding .tga file in the materials/ui/accessory folder. in both pictures, the generated file will be named pillow_ilg_01.sii and look like thisit also generates the following pillow_ilg_01.mat and the pillow_ilg_01.tobj files which look like this:Code: Select all
SiiNunit { accessory_addon_data : pillow_ilg01.daf.xf.l_pillow { name: "@@pillow_ilg_01@@" price: 10 unlock: 0 icon: "pillow_ilg_01" part_type: aftermarket interior_model: "/vehicle/truck/upgrade/interior_decors/toybed/pillow_ilg_01.pmd" interior_model_uk: "/vehicle/truck/upgrade/interior_decors/toybed/pillow_ilg_01_uk.pmd" } }
andCode: Select all
map 2d pillow_ilg_01.tga addr clamp_to_edge clamp_to_edge usage ui
in the materials/ui/accessory folder.Code: Select all
material : "ui" { texture : "pillow_ilg_01.tobj" texture_name : "texture" }
- Other Mode:
This mode is more general and can be used when creating stuff that isnt an accessory but can also be used for accessories, however you wont be able to generate the .mat and .tobj file for the icon. You have to copy the text from your normal .sii file into content and need to replace the unit name for the truck with VEHICLE_UNIT_NAME. The following would give you the same result as above.