HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Strange "unexpected token" - Error -> need your help

07-19-2006, 01:18 PM#1
MasterofSickness
This error appears when I convert a special mdx to mdl, then after deleting the head with format version and so, so that the first line begins with Model "..." and trying to convert it back to mdx, this strange error appears:
(I'm using "Warcraft III File Format Converter v2.1 by YobGuls" [War3FileConverter] )
Click image for larger version

Name:	error.JPG
Views:	18
Size:	195.6 KB
ID:	9485
If I just try to export the original mdl back to mdx then it works ... hé ?

EDIT:
This is the beginning part of the working mdl (mdl to mdx and also back again works):
Code:
Version {
	FormatVersion 800,
}
Model "PlanesOfWater" {
	NumGeosets 3,
	NumGeosetAnims 3,
	NumBones 1,
	NumParticleEmitters2 1,
	BlendTime 150,
	MinimumExtent { -158.594, -111.444, -98.8451 },
	MaximumExtent { 135.975, 152.285, 200.921 },
}
Sequences 2 {
	Anim "Stand" {
		Interval { 130000, 133333 },
		MinimumExtent { -158.594, -111.444, -98.8451 },
		MaximumExtent { 135.975, 152.285, 200.921 },
		BoundsRadius 212.321,
	}
	Anim "Death" {
		Interval { 150000, 150833 },
		NonLooping,
		MinimumExtent { -158.594, -111.444, -98.8451 },
		MaximumExtent { 135.975, 152.285, 200.921 },
		BoundsRadius 212.321,
	}
}
GlobalSequences 2 {
	Duration 33333,
	Duration 3735,
}
Textures 50 {
.
.
.

And when I remove this "FormatVersion" thing the error happens (I change nothing else!):
Code:
Model "PlanesOfWater" {
	NumGeosets 3,
	NumGeosetAnims 3,
	NumBones 1,
	NumParticleEmitters2 1,
	BlendTime 150,
	MinimumExtent { -158.594, -111.444, -98.8451 },
	MaximumExtent { 135.975, 152.285, 200.921 },
}
Sequences 2 {
	Anim "Stand" {
		Interval { 130000, 133333 },
		MinimumExtent { -158.594, -111.444, -98.8451 },
		MaximumExtent { 135.975, 152.285, 200.921 },
		BoundsRadius 212.321,
	}
	Anim "Death" {
		Interval { 150000, 150833 },
		NonLooping,
		MinimumExtent { -158.594, -111.444, -98.8451 },
		MaximumExtent { 135.975, 152.285, 200.921 },
		BoundsRadius 212.321,
	}
}
GlobalSequences 2 {
	Duration 33333,
	Duration 3735,
}
Textures 50 {
.
.
.


What's goin' on?
Attached Images
File type: jpgerror.JPG (195.6 KB)
07-19-2006, 04:03 PM#2
Guesst
Well, you need the FormatVersion bit. Why are you taking it out? The errors in Yobguls don't usually reflect what's going on, so don't expect that error to make any sense.
07-19-2006, 05:23 PM#3
map-maker
in my experience with converting, unexpected token means it either found something extra an extra } or { for example out somewhere you dont need..some numbers somewhere you dont need or whatever.that or it didnt find something you need. like..the format version you deleted. you need that in your model
07-19-2006, 08:32 PM#4
MasterofSickness
Why do I need that?

I have another model without it and it works flawlessly!
What does the FormatVersion do and why does that other model work without it?
07-19-2006, 08:33 PM#5
Guesst
FormatVersion is to say what version of MDX. I have no idea why a model would work without that.
07-20-2006, 11:06 AM#6
Rao Dao Zao
Models that work without certain header sections are a rarity. You've got to ask yourself; why remove it? It's not doing any harm.
07-20-2006, 12:01 PM#7
DD_Draco
Yes, but it looks cool without it :P
07-20-2006, 12:19 PM#8
MasterofSickness
Ok, so then I will use the FormatVersion row.
The reason why I wanted to delete it was, that this other model worked without the FormatVersion-row and so I thought that models don't need this information. But now, from what you told, I will use FormatVersion.

Thanks for replying! ma friendz