Problem with map2dif...
by James Urquhart · in Torque Game Engine · 10/29/2003 (1:43 pm) · 4 replies
Hi there,
I am trying to convert the .map file i exported from Quark (using the "Export MapFile Only" menu option)
However, when i run map2dif on the file, it gives me the error :
I am currently running map2dif like so :
I have no idea why this error occurs. It does not occur on the .map files included with torque, so i assume its a problem with my .map...
I exported the map from quark running on my windows machine to a samba share on my linux machine. I am using the linux machine to do the map building.
Here is the start of my .map file currently :
Anyone have any idea whats wrong?
Thanks for any help.
I am trying to convert the .map file i exported from Quark (using the "Export MapFile Only" menu option)
However, when i run map2dif on the file, it gives me the error :
Quote:
Successfully opened map file: ../tmpQuArK/maps/newmap.map
Parsing mapfile...Error processing entity brushlist on or near line: ../tmpQuArK/maps/newmap.map: 10Error parsing map file: ../tmpQuArK/maps/newmap.map
I am currently running map2dif like so :
./map2dif.bin -t ../tmpQuArK/textures -o ../ -q 220 ../tmpQuArK/maps/newmap.map
I have no idea why this error occurs. It does not occur on the .map files included with torque, so i assume its a problem with my .map...
I exported the map from quark running on my windows machine to a samba share on my linux machine. I am using the linux machine to do the map building.
Here is the start of my .map file currently :
{
"classname" "worldspawn"
"detail_number" "0"
"min_pixels" "250"
"geometry_scale" "32.0"
"light_geometry_scale" "32.0"
"ambient_color" "0 0 0"
"emergency_ambient_color" "0 0 0"
"mapversion" "220"
{
( -224 0 128 ) ( -224 128 128 ) ( -96 0 128 ) Wall64 224 0 0 1 1
( -224 0 -128 ) ( -96 0 -128 ) ( -224 128 -128 ) Wall64 224 0 0 1 1
( -224 144 0 ) ( -96 144 0 ) ( -224 144 128 ) Wall64 224 0 0 1 1
( -224 -128 0 ) ( -224 -128 128 ) ( -96 -128 0 ) Wall64 224 0 0 1 1
( -208 0 0 ) ( -208 0 128 ) ( -208 128 0 ) Wall64 0 0 0 1 1
( -224 0 0 ) ( -224 128 0 ) ( -224 0 128 ) Wall64 0 0 0 1 1
}
{... More Stuff ...}Anyone have any idea whats wrong?
Thanks for any help.
About the author
#2
3a) I am using the linux box since i do all my compiling on it. I find it much less of a hastle than doing a seperate compile in vc++. I also have a nice script i made to automate the interior compile process when i have changed an interior.
3b) I am using the "Prepare Textures" and "Export MapFile Only" options from quark, then using an update script i made to recompile the interior (if the map file changed)
4) The folder structure seems to work fine for what im doing. I'm really setting the output directory to
5) Thanks, i'll remember that next time ;)
Thanks for your help =)
10/31/2003 (2:16 pm)
Thanks Desmond, but i solved the problem earlier (remember?)3a) I am using the linux box since i do all my compiling on it. I find it much less of a hastle than doing a seperate compile in vc++. I also have a nice script i made to automate the interior compile process when i have changed an interior.
3b) I am using the "Prepare Textures" and "Export MapFile Only" options from quark, then using an update script i made to recompile the interior (if the map file changed)
4) The folder structure seems to work fine for what im doing. I'm really setting the output directory to
5) Thanks, i'll remember that next time ;)
Thanks for your help =)
#3
So for everyone else's benefit, the problem was item 1 since you are using QuArK to export the map file, QuArK needs to be configured to Valve220 format.
Also, there is no switch for -q 220 (unless you custom added that--is that the case?).
10/31/2003 (3:22 pm)
LOL, yeah, now I'm back on the planet :) So for everyone else's benefit, the problem was item 1 since you are using QuArK to export the map file, QuArK needs to be configured to Valve220 format.
Also, there is no switch for -q 220 (unless you custom added that--is that the case?).
#4
I added a -q switch because i kept trying to get the map to compile =)
10/31/2003 (3:46 pm)
Desmond,I added a -q switch because i kept trying to get the map to compile =)
Torque Owner Desmond Fletcher
fletcher
2. There is no -q 220 switch as far as I know.
3. Is there a map2dif.bin? I thought it was map2dif.exe...and, is it set up that way in QuArK configuration?
Ahhh, I see--you're using your Linux box to do the compile...interesting.
3a. Is that because it has more horsepower than your Windoze box or you are just using the Wbox to run QuArK?
3b. How are you pointing to ./map2dif.bin from QuArk? Where is QuArK located>
4. I'm not sure your folder structure is quite right for the location of map2dif...check out this documentation:
www.garagegames.com/docs/torque.sdk/tools/quark/chapter2.html
Hmmm, after rereading your post above, I should add some to the tutorial for Linux users. I will investigate this! But for now I think your problem is in 1. above.
5. You might also want to look at the mapping forum; most recently addressing these issues:
www.garagegames.com/mg/forums/result.thread.php?qt=6010
This thread would be more useful there I think.