0 = Diffuse Layer
2 = Specular Layer
I have a list somewhere, there's classes for diffuse, specular, normal, damage, night lighting and stuff.
So, to break it down:
{"A-10C_PAINT_1-c", 0 ,"A-10C_107_1-c",false}; = {"3DS MAX MATERIALNAME", MaterialChannelNumber, "BitmapName", true/false}
3DS MAX MATERIALNAME = The name given to the Material in Max
Material Channel Number = 0-Diffuse, 2-Specular, (Will get a list and edit it in).
Bitmap Name = Name of the Bitmap
True/False = Whether or not the engine has to scan outside Current ZIP.
*Edit, ED's Explanation is:
"false" means that the texture will be stored locally for this skin , not inside system path,
in that case you don't need to add textures to any other TempTextures , other zip's in system path , no need to edit graphics.cfg etc. "
So If you ZIP your textures and description LUA into a ZIP, set False, and you'll only have to drop the ZIP file into the Units/Livery Folder.
Textures that arent contained in the same ZIP/Folder should be set to TRUE.
ie, this is two of the LUA Bodies for some of the F-100D Module Skins:
Notice That The Main BMP has Both a Diffuse and Specular Layer,
Also Notice that the materials stay the same name but the BMP file names change. this allows you to make new bmps and a new lua without having several files with the same file name or overwriting other skins.
My Values are Set to True Because we have a separate folder for Liveries LUAs and Textures.
livery = {
{"Body", 0,"f100_texture-camo.bmp", true},
{"Body", 2,"f100_spec-camo.bmp", true},
{"Internal", 0, "f100_interior-camo.bmp", true},
{"Glass", 0, "CANOPYGLASS-camo.tga", true},
{"Fire", 0, "F100-AB_Fire-Camo.tga", true},
{"Pilot", 0,"jetpilot-camo.bmp", true},
{"Pilot", 2,"jetpilot_spec-camo.bmp", true},
{"Visor", 0,"visor-camo.bmp", true},
{"19 - Default", 0, "white_strobe-camo.tga", true},
{"20 - Default", 0, "red_strobe-camo.tga", true},
{"21 - Default", 0, "green_strobe-camo.tga", true},
}
name = "USAF Vietnam Camo"
countries = {
"USA",
}
livery = {
{"Body", 0,"f100_texture-Silver.bmp", true},
{"Body", 2,"f100_spec-Silver.bmp", true},
{"Interior", 0, "f100_interior-Silver.bmp", true},
{"Glass", 0, "CANOPYGLASS-Silver.TGA", true},
{"Fire", 0, "F100-AB_Fire-Camo.tga", true},
{"Pilot", 0,"jetpilot-silver.bmp", true},
{"Pilot", 2,"jetpilot_spec-silver.bmp", true},
{"Visor", 0,"visor-silver.bmp", true},
{"19 - Default", 0, "white_strobe-silver.tga", true},
{"20 - Default", 0, "red_strobe-silver.tga", true},
{"21 - Default", 0, "green_strobe-silver.tga", true},
}
name = "USAF Vietnam Silver"
countries = {
"USA",
}