Jump to content

[Tool] Create description.lua from EDM files


uboats

Recommended Posts

I've made this project open sourced

anyone interested in contribution can contact me and i will add him/her to the github project

 

https://github.com/uboats/edm_livery_extractor

 

note: currently, tool only supports edm version 10, and cannot analyze latest edm files

 

 

 

To create skins or re-texture cockpit, many players may suffer from not knowing the texture material names defined in EDM files.

Even they can find and modify desired dds files, they may not know how to ask DCS to load them,

since the description.lua file with completed entries are not available for them

 

layer definition (enumeration):

DIFFUSE = 0;

NORMAL_MAP = 1;

SPECULAR = 2;

DECAL = 3;

DIRT = 4;

DAMAGE = 5;

PUDDLES = 6;

SNOW = 7;

SELF_ILLUMINATION = 8;

AMBIENT_OCCLUSION = 9;

ROUGHNESS_METALLIC = 13;

 

Here I wrote a small app to solve this issue, and share it with the community.

 

Note, this can be used for guys who want to customize cockpit texture but don't know how to create lua file

 

ALSO Visual C++ 2013/2015 Redistributable X86/x64 is REQUIRED!

 

all defined/used layers in edm file will be extracted

 

v2.0: support of new format (thank NickD for new format analysis and his code)

v1.9: fix bugs

v1.8: extract all defined/used layers in edm file (so no need advanced checkbox)

v1.7: fix bug for sa342 pit edm

v1.6: add decal layer

v1.5: now it can find out all diff/norm/spec layers, and damage/damagenorm (experimental)

v1.1: fixed bugs, add save path checkbox

 

download

 

Feature:

1. Can load/extract multiple edm files
2. Create description.lua files with nearly full material entries (diff/norm/spec)
3. Save lua either beside the edm or extractor

 

2.png

 

1.png


Edited by uboats
  • Like 1

[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 nice! Thanks!

[sIGPIC][/sIGPIC]

I5 4670k, 32GB, GTX 1070, Thrustmaster TFRP, G940 Throttle extremely modded with Bodnar 0836X and Bu0836A,

Warthog Joystick with F-18 grip, Oculus Rift S - Almost all is made from gifts from friends, the most expensive parts at least

Link to comment
Share on other sites

This is bloody brilliant! :thumbup:

i7 7700K | 32GB RAM | GTX 1080Ti | Rift CV1 | TM Warthog | Win 10

 

"There will always be people with a false sense of entitlement.

You can want it, you can ask for it, but you don't automatically deserve it. "

Link to comment
Share on other sites

Hi. Thanks for this work!

 

But, I have same mfc120u.dll problem.

Ms Visual C++ 2013 Redistributable (x64) v12.0.30501 is already installed (repaired just in case) on my system, but not working!

 

You wrote "please install vc2013 redistrubute x86" in UserFiles page, does it matter x86 or x64? I installed x64 because my system is 64-bit.

 

Edit: When I do a search on my C: partition, I can see that mfc120u.dll is there in Windows\system32\ :(


Edited by Devrim

i7-2600 @3.4GHz | Corsair 16GB @1600MHz. | MSI GTX1660Ti Gaming X | Samsung 256GB SSD (Win10HPx64)
Samsung G5 32" + Samsung 18" + 2x8"TFT Displays | Saitek X-55 Rhino & Rudder | TM MFD Cougars | Logitech G13, G230, G510, PZ55 & Farming Sim Panel | TIR5
>>MY MODS<< | Discord: Devrim#1068

Link to comment
Share on other sites

Hi Devrim's, for x64 system, you can install both since many app are still x86.

 

 

Sent from my iPhone using Tapatalk

[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

Ah! That will solve the problem. I'll do that when at home.

Thanks a lot!

i7-2600 @3.4GHz | Corsair 16GB @1600MHz. | MSI GTX1660Ti Gaming X | Samsung 256GB SSD (Win10HPx64)
Samsung G5 32" + Samsung 18" + 2x8"TFT Displays | Saitek X-55 Rhino & Rudder | TM MFD Cougars | Logitech G13, G230, G510, PZ55 & Farming Sim Panel | TIR5
>>MY MODS<< | Discord: Devrim#1068

Link to comment
Share on other sites

  • 2 weeks later...
  • 1 month later...

Incredible and awesome dear Uboats,

After to have using your softs now it's impossible to work with DCS without, congratulation and a great thanks for your sharing.

Skull +1

 

Thumbs_21.gif


Edited by Skulleader
Link to comment
Share on other sites

I'd like to mention that if changing the damage texture works, the artist will need to follow up with the volumetric damage texture that is associated with it.

https://magnitude-3.com/

https://www.facebook.com/magnitude3llc

https://www.youtube.com/@magnitude_3

i9 13900K, 128GB RAM, RTX 4090, Win10Pro, 2 x 2TB SSD

i9 10980XE, 128GB RAM, RTX 3090Ti, Win10 Pro, 2 x 256GB SSD, 4 x 512GB SSD RAID 0, 6 x 4TB HDD RAID 6, 9361-8i RAID Controller

i7 4960X, 64GB RAM, GTX Titan X Black, Win10 Pro, 512GB PCIe SSD, 2 x 256GB SSD

Link to comment
Share on other sites

I'd like to mention that if changing the damage texture works, the artist will need to follow up with the volumetric damage texture that is associated with it.

 

I think the new volumetric damage textures will be out of the scope of most regular skinners, but yeah. :)

i7 7700K | 32GB RAM | GTX 1080Ti | Rift CV1 | TM Warthog | Win 10

 

"There will always be people with a false sense of entitlement.

You can want it, you can ask for it, but you don't automatically deserve it. "

Link to comment
Share on other sites

  • 4 weeks later...
  • 3 weeks later...
  • 1 month later...

Hi.

 

I click on Extract!, but can't see lua file neither in EDM folder nor extractor (software) folder.

What's wrong with me? :)

i7-2600 @3.4GHz | Corsair 16GB @1600MHz. | MSI GTX1660Ti Gaming X | Samsung 256GB SSD (Win10HPx64)
Samsung G5 32" + Samsung 18" + 2x8"TFT Displays | Saitek X-55 Rhino & Rudder | TM MFD Cougars | Logitech G13, G230, G510, PZ55 & Farming Sim Panel | TIR5
>>MY MODS<< | Discord: Devrim#1068

Link to comment
Share on other sites

Hi.

 

I click on Extract!, but can't see lua file neither in EDM folder nor extractor (software) folder.

What's wrong with me? :)

 

 

 

May I know which edm file from which DCS version?

 

 

Sent from my iPhone using Tapatalk

[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

For example Ka50 cockpit EDM from DCS v1.5.4OB.

i7-2600 @3.4GHz | Corsair 16GB @1600MHz. | MSI GTX1660Ti Gaming X | Samsung 256GB SSD (Win10HPx64)
Samsung G5 32" + Samsung 18" + 2x8"TFT Displays | Saitek X-55 Rhino & Rudder | TM MFD Cougars | Logitech G13, G230, G510, PZ55 & Farming Sim Panel | TIR5
>>MY MODS<< | Discord: Devrim#1068

Link to comment
Share on other sites

  • Recently Browsing   0 members

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