Jump to content

[Tool] Create description.lua from EDM files


Recommended Posts

Posted (edited)
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 |

Posted

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

Posted

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. "

Posted (edited)

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

Intel i7-14700@5.6GHz | MSI RTX4080 SuperSuprimX | Corsair V. 64GB@6400MHz. | Samsung 1TB 990 PRO SSD (Win10Homex64)
Samsung G5 32" + Samsung 18" + 2x8"TFT Displays | TM Warthog Stick w/AVA Base | VPC MongoosT-50CM3 Throttle | TM MFD Cougars | Logitech G13, G230, G510, PZ55 & Farming Sim Panel | TIR5 & M.Quest3 VR
>>MY MODS<< | Discord: Devrim#1068

Posted

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 |

Posted

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

Thanks a lot!

Intel i7-14700@5.6GHz | MSI RTX4080 SuperSuprimX | Corsair V. 64GB@6400MHz. | Samsung 1TB 990 PRO SSD (Win10Homex64)
Samsung G5 32" + Samsung 18" + 2x8"TFT Displays | TM Warthog Stick w/AVA Base | VPC MongoosT-50CM3 Throttle | TM MFD Cougars | Logitech G13, G230, G510, PZ55 & Farming Sim Panel | TIR5 & M.Quest3 VR
>>MY MODS<< | Discord: Devrim#1068

Posted

this is awesome, thanks.:thumbup:

The only way to make sense out of change is to plunge into it, move with it, and join the dance.

"Me, the 13th Duke of Wybourne, here on the ED forums at 3 'o' clock in the morning, with my reputation. Are they mad.."

https://ko-fi.com/joey45

 

  • 2 weeks later...
  • 1 month later...
Posted (edited)

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
Posted

defaul content: diff/norm/spec/decal

advanced content: damage/damage norm

 

 

v1.6: add decal layer

[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 |

Posted

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, 1 x 15TB SSD U.2

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

Posted
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. "

  • 4 weeks later...
  • 3 weeks later...
Posted

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

ready for f-5e

[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 |

  • 1 month later...
Posted

Hi.

 

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

What's wrong with me? :)

Intel i7-14700@5.6GHz | MSI RTX4080 SuperSuprimX | Corsair V. 64GB@6400MHz. | Samsung 1TB 990 PRO SSD (Win10Homex64)
Samsung G5 32" + Samsung 18" + 2x8"TFT Displays | TM Warthog Stick w/AVA Base | VPC MongoosT-50CM3 Throttle | TM MFD Cougars | Logitech G13, G230, G510, PZ55 & Farming Sim Panel | TIR5 & M.Quest3 VR
>>MY MODS<< | Discord: Devrim#1068

Posted
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 |

Posted

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

Intel i7-14700@5.6GHz | MSI RTX4080 SuperSuprimX | Corsair V. 64GB@6400MHz. | Samsung 1TB 990 PRO SSD (Win10Homex64)
Samsung G5 32" + Samsung 18" + 2x8"TFT Displays | TM Warthog Stick w/AVA Base | VPC MongoosT-50CM3 Throttle | TM MFD Cougars | Logitech G13, G230, G510, PZ55 & Farming Sim Panel | TIR5 & M.Quest3 VR
>>MY MODS<< | Discord: Devrim#1068

  • Recently Browsing   0 members

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