[Tool] Create description.lua from EDM files - ED Forums
 


Notices

Reply
 
Thread Tools Display Modes
Old 01-31-2016, 07:24 AM   #1
uboats
ED Tester / ED Moderator
 
uboats's Avatar
 
Join Date: Mar 2013
Location: East Sierra
Posts: 5,949
Default [Tool] Create description.lua from EDM files

Quote:
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):
Quote:
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:
Code:
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


__________________


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 |

Last edited by uboats; 01-24-2019 at 05:08 PM.
uboats is offline   Reply With Quote
Old 01-31-2016, 09:41 AM   #2
zaelu
Veteran
 
zaelu's Avatar
 
Join Date: Sep 2005
Location: Nice, France
Posts: 4,097
Default

Very nice! Thanks!
__________________

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
zaelu is offline   Reply With Quote
Old 01-31-2016, 12:32 PM   #3
DirtyFret
Member
 
DirtyFret's Avatar
 
Join Date: Oct 2014
Location: Finland
Posts: 222
Default

Much appreciated and needed. Thanks.
__________________
http://forums.eagle.ru/signaturepics/sigpic109142_3.gif
PewPew, "Stick 'em with the pointy end" "Vasilissa the Beautiful" HD Cockpit
DirtyFret is offline   Reply With Quote
Old 02-01-2016, 12:46 AM   #4
Blaze
Veteran
 
Blaze's Avatar
 
Join Date: Mar 2009
Location: Orlando, FL
Posts: 3,226
Default

This is bloody brilliant!
__________________
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. "
Blaze is offline   Reply With Quote
Old 02-01-2016, 02:06 AM   #5
uboats
ED Tester / ED Moderator
 
uboats's Avatar
 
Join Date: Mar 2013
Location: East Sierra
Posts: 5,949
Default

thanks guy
will further improve it for more features
__________________


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 |
uboats is offline   Reply With Quote
Old 02-08-2016, 11:59 PM   #6
Devrim
Veteran
 
Devrim's Avatar
 
Join Date: Mar 2011
Location: Turkey
Posts: 4,396
Default

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\
__________________
I'm done and out - until better DCS coding or a new PC or next life...
See you...
MY MODS

Last edited by Devrim; 02-09-2016 at 12:50 AM.
Devrim is offline   Reply With Quote
Old 02-09-2016, 07:32 AM   #7
uboats
ED Tester / ED Moderator
 
uboats's Avatar
 
Join Date: Mar 2013
Location: East Sierra
Posts: 5,949
Default

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


Sent from my iPhone using Tapatalk
__________________


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 |
uboats is offline   Reply With Quote
Old 02-09-2016, 08:07 AM   #8
Devrim
Veteran
 
Devrim's Avatar
 
Join Date: Mar 2011
Location: Turkey
Posts: 4,396
Default

Ah! That will solve the problem. I'll do that when at home.
Thanks a lot!
__________________
I'm done and out - until better DCS coding or a new PC or next life...
See you...
MY MODS
Devrim is offline   Reply With Quote
Old 02-09-2016, 04:18 PM   #9
joey45
Veteran
 
joey45's Avatar
 
Join Date: Jul 2006
Location: London
Posts: 10,662
Default

this is awesome, thanks.
__________________
General 3D modeling thread and reference sites
UK liveries for planes, ships and MODS.
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.."
Please send all hate mail to No11
Updates to my stuff are now going here
joey45 is offline   Reply With Quote
Old 02-09-2016, 05:04 PM   #10
Markindel
Member
 
Markindel's Avatar
 
Join Date: May 2012
Location: Italy, Aci Catena
Posts: 593
Default

Thanks, very great utility!
Markindel is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 03:03 AM. vBulletin Skin by ForumMonkeys. Powered by vBulletin®.
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.