HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Converting MDL to MDX

11-15-2003, 07:40 PM#1
Pawige
Okay, I'm attempting to learn to make models for WCIII, I modeled (in milkshape) a simple club to attach to a model, then exported to a .MDL with the .MDL exporter plugin (I used zero joints), but when I tried to use YobGuls's model converter it gave me a nice funky error. I get the feeling I need to modify the .MDL file in some way, but I have no clue. Thanks!
11-15-2003, 08:24 PM#2
Oinkerwinkle
Indeed you do. First make sure you have the most recent version of that exporter (.02), which is not the one they have in the downloads section. It's attached. Then, you must add a heading. For a simple club without team color, it can look like this:

Code:
Textures 1 {
	Bitmap {
		Image "Textures\TEXTUREHERE.blp",
	}
}
Materials 1 {
	Material {
		Layer {
			FilterMode Transparent,
			TwoSided,
			static TextureID 0,
		}
	}
}
Sequences 1 {
	Anim "Stand" {
		Interval { 41, 500 },
		MinimumExtent { -10, -17.7064, 0 },
		MaximumExtent { 10, 10, 59.6984 },
		BoundsRadius 60.1279,
	}
}
You have to add tabs to that appropriately. After a "{", it goes out one more. After a "}", it goes in one. Spaces don't work; it has to be tabs.

Here is an example of how one world work. Don't copy/paste it though! It uses spaces so the formatting stays on these forums.
Code:
Sequences 1 {
        Anim "Stand" {
                Interval { 41, 500 },
                MinimumExtent { -10, -17.7064, 0 },
                MaximumExtent { 10, 10, 59.6984 },
                BoundsRadius 60.1279,
        }
}

Change TEXTURHERE to the path of your texture. Ex: Textures\Club.blp.
11-15-2003, 09:18 PM#3
Pawige
Thanks for the fast reply! I tried what you said, proper formatting and all, but YobGuls's converter still has this error...BTW, what's with the numbers? (in your example) Are they just placeholders?
11-15-2003, 09:39 PM#4
Ari
That's the way the converter indicates a syntax error. So far as I know, there's little meaning to the actual message it gives. Also as far as I know, white space of any sort (including tabs) is ignored by the program. For me personally, common sources of errors include failing to close my {}'s properly, and forgetting commas. If you accidentlally types a character at the very beginning of the file, that may also screw it up. Other sources of errors include typos in the various parameters, and forgetting spaces between a parameter and its value (textures1).
11-15-2003, 10:41 PM#5
Pawige
Edit: I was just being stupid. :-P It all works great now, Many thanks to the both of you! :D