HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

MDLX converter

01-28-2007, 04:30 AM#1
Guesst
Now without .NET and pretty thorougly tested.

- Click "Convert" and choose one or more files to convert.
- Click "Repeat" to do the last batch over again. This
is useful if you had an error in your MDL and just went
back to fix it.
- You can also click and drag files onto the program
from Explorer or open MDL/X files with it. This makes
converting a file as easy as going into the right click
menu in Explorer.
Attached Images
File type: jpgmdlxconviconlargeish.jpg (8.5 KB)
Attached Files
File type: zipMdlxConv.zip (155.9 KB)
01-28-2007, 01:51 PM#2
Vexorian
source would be kind of good anyways it works and it seems it even does stuff correctly and could replace yobgul's what is amazingly good. Approve + rep
01-28-2007, 02:04 PM#3
Chriz.
Great : ) I like the repeat function. And theres no stupid error when you close it like on YobGuls : )
01-28-2007, 05:58 PM#4
Mc !
ah... I was in a great need of a good coverter and this one seems to be great.
01-28-2007, 08:12 PM#5
Av3n
I sense Vexorian asking him how to make it I think... +rep for the good job to make the converter.

-Av3n
01-28-2007, 10:17 PM#6
Guesst
I updated it. I had forgotten about ParticleEmitters (ParticleEmitter2s were fine) and it now the file dialog remembers the file type.

The source is kind of a mess. I might post it some time.
02-18-2007, 02:49 PM#7
Pris0n
and what about the source??
anyway +rep
03-03-2007, 03:22 PM#8
Guesst
I posted a new version with some bug fixes (for ParticleEmitter2s) and here is the source.
Attached Files
File type: zipMdlxConvSource.zip (105.0 KB)
01-23-2008, 06:53 PM#9
yaoiboix
i downloaded a huge model pack off filefront that claimed to be a WC3 model pack, all of the files are .MDL and all 5000+ of them seem to fail when i try to convert them... solutions? or is it possible that they are for a different game and will not convert?
01-24-2008, 10:36 AM#10
Vexorian
You can import the mdl files directly
10-02-2008, 10:16 PM#11
jigrael
I found a bug, it fails to convert right models that have an omnilight, the light ends lighting the whole map. Plz try to fix it, I really like this tool.
09-20-2009, 09:53 PM#14
Mooglefrooglian
Quote:
Originally Posted by jigrael
I found a bug, it fails to convert right models that have an omnilight, the light ends lighting the whole map. Plz try to fix it, I really like this tool.

I am having this trouble too. VERY annoying.
06-29-2010, 07:10 PM#15
ProFeT
I also experienced the bug yesterday, then after a little seach I finally found the problem.
I'm not sure that people still need this, but there are the fixed executable & sources.

Fixes:
- 2 compile errors (with VS2008)
- Omnilight's corrupted conversion


Hidden information:
MdlxData.h (modified), from lines 4262+:
Code:
//It turns out that omnilights was not converted properly during .mdl to .mdx conversion.
//When a corrupted model is used in a map, this leads to map's lightning to be totally broken.
//It happened because TYPE_LIGHT was added to the light's type (Omnidirectional, Directional,
//Ambient) value. (~profet)

if (line->type==LINE_FLAG && strmatch(line->label,"omnidirectional")) {
    type = /*TYPE_LIGHT+*/LIGHT_OMNIDIRECTIONAL;
} else if (line->type==LINE_FLAG && strmatch(line->label,"directional")) {
    type = /*TYPE_LIGHT+*/LIGHT_DIRECTIONAL;
} else if (line->type==LINE_FLAG && strmatch(line->label,"ambient")) {
    type = /*TYPE_LIGHT+*/LIGHT_AMBIENT;
Attached Files
File type: zipMdlxConv_1.04.zip (176.3 KB)
File type: zipMdlxConv_1.04_sources.zip (60.1 KB)