Hedhunta Posted September 13, 2013 Posted September 13, 2013 I'm making my own aircraft but having some issues getting textures to display. The only place I can get my textures to show up on the model in game is if i put it into the DCSWORLD\Bazar\TempTextures directory. I have tried searching on the forums but I can't seem to find where texture files are supposed to go in my aircrafts mod folder. Is there a tutorial somewhere or can someone please explain it to me? I had though it went into DCSWORLD\Mods\aircrafts\Myaircraft\liveries\aircraftname\liveryname\ or DCSWORLD\Mods\aircrafts\Myaircraft\liveries\liveryname\ but neither seems to work. I have a description.lua in there but im not sure what i need to modify to make it show up my description.lua is livery = { {"materialnameinmax", 0 ,"texturefilename",True}; } countries = {"USA"} Should my materialnameinmax actually be the object name to which the material is assigned in max? I'm sure theres something simple im missing. Thanks
SkateZilla Posted September 13, 2013 Posted September 13, 2013 (edited) First: Make sure your Entry.LUA or Data LUA for the Aircraft have the VFS Mounts for the Livery and Texture Folders that the textures are in ie mount_vfs_liveries_path (current_mod_path.."/Liveries") mount_vfs_texture_path (current_mod_path.."/Textures/<foldername>" mount_vfs_texture_path (current_mod_path.."/Liveries/<foldername>" Textures Folder: The Textures Folder will contain Textures in sub folders so: /Textures/CockpitPanels/ /Textures/LiveryName1/ (note all texture folders must be vfs mounted in the Entry LUA to be loaded. /Textures/LiveryName2/ /Textures/CommonTextures/ ( it's a good idea to have 1 common texture folder, so individual Liveries wont have to include common textures, saves on overall file size for online distribution, and less disk space used for multiple copies of the same texture) Each Textureset can have it's own unique filename (ie. fuselage-VF110.dds. fuselage-VF103.dds etc.) /Liveries/ contains the Skins/Liveries. /Liveries/ should have a Sub folder /AircraftName/ (<- that must match the "AircraftName", you put everywhere else) inside the /Liveries/AircraftName/ Folder you should have a Folder for Each Skin, so: /Liveries/AircraftName/LiveryName1/ /Liveries/AircraftName/LiveryName2/ etc inside each /LiveryNameX/ folder you need a description.lua file (You can place Livery Specific Textures in the Livery Folder/ZIP, just make sure you tell the description LUA that the textures are locally contained.) the description.lua file contains texture mapping and country data. Here's an example: (note Syntax is: Material name, Channel Number, Filename, True/False) Material Name = 3ds Max Material name Channel Number = 0=Diffuse, 1=Bump, 2=Specular Filename = Texture Filename True/False = Scan outside folder/zip, TRUE=Texture is outside this folder, FALSE =Texture is in this Folder. Name = "the name of your livery" Countries = ("USA") you can change this to the country code that your plane is. So make the 3 entries for each material, if a material dont have a bump or spec, just delete the entire line cleanly. livery = { {"3ds Max Material Name", 0,"Livery Texture Filename with extension", true}, {"3ds Max Material Name", 1,"Livery Texture Filename with extension", true}, {"3ds Max Material Name", 2,"Livery Texture Filename with extension", true}, {"3ds Max Material Name2", 0,"Livery Texture Filename with extension", true}, {"3ds Max Material Name2", 1,"Livery Texture Filename with extension", true}, {"3ds Max Material Name2", 2,"Livery Texture Filename with extension", true}, } name = "USAF Silver" countries = { "USA", } Edited September 13, 2013 by SkateZilla 1 Windows 10 Pro, Ryzen 2700X @ 4.6Ghz, 32GB DDR4-3200 GSkill (F4-3200C16D-16GTZR x2), ASRock X470 Taichi Ultimate, XFX RX6800XT Merc 310 (RX-68XTALFD9) 3x ASUS VS248HP + Oculus HMD, Thrustmaster Warthog HOTAS + MFDs
Recommended Posts