Game Development Community

Map2Dif help

by Howard Dortch · in Torque Game Engine · 06/01/2004 (2:17 pm) · 18 replies

I'm trying to get map2dif to work with no success. I used a map file that came with the demo and tried all the switches I could think of and it wont make a dif file can anyone tell me how this thing works?

interiorres.cc @214 is the crash lised on the window.

I use this form

map2dif -t c:\torque block1.map

#1
06/01/2004 (11:26 pm)
Open a dosprompt and run map2dif then you get some information
othervise try to use

map2dif -v -h -o mapdir -t texturedir yourmap.map
#2
06/01/2004 (11:36 pm)
What map file is that? I've yet to see that one I think.
Either way, the exporter has a problem writing the detail level to stream.

The first thing that struck me was that; are you sure that is the correct map file and not a corrupt one or outdated?
#3
06/02/2004 (4:25 am)
Thanks Billy the -v seemed to be the magic trick. What does -v do anyhow?

I was using a map from the demo Stefan so I assumed it would work.

This is a very key part of being able to use this engine. If you can't get the assets in the game there is no point to it. Now I have to teach my artist to use DOS. Will this tool be enhanced/upgraded any time soon? Our world depends on it.
#4
06/02/2004 (4:45 am)
Howard,

The -v actualy does nothing, it is only on the parameter message it is shown.

the 'trick' is that you have to specify -o otherwise it takes your input filename and uses that as the base.

so in your first case

map2dif -t c:\torque block1.map

it tried to open a file for writing block1.map\block1.dif

of course it can't do this, so it gives you the error in interiorres.cc.

also, did you copy your textures to the diretory c:\torque? because that is where you are tell it to look for the textures.



Quote:
This is a very key part of being able to use this engine. If you can't get the assets in the game there is no point to it. Now I have to teach my artist to use DOS. Will this tool be enhanced/upgraded any time soon? Our world depends on it.

Why dont you put a simple tool together that can act as a frontend and pass the command line parameters then?
#5
06/02/2004 (5:10 am)
If you dont like the dosprompt.
Get this map2mapguiInterface
#6
06/02/2004 (5:29 am)
Ah the output filename did the trick! Thanks all for your help

Billy! good job there on the front end Gui for that, my artist will be really happy, he owes ya a beer!
#7
03/03/2006 (11:20 am)
I used that program and installed it and ran all the things, filled in al the things for where the .map file is, textures output directory etc. and it ran the command line and chucked me out saying . "Parsing mapfile...Error processing entity brushlist on or near line : C:\Documents\my documents\sewers.map: 5Error parsing map dile: C:\Documents\my documents\sewers.map

C:\>[pause
Press any key to continue"

what i have done wrong, and how can i correct this problem, it's really annoying me now...
#8
03/05/2006 (5:50 am)
Any help please?
#9
03/05/2006 (8:03 am)
Hey Charles,

the problem is, in your map file is an error. And with this info nobody can help you, this is like you go to a repair shop with our car and tell them your car don't run.
Can you give some more infos ? Which Editor do you use to create your map file ?
#10
03/05/2006 (9:21 am)
Im using radiant to make my maps, and i'm just using the .map file that radiant saves, no export from radiant, sorry, hope you can help, it's probably my lack of experience, do i need to export from radiant instead of using the saved .map file? cheers any help is greatly appreciated
#11
03/05/2006 (12:04 pm)
I think radiant's map file format is different from the format used in quark or hammer. That could be your problem. I'm sure I read on these forums before how to convert. Perhaps try opening it in quark, saving it, and then running map2dif...?

Anyway, I'm pretty much a noob when it comes to making maps.

Radiant is free now, isn't it?
#12
03/05/2006 (12:45 pm)
Maybe Joe is write, I don't know what map version Radiant saves.
map2dif only reads Valves Map Version 220, also the changes are really high that Radiant uses other entities and or write other scructures.

Radiant is now under GPL lizenz (i think), but to work with Torque someone have to write a plugin or configuration file for Radiant. So that Radiant can use the Torque Entities and write the fitting map files.

So, till than QuArK is your friend.


[edit]
just out of curiosity, can you send me a Radiant map file.
maybe just some simple boxes and a light
[/edit]
#13
03/05/2006 (1:15 pm)
Are you using map2dif or map2dif_plus?

Map2dif plus that comes with 1.4 supports more .map formats including quake etc. I'm not sure about the entity types, but you should be able to get your BSP geometry to convert properly.

Strangely I found that .map files saved from A6 gamestudios WED editor the most accurate with Map2dif_plus than quark, hammer, or radiant.
#14
03/05/2006 (11:14 pm)
Im using the map2dif GUI application, it's not a command file any more, it's an application that you run and choose where all the locations are and tick boxes for lighting etc. could that be my problem
#15
03/05/2006 (11:39 pm)
Could be. Try it with the plain old command-line map2dif, or try the QuArK route as I outlined.
#16
03/06/2006 (9:09 am)
QuArK Doesn't work for me for some odd reason, the installer file quits when you try and run it, that's why im trying radiant... and i'll try to convert my map using map2dif instead, and i'll try map2dif plus too, by the way i have map2dif, where do i get map2dif plus???
#17
03/06/2006 (11:21 am)
For TGE:
Here

For TSE:
Here
#18
03/06/2006 (11:08 pm)
Cheers thanks, i'll try it tonight, thanks again