Wc3C.net

Wc3C.net (http://www.wc3c.net/forums.php)
-   Tools (http://www.wc3c.net/forumdisplay.php?f=617)
-   -   MDLX converter (http://www.wc3c.net/showthread.php?t=91130)

Guesst 01-28-2007 05:30 AM

MDLX converter
 
2 Attachment(s)
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.

Vexorian 01-28-2007 02:51 PM

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

Chriz. 01-28-2007 03:04 PM

Great : ) I like the repeat function. And theres no stupid error when you close it like on YobGuls : )

Mc ! 01-28-2007 06:58 PM

ah... I was in a great need of a good coverter and this one seems to be great.

Av3n 01-28-2007 09:12 PM

I sense Vexorian asking him how to make it I think... +rep for the good job to make the converter.

-Av3n

Guesst 01-28-2007 11:17 PM

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.

Pris0n 02-18-2007 03:49 PM

and what about the source??
anyway +rep

Guesst 03-03-2007 04:22 PM

1 Attachment(s)
I posted a new version with some bug fixes (for ParticleEmitter2s) and here is the source.

yaoiboix 01-23-2008 07:53 PM

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? :roll:

Vexorian 01-24-2008 11:36 AM

You can import the mdl files directly

jigrael 10-02-2008 11:16 PM

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.

Mooglefrooglian 09-20-2009 10:53 PM

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.

ProFeT 06-29-2010 08:10 PM

2 Attachment(s)
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;



All times are GMT. The time now is 02:24 PM.

Powered by vBulletin (Copyright ©2000 - 2019, Jelsoft Enterprises Ltd).
Hosted by www.OICcam.com
IT Support and Services provided by Executive IT Services