Spyros Posted June 28, 2015 Posted June 28, 2015 Just found out that if you omit some "default" values instead of setting them to true in a skin's lua file, there are artifacts on the skin if another plane of the same type (with a different skin) appears in the mission. Yay! :cheer3nc: How do you prevent this when you have a custom pilot? For example, if a Su-27 has a third party skin like the "USN VF-213 Blacklions AJ-212" from DCS User Files and another Su-27 having the game's "Airforce Standard" skin appears in the same mission, then the USN pilot is not as it was meant to be. Here is the lua code for the game's AF Standard: livery = { {"su27_tex01", 0 ,"Su27_tex01",true}; {"su27_tex01", 3 ,"empty.tga",true}; {"su27_tex01_BN31", 0 ,"Su27_tex01",true}; {"su27_tex01_BN31", 3 ,"Su-27_numbers_red",true}; {"su27_tex01_BN32", 0 ,"Su27_tex01",true}; {"su27_tex01_BN32", 3 ,"Su-27_numbers_red",true}; {"su27_tex02", 0 ,"Su27_tex02",true}; {"su27_tex02_compos", 0 ,"Su27_tex02",true}; {"su27_tex03", 0 ,"Su27_tex03",true}; {"su27_tex03_compos", 0 ,"Su27_tex03",true}; {"su27_tex03_compos", 3 ,"Su-27_decol",true}; {"su27_tex04", 0 ,"Su27_tex04",true}; {"su27_tex04", 3 ,"Su-27_decol",true}; {"su27_tex05", 0 ,"Su27_tex05",true}; {"su27_tex05", 3 ,"Su-27_decol",true}; {"su27_tex06", 0 ,"Su27_tex06",true}; {"su27_tex06", 3 ,"Su-27_decol",true}; {"su27_tex07", 0 ,"Su27_tex07",true}; {"su27_nose_numbers", 0 ,"Su-27_numbers_red",true}; {"su27_tail_numbers", 0 ,"Su-27_numbers_red",true}; {"su27_tail_numbers_top", 0 ,"empty.tga",true}; {"su27_tail_numbers_down", 0 ,"empty.tga",true}; {"su27_detail", 0 ,"Su-27_detail",true}; {"su27_detail_compos", 0 ,"Su-27_detail",true}; } countries = {"RUS"} and here is the lua code from the USN VF-213 which I downloaded from User Files. livery = { {"su27_tex01", 0 ,"Su27_tex01_USN_212",false}; {"su27_tex01", 2 ,"su27_tex01_spc",true}; {"su27_tex01", 3 ,"empty.tga",true}; {"su27_tex01_BN31", 0 ,"Su27_tex01_USN_212",false}; {"su27_tex01_BN31", 3 ,"empty.tga",true}; {"su27_tex01_BN32", 0 ,"Su27_tex01_USN_212",false}; {"su27_tex01_BN32", 3 ,"empty.tga",true}; {"su27_tex02", 0 ,"Su27_tex02_USN",false}; {"su27_tex02_compos", 2 ,"su27_tex02_spc",true}; {"su27_tex02_compos", 0 ,"Su27_tex02_USN",false}; {"su27_tex03", 0 ,"Su27_tex03_USN_212",false}; {"su27_tex03_compos", 2 ,"su27_tex03_spc",true}; {"su27_tex03_compos", 0 ,"Su27_tex03_USN_212",false}; {"su27_tex03_compos", 3 ,"empty.tga",true}; {"su27_tex04", 0 ,"Su27_tex04_USN_212",false}; {"su27_tex04", 2 ,"su27_tex04_spc",true}; {"su27_tex04", 3 ,"empty.tga",true}; {"su27_tex05", 0 ,"Su27_tex05_VF213",false}; {"su27_tex05", 2 ,"su27_tex05_spc",true}; {"su27_tex05", 3 ,"empty.tga",true}; {"su27_tex06", 0 ,"Su27_tex06_VF213",false}; {"su27_tex06", 2 ,"su27_tex06_spc",true}; {"su27_tex06", 3 ,"empty.tga",true}; {"su27_tex07", 0 ,"Su27_tex07_USN",false}; {"su27_nose_numbers", 0 ,"empty.tga",true}; {"su27_tail_numbers", 0 ,"empty.tga",true}; {"su27_tail_numbers_top", 0 ,"empty.tga",true}; {"su27_tail_numbers_down", 0 ,"empty.tga",true}; {"su27_detail", 0 ,"Su-27_detail",true}; {"su27_detail_compos", 0 ,"Su-27_detail",true}; {"su27_pylon",0,"su27_pylon",true}; [b] {"pilot_SU_body", 0, "pilot_su_VF213",false};[/b] } name = 'USN VF-213 Blacklions AJ-212' countries = {"RUS","UKR","USA"} What is missing from this one to be able to display its pilot correctly? God forgives... Spyros doesn't.
CHSubZero Posted June 28, 2015 Posted June 28, 2015 This happens with every plane BTW. If you have multiple pilot skins in the same flight (group) it will only use 1 skin... If you make for every skin an own group, then it should work Aviation Livery - Explore Military Aircraft Liveries My Mods: DCS User Files
Spyros Posted June 28, 2015 Author Posted June 28, 2015 Yes the Su-27 was an example. The two planes used in the test were in a different Coalition. Red seems to have a priority. So, if you place the USN plane in red, it will display the American pilot. If you put it in blue, it will display the default Su-27 pilot. Is there a solution in the lua file, without mission planning workarounds? God forgives... Spyros doesn't.
Spyros Posted June 28, 2015 Author Posted June 28, 2015 Just did another test. The problem (from the skin's lua point of view) seems to be caused by some missing lines in the game's AF Standard skin: {"su27_pylon",0,"su27_pylon",true}; {"pilot_SU_body", 0, "pilot_su",true}; So it looks like the skin maker can't do anything more about it. God forgives... Spyros doesn't.
Shahdoh Posted June 28, 2015 Posted June 28, 2015 What I found using all sorts of custom items on P51 skins ( custom pilots, patches, even animated props) was that if there was an item in 1 description.lua, it needed to be in ALL description.lua's of aircraft of the same type, even if it was default. And in some cases for certain items at least, needed to be in the same order. I run a Mustang racing series where all sorts of custom skins are used, and we have gotten rid of all graphic anomalies by doing this. Yes, it took some work going through 29 different aircraft to make sure all entries were in each description.lua, but it paid off when everything works right and all involved see the see the aircraft as intended. See this thread: http://forums.eagle.ru/showthread.php?t=140026 If any ?s, will try to explain further. /Salute Shahdoh
Spyros Posted June 28, 2015 Author Posted June 28, 2015 OK, thank you. Now the main question: Can I have my Sunday back? :cry: ... Ah never mind, I'll get over it! God forgives... Spyros doesn't.
Shahdoh Posted June 28, 2015 Posted June 28, 2015 Another note, if it was not already clear, all connecting need to have the same files. If another person on the server is in an aircraft that is not updated with the corrected description.lua, that information is sent out to the rest of the clients as the base *.lua to follow, resulting in graphic issues. Its a first one on that sets the standard of how the others are set.
Recommended Posts