Chapter 17 - Making Structures
by Jeremy Berry · in Torque Game Engine · 12/25/2004 (3:33 am) · 6 replies
Could not get the newmap.dif into torque as outlined on pg. 504, 505. The model does not show up.
However, here's the console msg in quark when execute Build DIF only:
Successfully opened map file: ./maps/newmap.map
Parsing mapfile...done.
Creating BSP...done.
Marking active zones...done
Creating surfaces...done.
Lightmaps: Normal...Alarm...done.
Resorting and Packing LightMaps...done.
STATISTICS
- Total brushes: 13
+ structural: 8
+ detail: 4
+ portal: 1
- Number of zones: 2
- Number of surfaces: 52
** *** WARNING WARNING WARNING *** **
*** ** WARNING WARNING WARNING ** ***
Errors exists in this interior. Please use the debug rendering modes
to find and correct the following problems:
* Ambiguous brushes: 0
* Orphaned Polygons: 39
*** ** WARNING WARNING WARNING ** ***
** *** WARNING WARNING WARNING *** **
Exporting to runtime...done.
Writing Resource: persist..(./maps/newmap.dif) Done.
Anyone has any problems with this? Dont know what the error msg means.
However, here's the console msg in quark when execute Build DIF only:
Successfully opened map file: ./maps/newmap.map
Parsing mapfile...done.
Creating BSP...done.
Marking active zones...done
Creating surfaces...done.
Lightmaps: Normal...Alarm...done.
Resorting and Packing LightMaps...done.
STATISTICS
- Total brushes: 13
+ structural: 8
+ detail: 4
+ portal: 1
- Number of zones: 2
- Number of surfaces: 52
** *** WARNING WARNING WARNING *** **
*** ** WARNING WARNING WARNING ** ***
Errors exists in this interior. Please use the debug rendering modes
to find and correct the following problems:
* Ambiguous brushes: 0
* Orphaned Polygons: 39
*** ** WARNING WARNING WARNING ** ***
** *** WARNING WARNING WARNING *** **
Exporting to runtime...done.
Writing Resource: persist..(./maps/newmap.dif) Done.
Anyone has any problems with this? Dont know what the error msg means.
#2
Unable to read detail level 0 in interior resource
Unable to load interior: control/data/structures/hovels/newmap.dif
What is this detail level 0??? Just couldnt load that dif into torque.
12/25/2004 (10:38 pm)
The error in torque goes:Unable to read detail level 0 in interior resource
Unable to load interior: control/data/structures/hovels/newmap.dif
What is this detail level 0??? Just couldnt load that dif into torque.
#3
in Quark you left click "worldspawn" in the tree view and click "specifics"
you may need to add the specific:
detail_number
and set its argument to 0 (zero).
12/26/2004 (1:27 pm)
In the map properties for the interior yiu need to make sure the detail level is set to 0. in Quark you left click "worldspawn" in the tree view and click "specifics"
you may need to add the specific:
detail_number
and set its argument to 0 (zero).
#4
thanks for your help. However, the detail level is already set to 0, and it is still not working.
I realised the problem was due to the map2dif builds that i use. Here's what I found:
1. Using release build map2dif.exe in torque release 1.1.3, which I use previously, it does not work.
2. Using debug build map2dif_DEBUG compiled using visual c++.net 2002, it crashes when building the dif in quark, though it compiles successfully in visual studio.
3. Using the map2dif_DEBUG as given by the book, it works perfectly! There were no error msg from quark either, and the dif appears finally in torque.
So I was wondering if visual studio was causing the problem? I'm using enterprise architect 2002 edition.
12/26/2004 (6:32 pm)
Hi David, thanks for your help. However, the detail level is already set to 0, and it is still not working.
I realised the problem was due to the map2dif builds that i use. Here's what I found:
1. Using release build map2dif.exe in torque release 1.1.3, which I use previously, it does not work.
2. Using debug build map2dif_DEBUG compiled using visual c++.net 2002, it crashes when building the dif in quark, though it compiles successfully in visual studio.
3. Using the map2dif_DEBUG as given by the book, it works perfectly! There were no error msg from quark either, and the dif appears finally in torque.
So I was wondering if visual studio was causing the problem? I'm using enterprise architect 2002 edition.
#5
12/28/2004 (6:55 pm)
I would take this to the code forums.. not the general ones. Glad you found a working method though.
#6
03/22/2005 (7:42 pm)
My structure just doesn't show up period
David Loomis