Zack Esseth Posted February 27, 2021 Posted February 27, 2021 Hello skinners. So I'm relatively new to skinning and to how the lua file works for skins. I have a base skin that I have made but am going to be making unique main 1 parts for each pilot within a squadron and was curious if it is possible to program the description file in a manner where it will pull the other parts of the skin from the base folder and use the unique portion from the unique folder? This is of course to save storage space and not require tons of redundant files.
prccowboy Posted February 27, 2021 Posted February 27, 2021 (edited) yes, just keep all the common shared files in a specific folder and refer to it in the lua while adding the back directory characters in the reference, ex: (this is a example for an A-10CII livery where only the A-10C_1-a texture is unique to each pilot) folders in the liveries\A-10CII directory: BASE PILOT_1 PILOT_2 In the BASE folder put your shared textures (for my squadron, I use a full generic skin here - not pilot specific) In the PILOT_1 and PILOT_2 folders you would put your unique textures (in this example the "A-10C_1-a" texture) and then for each of the description lua's for each pilot's skin you would refer to the textures in the BASE directory for anything shared (in this example the "A-10C_1-b" texture, like this: {"A-10C_PAINT_1-a", 0 , "A-10C_1-a",false}; {"A-10C_PAINT_1-b", 0 , "../BASE/A-10C_1-b",false}; the 2 dots in "../BASE/" backs up one directory then references the BASE folder to find the shared texture you can probably find examples of this in the user files where there is a large pack with shared textures edit: sorry, just noticed this was in the F-16 section - probably should have used an F-16 example, but I think you get the idea Edited February 27, 2021 by prccowboy
Zack Esseth Posted February 27, 2021 Author Posted February 27, 2021 Nice! That ended up working perfectly. Now I just need to figure out why my bort numbers are applying dark patches to the plane.
Recommended Posts