Thread: MDLX converter
View Single Post
Old 06-29-2010, 07:10 PM   #15
ProFeT
User
 
ProFeT's Avatar
 
Join Date: Aug 2003
Posts: 189

Submissions (1)

ProFeT will become famous soon enough (71)ProFeT will become famous soon enough (71)ProFeT will become famous soon enough (71)

Outstanding Tool

Send a message via MSN to ProFeT
Default

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: zip MdlxConv_1.04.zip (176.3 KB, 382 views)
File Type: zip MdlxConv_1.04_sources.zip (60.1 KB, 192 views)
__________________
3dsMAX 5 Scripts:
mdl importer : http://wc3campaigns.net/showthread.php?p=918051 (with animations)
events editor : http://wc3campaigns.net/showthread.php?t=89816
ProFeT is offline   Reply With Quote