HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

.mdl text editing

11-28-2007, 03:10 AM#1
WNxCryptic
I opened a .mdl in notepad so that I could replace two seperate geosets with empty one. I found the appropriate geosets and replaced them with:

Code:
Geoset {
	Vertices 0 {
	}
	Normals 0 {
	}
	VertexGroup {
	}
	Faces 0 0 {
		Triangles { 
		}
	}
	Groups 0 0 {
	}
	MaterialID 0,
	SelectionGroup 0,
}

The problem is that when I convert this .mdl to a .mdx using Yobgul's converter, I get a funny error message with an indecipherable meaning, and when I convert it with MDLX converter, it takes a while, but reports a successful converstion.

When I go to look at the new .mdx I find that its size is over 117,000 kb (the original .mdl was only 320 kb).

Where did I go wrong???
11-28-2007, 12:31 PM#2
Guesst
Geosets need at least 1 face, so make it like in that one here. That sounds like a bug in my converter... I will look at that.
11-28-2007, 01:12 PM#3
WNxCryptic
I'll try that out, thanks.

I would like to mention that the tutorial I was following: http://wc3campaigns.net/showthread.php?t=54973 Would be nearly perfect if it had that empty geoset attached... :)