Jump to content

[Tutorial & Mod] Drop-down list for selectable cockpit textures


Recommended Posts

-- v6: for 1.2.16: for ka-50 update

 

Like what you have experienced for skin list in ME.

Now this mod can automatically recognize all the original/customized cpt textures folders under '../aircraft/module/Liveries/Cockpit_XXXX/' for each module.

 

e.g, if you have 'default, 'english', and 'custom' three folders in ../Liveries/Cockpit_Ka-50/, then in the drop-down list, it will automatically find them and illustrated them in the list as 'Default', 'English', and 'Custom'. If you have 4, then all 4 will be listed.

 

No need to manually edit those lua files. So I think this can bring more convenience for easier using and it's much easier for texture extension

 

attachment.php?attachmentid=107136&stc=1&d=1416079200

attachment.php?attachmentid=107461&stc=1&d=1416079475

 

----------------------------------

 

The mods for Ka-50, Mi-8, Uh-1 and MiG-21Bis are supplied (JSGME ready).

1. You can download the related textures files and create folders with unique names under Liveries/Cockpit_xxx/ for each module.

2. Then put the dds/tga/bmp (created/released by other players) into those folders.

3. Modify the description.lua properly (comment those unused lines) (complete description.lua also attached).

 

Here is an example for Ka-50:

true means load the texture from original texture zip file

false means load it from local dds/tga file

 

attachment.php?attachmentid=107130&stc=1&d=1416079354

 

Then you can enjoy it.

If you have any problem, contact me.

Thanks for L0op8ack's help

 

 

http://www.digitalcombatsimulator.com/en/files/1052811/

 

---------------------------------------

 

WIP: trying to figure out FC3 cpt textures

Can anyone tell me how Su-25T knows its texture config folder is Liveries/xxx/default? Where define the value 'default'?

Since for DCS lvl module, it defines a variable called 'livery' to tell module which folder it should enter (e.g default or english or ...) to load the description.lua

Thanks

 

-

-

-

5.png.12bc9fc4f15daf32daa260c8c72bfaaf.png

6.png.6ac1b9a843203a5f3cb39eaf8cbf30c8.png

33.png.c7668292f9c7e1e0114299e4cbd6303e.png

description luas v5.zip

F86F Cockpit Scripts v2.zip

Mi8 Cockpit Scripts v3.zip

MiG21 Cockpit Script v3.zip

Uh-1 Cockpit Script v3.zip


Edited by uboats
update
  • Like 2

[sIGPIC][/sIGPIC]

My DCS Mods, Skins, Utilities and Scripts

 

| Windows 10 | i7-4790K | GTX 980Ti Hybrid | 32GB RAM | 3TB SSD |

| TM Warthog Stick | CH Pro Throttle + Pro Pedal | TIR5 Pro | TM MFD Cougar | Gun Camera: PrtScn |

Link to comment
Share on other sites

Very Very nice

 

What's with the UH-1??? in some I have a blue cockpit I hate that.

is there cpt mod for uh1? If you want one, i can create the script for huey

[sIGPIC][/sIGPIC]

My DCS Mods, Skins, Utilities and Scripts

 

| Windows 10 | i7-4790K | GTX 980Ti Hybrid | 32GB RAM | 3TB SSD |

| TM Warthog Stick | CH Pro Throttle + Pro Pedal | TIR5 Pro | TM MFD Cougar | Gun Camera: PrtScn |

Link to comment
Share on other sites

Did you consider to upload your code the github/subversion?

 

hmm, the proj is quite light and simple, currently, i will manage it locally. Maybe github later.

[sIGPIC][/sIGPIC]

My DCS Mods, Skins, Utilities and Scripts

 

| Windows 10 | i7-4790K | GTX 980Ti Hybrid | 32GB RAM | 3TB SSD |

| TM Warthog Stick | CH Pro Throttle + Pro Pedal | TIR5 Pro | TM MFD Cougar | Gun Camera: PrtScn |

Link to comment
Share on other sites

uboats

 

That would be nice:thumbup::thumbup:

 

here is the default description.lua for UH-1,

since I don't install uh-1, you can follow the inst. to create the script

 

or you send me the mainpanel_init.lua and whole Options folder

Cockpit_UH-1H.lua

[sIGPIC][/sIGPIC]

My DCS Mods, Skins, Utilities and Scripts

 

| Windows 10 | i7-4790K | GTX 980Ti Hybrid | 32GB RAM | 3TB SSD |

| TM Warthog Stick | CH Pro Throttle + Pro Pedal | TIR5 Pro | TM MFD Cougar | Gun Camera: PrtScn |

Link to comment
Share on other sites

uboats

 

That would be nice:thumbup::thumbup:

 

Script for Uh-1 has been uploaded, also an example (how to use gauge mod) is supplied. Please have a try and report if any problem

[sIGPIC][/sIGPIC]

My DCS Mods, Skins, Utilities and Scripts

 

| Windows 10 | i7-4790K | GTX 980Ti Hybrid | 32GB RAM | 3TB SSD |

| TM Warthog Stick | CH Pro Throttle + Pro Pedal | TIR5 Pro | TM MFD Cougar | Gun Camera: PrtScn |

Link to comment
Share on other sites

Is this ok so in your UH-1 mainpanel_init.lua Liveries/Cockpit_Mi-8MT/"..livery

 

local tmpcpdir = current_mod_path.."Liveries/Cockpit_Mi-8MT/"..livery.."/

 

description.lua"

 

 

why Cockpit_Mi-8MT

 

that part has been commented, so will be ignored.

[sIGPIC][/sIGPIC]

My DCS Mods, Skins, Utilities and Scripts

 

| Windows 10 | i7-4790K | GTX 980Ti Hybrid | 32GB RAM | 3TB SSD |

| TM Warthog Stick | CH Pro Throttle + Pro Pedal | TIR5 Pro | TM MFD Cougar | Gun Camera: PrtScn |

Link to comment
Share on other sites

  • 2 weeks later...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...