Game Development Community

Unable to Write Detail Level to Stream with map2dif.. Please hel

by Dave Calabrese · in Torque Game Engine · 06/18/2002 (10:34 am) · 1 replies

Whenever I run map2dif, I now get the error "unable to write detail level to stream" as a popup window.

The following is the active on-screen detail...


Successfully opened map file: new1.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: 2
+ structural: 2
+ detail: 0
+ portal: 0
- Number of zones: 1
- Number of surfaces: 22

** *** 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: 12

*** ** WARNING WARNING WARNING ** ***
** *** WARNING WARNING WARNING *** **

Exporting to runtime...done.

Writing Resource: persist..(new1.map/new1.dif)

And inside my .Map file it reads:

{
"classname" "worldspawn"
"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"
"wad" "\temp\newtex.wad"
{
( 640 -640 192 ) ( -704 -640 192 ) ( -704 320 192 ) RUSTED_METAL_01 [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 1 1
( 768 448 0 ) ( -832 448 0 ) ( -832 -768 0 ) RUSTED_METAL_01 [ -1 0 0 0 ] [ 0 -1 0 0 ] 0 1 1
( -832 -768 0 ) ( -832 448 0 ) ( -704 320 192 ) RUSTED_METAL_01 [ 0 -1 0 0 ] [ 0 0 -1 0 ] 0 1 1
( 640 -640 192 ) ( 640 320 192 ) ( 768 448 0 ) RUSTED_METAL_01 [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 1 1
( -832 448 0 ) ( 768 448 0 ) ( 640 320 192 ) RUSTED_METAL_01 [ -1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1
( -704 -640 192 ) ( 640 -640 192 ) ( 768 -768 0 ) RUSTED_METAL_01 [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1
}
{
( -704 -384 800 ) ( -704 64 800 ) ( -448 320 800 ) STONE_01 [ 1 0 0 0 ] [ 0 -1 0 0 ] 0 1 1
( -704 64 192 ) ( -704 -384 192 ) ( -448 -640 192 ) STONE_01 [ -1 0 0 0 ] [ 0 -1 0 0 ] 0 1 1
( -704 -384 192 ) ( -704 64 192 ) ( -704 64 800 ) STONE_01 [ 0 -1 0 0 ] [ 0 0 -1 0 ] 0 1 1
( 640 64 192 ) ( 640 -384 192 ) ( 640 -384 800 ) STONE_01 [ 0 1 0 0 ] [ 0 0 -1 0 ] 0 1 1
( -448 320 192 ) ( 384 320 192 ) ( 384 320 800 ) STONE_01 [ -1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1
( 384 -640 192 ) ( -448 -640 192 ) ( -448 -640 800 ) STONE_01 [ 1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1
( -448 -640 192 ) ( -704 -384 192 ) ( -704 -384 800 ) STONE_01 [ 0.707107 -0.707107 0 0 ] [ 0 0 -1 0 ] 0 1 1
( 640 -384 192 ) ( 384 -640 192 ) ( 384 -640 800 ) STONE_01 [ 0.707107 0.707107 0 0 ] [ 0 0 -1 0 ] 0 1 1
( 384 320 192 ) ( 640 64 192 ) ( 640 64 800 ) STONE_01 [ -0.707107 0.707107 0 0 ] [ 0 0 -1 0 ] 0 1 1
( -704 64 192 ) ( -448 320 192 ) ( -448 320 800 ) STONE_01 [ -1 0 0 0 ] [ 0 0 -1 0 ] 0 1 1
}
}


Thanks in advance for any help!!

#1
06/18/2002 (7:16 pm)
You haven't specified the detail_number in the WorldSpawn section. The detail_number should be set to 0 for your highest detail map, 1 for the next lower detail, and so on.

Although you're using WorldCraft or Hammer, you might want to read this short tut on LOD:
holodeck.st.usm.edu/vrcomputing/vrc_t/tutorials/editing/
Look under Optimizing Framerate for the section on LOD.

P.S. Before you fix the prob, could you send me a screenCapture of the error message? Thanks