monkie Posted September 14, 2013 Share Posted September 14, 2013 I am trying to introduce a custom painted interior file "uh1_int.tga" into the Huey Description.lua. I see that each file has a description to tell the program what part is the file is to be applied to and also the name of the particular file to be applied. Does anyone know what description the "uh1_int.tga" file would come under? Also is there way to find out what these descriptions are, maybe a common way of naming? Thanks for any help. Monk Sager Laptop, i7-6700k 4.00GHz, 16GB RAM, GTX 980M, 1920x1080, TIR 5, Windows 10 Link to comment Share on other sites More sharing options...
Lizzard Posted September 15, 2013 Share Posted September 15, 2013 I do know nothing, but I guess the description.lua is just a small Piece in the Chain..to change the interior (a Couch..and a Fridge..or something) of the Huey you may need some in depth coding. My Specs: I don`t care..it is a Computer..a black one.. Link to comment Share on other sites More sharing options...
monkie Posted September 15, 2013 Author Share Posted September 15, 2013 It's a simple texture issue. I'm changing the color of the insulation to be a bit darker and the troop seats to red as opposed to green. Sager Laptop, i7-6700k 4.00GHz, 16GB RAM, GTX 980M, 1920x1080, TIR 5, Windows 10 Link to comment Share on other sites More sharing options...
Lizzard Posted September 15, 2013 Share Posted September 15, 2013 yeah I get your Point, but the description.lua never Points to the Cabin of the Huey..so every Huey has the same Cabin. In the depths of the DCS World Folder is the Texture for it..so if you want to change it, you have to search for it. But if you want to make it changeable..like one Huey should get my red Seats, and the other not..you may have to Change the coding for the Huey in generall I guess..so it points to a description.lua File or soemthing My Specs: I don`t care..it is a Computer..a black one.. Link to comment Share on other sites More sharing options...
monkie Posted September 15, 2013 Author Share Posted September 15, 2013 Yes you are exactly right, I can change the main texture but that would change it for all the Huey's. I'm trying to find the description for that particular part so I can change it for the individual Huey's. I found a thread where Aussieboy talked about the description being {"ab212_int_white", 0 ,"uh1_int.tga",false}; {"ab212_int_panel", 0, "uh1_int.tga",false}; but I cannot get either of them to change the interior so far. I have a hex editor and was going to look for the Huey's .EDM file to see what material was linked to the textures but can't find the Huey's .EDM file anywhere. Sager Laptop, i7-6700k 4.00GHz, 16GB RAM, GTX 980M, 1920x1080, TIR 5, Windows 10 Link to comment Share on other sites More sharing options...
aussieboy Posted September 15, 2013 Share Posted September 15, 2013 Yes you are exactly right, I can change the main texture but that would change it for all the Huey's. I'm trying to find the description for that particular part so I can change it for the individual Huey's. I found a thread where Aussieboy talked about the description being {"ab212_int_white", 0 ,"uh1_int.tga",false}; {"ab212_int_panel", 0, "uh1_int.tga",false}; but I cannot get either of them to change the interior so far. I have a hex editor and was going to look for the Huey's .EDM file to see what material was linked to the textures but can't find the Huey's .EDM file anywhere. That will work fine. Just make sure if you're viewing it in modelviewer that you restart it for it to show. Here's an example using the same method Link to comment Share on other sites More sharing options...
aussieboy Posted September 16, 2013 Share Posted September 16, 2013 I found it monkie, When you zoom out it changes LOD's and the lod1.edm uses another material name entry, add the below to the description.lua {"uh1_int", 0, "uh1_int.tga", false}; Link to comment Share on other sites More sharing options...
monkie Posted September 21, 2013 Author Share Posted September 21, 2013 (edited) For those who might be interested in changing the interior textures this is what I've found out from trial and error. This changes the way the interior looks from the exterior view and also SOME of the textures you will see from the interior view. For example I changed the seat webbing from green to red for the passenger seats and the pilot seats. From the exterior both of them show the color change however the interior only shows the passenger seats as changed since the pilot seats have further texturing from the interior view. You will need to add the following into your description.lua {"ab212_int_white", 0 ,"uh1_int.tga",false}; {"ab212_int_panel", 0, "uh1_int.tga",false}; {"uh1_int", 0, "uh1_int.tga", false}; {"ab212_int_green", 0, "uh1_int.tga",false}; {"uh1_int_dam", 0, "uh1_int.tga",false}; {"def_material", 0,"uh1_int.tga",false}; Of course this assumes the "uh1_int.tga" file is located in the same directory as the livery you are changing. HOWEVER, this seems to interact in such a way with other liveries that if you have other UH-1's in the same mission with differen't paint schemes EACH of them will also need to have the same code inserted into the description.lua. If you do not do this for the other AI driven UH-1's you will get all sorts of texture mis-matches and other strange behavior in texture placement. For example if you had a huey that was using the default interior you would have to insert {"ab212_int_white", 0 ,"uh1_int.tga",true}; {"ab212_int_panel", 0, "uh1_int.tga",true}; {"uh1_int", 0, "uh1_int.tga", true}; {"ab212_int_green", 0, "uh1_int.tga",true}; {"uh1_int_dam", 0, "uh1_int.tga",true}; {"def_material", 0,"uh1_int.tga",true}; Notice the statements are "true" so the program looks to the default UH-1 texture locations. I have no idea why there is this relationship and it might be changed as the Beta progesses but figured I'd put it out there to help others avoid spending time trying to figure it out on they're own. Edited September 21, 2013 by monkie Sager Laptop, i7-6700k 4.00GHz, 16GB RAM, GTX 980M, 1920x1080, TIR 5, Windows 10 Link to comment Share on other sites More sharing options...
Recommended Posts