Thread: MDLX converter
View Single Post
Old 06-29-2010, 07:10 PM   #15
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

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.

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

Hidden information:
MdlxData.h (modified), from lines 4262+:
//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")) {
} else if (line->type==LINE_FLAG && strmatch(line->label,"directional")) {
} else if (line->type==LINE_FLAG && strmatch(line->label,"ambient")) {
Attached Files
File Type: zip (176.3 KB, 413 views)
File Type: zip (60.1 KB, 221 views)
3dsMAX 5 Scripts:
mdl importer : (with animations)
events editor :
ProFeT is offline   Reply With Quote