Map2dif problem
by Jon Uhal · in Torque Game Engine · 09/27/2003 (7:45 pm) · 6 replies
This is a simple problem with trying to take a map I made and change it to a dif file. I have the directory structure setup as follows:
d:\worldcraft\maps\ - worldcraft 3.3 maps
d:\crystal\wads\ - wad files used for the maps
d:\projects\torque\ - location of Torque SDK
Within my Torque directory, I have been using VC6 to compile and run the demo in DEBUG mode, the same with mad2dif. When I run map2dif, I get the help options, so I know that I'm running that okay. When I try to change my .map file to a .dif file, I am running the command (from d:\projects\torque\tools\):
map2dif_debug -s -t d:\crystal\wads\ -o d:\worldcraft\maps\ d:\worldcraft\maps\stadium.map
The output to the command is:
Successfully opened map file: d:\worldcraft\maps\stadium.map
Parsing mapfile...
The response I get to this is a pop-up box that says:
title Fatal-ISV(d:\projects\torque\tools\map2dif\editgeometry.cc @ 488)
message Unable to find texture "CSTRIKE_FJ2DOCK" (.png or .jpg)
The only way I was able to ever get the .dif file built is to comment the ASSERT that is listed at the line number in the GUI pop-up (editgeometry.cc @ 488). I basically did this to find out if my file was parseable by the mad2dif program without the texture problem. Since that worked, I've been trying to figure this wad problem out myself. I've basically run into a wall here trying to get a dif file to load into Torque.
I've posted my map file on my server for anyone to look at to see if they find an issue. Also up there is the wad file I am trying to use. Let me know...
d:\worldcraft\maps\ - worldcraft 3.3 maps
d:\crystal\wads\ - wad files used for the maps
d:\projects\torque\ - location of Torque SDK
Within my Torque directory, I have been using VC6 to compile and run the demo in DEBUG mode, the same with mad2dif. When I run map2dif, I get the help options, so I know that I'm running that okay. When I try to change my .map file to a .dif file, I am running the command (from d:\projects\torque\tools\):
map2dif_debug -s -t d:\crystal\wads\ -o d:\worldcraft\maps\ d:\worldcraft\maps\stadium.map
The output to the command is:
Successfully opened map file: d:\worldcraft\maps\stadium.map
Parsing mapfile...
The response I get to this is a pop-up box that says:
title Fatal-ISV(d:\projects\torque\tools\map2dif\editgeometry.cc @ 488)
message Unable to find texture "CSTRIKE_FJ2DOCK" (.png or .jpg)
The only way I was able to ever get the .dif file built is to comment the ASSERT that is listed at the line number in the GUI pop-up (editgeometry.cc @ 488). I basically did this to find out if my file was parseable by the mad2dif program without the texture problem. Since that worked, I've been trying to figure this wad problem out myself. I've basically run into a wall here trying to get a dif file to load into Torque.
I've posted my map file on my server for anyone to look at to see if they find an issue. Also up there is the wad file I am trying to use. Let me know...
#2
Also, how are you building your wad?
09/28/2003 (10:18 am)
@Gilles, textures do not have to be in the same folder as the exported dif. Nor do they have to be in the same interiors folder to run torque. However, I believe that map2dif expects to find a /maps folder (where the .map file is located) right below it's location in spite of the command-line functions. I moved map2dif to be right above /maps in my quark setup. Also, how are you building your wad?
#3
09/28/2003 (11:10 am)
This was a pre-built wad that I grabbed when I was setting up Worldcraft. I don't remember where I got it exactly, but it was from a walkthrough that helped me setup Worldcraft. Not a GG walkthrough, but one I found when I downloaded Worldcraft.
#4
d:\projects\torque\example\fps\data\interiors\test\maps\stadium.map
d:\projects\torque\example\fps\data\interiors\test\maps\cstex_2.wad
d:\projects\torque\example\fps\data\interiors\test\cstex_2.wad
I put the wad file into both locations (same dir as the map and the parent dir) just to make sure that it would check in either directory for at least one of them. I then ran the commands:
map2dif_debug -s -t ..\example\fps\data\interiors\test\ -o ..\example\fps\data\interiors\test\maps\ ..\example\fps\data\interiors\test\maps\stadium.map
map2dif_debug -t ..\example\fps\data\interiors\test\ -o ..\example\fps\data\interiors\test\maps\ ..\example\fps\data\interiors\test\maps\stadium.map
map2dif_debug -o ..\example\fps\data\interiors\test\maps\ ..\example\fps\data\interiors\test\maps\stadium.map
map2dif_debug ..\example\fps\data\interiors\test\maps\stadium.map
Just to get the same results that I couldn't find the texture file from the first post.
09/28/2003 (11:26 am)
Here's what I tried with the suggestions above. I moved my files to the locations before:d:\projects\torque\example\fps\data\interiors\test\maps\stadium.map
d:\projects\torque\example\fps\data\interiors\test\maps\cstex_2.wad
d:\projects\torque\example\fps\data\interiors\test\cstex_2.wad
I put the wad file into both locations (same dir as the map and the parent dir) just to make sure that it would check in either directory for at least one of them. I then ran the commands:
map2dif_debug -s -t ..\example\fps\data\interiors\test\ -o ..\example\fps\data\interiors\test\maps\ ..\example\fps\data\interiors\test\maps\stadium.map
map2dif_debug -t ..\example\fps\data\interiors\test\ -o ..\example\fps\data\interiors\test\maps\ ..\example\fps\data\interiors\test\maps\stadium.map
map2dif_debug -o ..\example\fps\data\interiors\test\maps\ ..\example\fps\data\interiors\test\maps\stadium.map
map2dif_debug ..\example\fps\data\interiors\test\maps\stadium.map
Just to get the same results that I couldn't find the texture file from the first post.
#5
d:\projects\torque\example\fps\data\interiors\test\maps\stadium.map
d:\projects\torque\example\fps\data\interiors\test\*.png
I then ran the command:
map2dif_debug -o ..\example\fps\data\interiors\test\maps\ ..\example\fps\data\interiors\test\maps\stadium.map
Which it then ran the map2dif correctly and outputted the dif file to the maps directory. Now I just need to find the instructions on how to load the dif file...
09/28/2003 (11:39 am)
Well, here's how I think I got this issues solved. I downloaded a program that I found by searching google for a WAD extractor. I first got some program named deu and it blows. Then I got some program named wally. This had a nice GUI frontend and allowed me to browse my WAD file in search of the problem textures. Well, they are definetly in the WAD file, so I exported them as .png files and put them into the parent directory to the map file. So now I have the structure:d:\projects\torque\example\fps\data\interiors\test\maps\stadium.map
d:\projects\torque\example\fps\data\interiors\test\*.png
I then ran the command:
map2dif_debug -o ..\example\fps\data\interiors\test\maps\ ..\example\fps\data\interiors\test\maps\stadium.map
Which it then ran the map2dif correctly and outputted the dif file to the maps directory. Now I just need to find the instructions on how to load the dif file...
#6
[edit] Oupss, you already got it. Nice. [/edit]
09/28/2003 (11:40 am)
What I mean is that you need the png and/or jpg, not just the wad file. I can reproduce the same error by removing my textures from my dif directory.[edit] Oupss, you already got it. Nice. [/edit]
Torque Owner Gilles Jr Lafrance
Gilles Jr