Hi, I was just compiling a map and got this error from hlrad
Exceeded MAX_PATCHES
I know that the limit is 65536 patches, however people have said that using the -sparse command for hlrad allows you to go above this limit. I tried that but by only running hlrad by itself and got an error. My compile log looks like this:
hlcsg v2.5.3 rel Custom Build 1.6.1 (Jul 15 2002)
Zoner's Half-Life Tools -- Custom Build
Based on code modifications by Sean 'Zoner' Cavanaugh
Based on Valve's version, modified with permission.
Submit detailed bug reports to (<A href='http://www.snarkpit.com/"mailto:merlinis@bigpond.net.au/"'>merlinis@bigpond.net.au</A>)
----- BEGIN hlcsg -----
Command line: "C:\\Halflife stuff\\ZHLT Compile GUI\\ZHLT\\HLCSG.EXE""C:\\Halflife stuff\\cs_nnhs_texceiling\\cs_nnhs_texceiling.map"
Entering C:\\Halflife stuff\\cs_nnhs_texceiling\\cs_nnhs_texceiling.map
Current hlcsg Settings
Name | Setting | Default
---------------------|-----------|-------------------------
threads [ 1 ] [ Varies ]
verbose [ off ] [ off ]
log [ on ] [ on ]
developer [ 0 ] [ 0 ]
chart [ off ] [ off ]
estimate [ off ] [ off ]
max texture memory [ 4194304 ] [ 4194304 ]
priority [ Normal ] [ Normal ]
noclip [ off ] [ off ]
null texture stripping[ on ] [ on ]
clipnode economy mode [ on ] [ on ]
onlyents [ off ] [ off ]
wadtextures [ on ] [ on ]
skyclip [ on ] [ on ]
hullfile [ None ] [ None ]
min surface area [ 0.500 ] [ 0.500 ]
brush union threshold [ 0.000 ] [ 0.000 ]
Using mapfile wad configuration
Wadinclude list :
[zhlt.wad]
0 brushes (totalling 0 sides) discarded from clipping hulls
CreateBrush:
(42.97 seconds)
SetModelCenters:
(0.02 seconds)
CSGBrush:
(13.52 seconds)
Using Wadfile: \\half-life\\valve\\halflife.wad
- Contains 77 used textures, 80.21 percent of map (3116 textures in wad)
Using Wadfile: \\half-life\\cstrike\\de_storm.wad
- Contains 0 used textures, 0.00 percent of map (74 textures in wad)
Using Wadfile: \\half-life\\cstrike\\nnhs.wad
- Contains 14 used textures, 14.58 percent of map (39 textures in wad)
Using Wadfile: \\half-life\\cstrike\\chateau.wad
- Contains 0 used textures, 0.00 percent of map (136 textures in wad)
Using Wadfile: \\half-life\\cstrike\\cs_assault.wad
- Contains 1 used texture, 1.04 percent of map (22 textures in wad)
Using Wadfile: \\half-life\\cstrike\\cstrike.wad
- Contains 2 used textures, 2.08 percent of map (123 textures in wad)
Using Wadfile: \\half-life\\cstrike\\de_piranesi.wad
- Contains 2 used textures, 2.08 percent of map (149 textures in wad)
added 15 additional animating textures.
Texture usage is at 0.99 mb (of 4.00 mb MAX)
57.36 seconds elapsed
----- END hlcsg -----
hlbsp v2.5.3 rel Custom Build 1.6.1 (Jul 15 2002)
Zoner's Half-Life Tools -- Custom Build
Based on code modifications by Sean 'Zoner' Cavanaugh
Based on Valve's version, modified with permission.
Submit detailed bug reports to (<A href='http://www.snarkpit.com/"mailto:merlinis@bigpond.net.au/"'>merlinis@bigpond.net.au</A>)
----- BEGIN hlbsp -----
Command line: "C:\\Halflife stuff\\ZHLT Compile GUI\\ZHLT\\HLBSP.EXE""C:\\Halflife stuff\\cs_nnhs_texceiling\\cs_nnhs_texceiling.map"
Current hlbsp Settings
Name | Setting | Default
-------------------|-----------|-------------------------
threads [ 1 ] [ Varies ]
verbose [ off ] [ off ]
log [ on ] [ on ]
developer [ 0 ] [ 0 ]
chart [ off ] [ off ]
estimate [ off ] [ off ]
max texture memory [ 4194304 ] [ 4194304 ]
priority [ Normal ] [ Normal ]
noclip [ off ] [ off ]
nofill [ off ] [ off ]
null tex. stripping [ on ] [ on ]
notjunc [ off ] [ off ]
subdivide size [ 240 ] [ 240 ] (Min 64) (Max 240)
max node size [ 1024 ] [ 1024 ] (Min 64) (Max 4096)
BSP generation successful, writing portal file 'C:\\Halflife stuff\\cs_nnhs_texceiling\\cs_nnhs_texceiling.prt'
44.28 seconds elapsed
----- END hlbsp -----
hlvis v2.5.3 rel Custom Build 1.6 (Jun 3 2002)
Zoner's Half-Life Tools -- Custom Build
Based on code modifications by Sean 'Zoner' Cavanaugh
Based on Valve's version, modified with permission.
Submit detailed bug reports to (<A href='http://www.snarkpit.com/"mailto:merlinis@bigpond.net.au/"'>merlinis@bigpond.net.au</A>)
----- BEGIN hlvis -----
Command line: "C:\\Halflife stuff\\ZHLT Compile GUI\\ZHLT\\HLVIS.EXE""C:\\Halflife stuff\\cs_nnhs_texceiling\\cs_nnhs_texceiling.map"
5551 portalleafs
17554 numportals
-= Current hlvis Settings =-
Name | Setting | Default
-------------------|-----------|-------------------------
threads [ 1 ] [ Varies ]
verbose [ off ] [ off ]
log [ on ] [ on ]
developer [ 0 ] [ 0 ]
chart [ off ] [ off ]
estimate [ off ] [ off ]
max texture memory [ 4194304 ] [ 4194304 ]
max vis distance [ 0 ] [ 0 ]
priority [ Normal ] [ Normal ]
fast vis [ off ] [ off ]
full vis [ off ] [ off ]
BasePortalVis:
(176.16 seconds)
LeafThread:
(97718.89 seconds)
average leafs visible: 638
g_visdatasize:890266 compressed from 3852394
97912.03 seconds elapsed [1d 3h 11m 52s]
----- END hlvis -----
hlrad v2.5.3 rel Custom Build 1.6 (Jun 3 2002)
Zoner's Half-Life Tools -- Custom Build
Based on code modifications by Sean 'Zoner' Cavanaugh
Based on Valve's version, modified with permission.
Submit detailed bug reports to (<A href='http://www.snarkpit.com/"mailto:merlinis@bigpond.net.au/"'>merlinis@bigpond.net.au</A>)
----- BEGIN hlrad -----
Command line: "C:\\Halflife stuff\\ZHLT Compile GUI\\ZHLT\\HLRAD.EXE"-extra -bounce 5 -lights "C:\\Halflife stuff\\cs_nnhs_texceiling\\lights.rad""C:\\Halflife stuff\\cs_nnhs_texceiling\\cs_nnhs_texceiling.map"
-= Current hlrad Settings =-
Name | Setting | Default
--------------------|---------------------|-------------------------
threads [ 1 ] [ Varies ]
verbose [ off ] [ off ]
log [ on ] [ on ]
developer [ 0 ] [ 0 ]
chart [ off ] [ off ]
estimate [ off ] [ off ]
max texture memory [ 4194304 ] [ 4194304 ]
priority [ Normal ] [ Normal ]
vismatrix algorithm [ Original ] [ Original ]
oversampling (-extra)[ on ] [ off ]
bounces [ 5 ] [ 1 ]
ambient light [ 0.000 0.000 0.000 ] [ 0.000 0.000 0.000 ]
maximum light [ 255.000 ] [ 256.000 ]
circus mode [ off ] [ off ]
smoothing threshold [ 50.000 ] [ 50.000 ]
direct threshold [ 25.000 ] [ 25.000 ]
direct light scale [ 2.000 ] [ 2.000 ]
coring threshold [ 1.000 ] [ 1.000 ]
patch interpolation [ on ] [ on ]
texscale [ on ] [ on ]
patch subdividing [ on ] [ on ]
chop value [ 64.000 ] [ 64.000 ]
texchop value [ 32.000 ] [ 32.000 ]
global fade [ 1.000 ] [ 1.000 ]
global falloff [ 2 ] [ 2 ]
global light scale [ 1.000 1.000 1.000 ] [ 1.000 1.000 1.000 ]
global gamma [ 0.500 0.500 0.500 ] [ 0.500 0.500 0.500 ]
global light scale [ 1.000 ] [ 1.000 ]
global sky diffusion [ 1.000 ] [ 1.000 ]
opaque entities [ on ] [ on ]
sky lighting fix [ on ] [ on ]
incremental [ off ] [ off ]
dump [ off ] [ off ]
colour jitter [ 0.0 0.0 0.0 ] [ 0.0 0.0 0.0 ]
monochromatic jitter [ 0.0 0.0 0.0 ] [ 0.0 0.0 0.0 ]
softlight hack [ 0.0 0.0 0.0 0.0 ] [ 0.0 0.0 0.0 0.0 ]
diffuse hack [ on ] [ on ]
spotlight points [ on ] [ on ]
[Reading texlights from 'C:\\Halflife stuff\\cs_nnhs_texceiling\\lights.rad']
[6 texlights parsed from 'C:\\Halflife stuff\\cs_nnhs_texceiling\\lights.rad']
[Reading texlights from 'C:\\Halflife stuff\\cs_nnhs_texceiling\\lights.rad']
Warning: Duplication of texlight '+0~FIFTIES_LGT2' in file 'C:\\Halflife stuff\\cs_nnhs_texceiling\\lights.rad'!
Warning: Duplication of texlight 'YELLOW' in file 'C:\\Halflife stuff\\cs_nnhs_texceiling\\lights.rad'!
Warning: Duplication of texlight '+0~TNNL_LGT1' in file 'C:\\Halflife stuff\\cs_nnhs_texceiling\\lights.rad'!
Warning: Duplication of texlight '+0LAB1_W7' in file 'C:\\Halflife stuff\\cs_nnhs_texceiling\\lights.rad'!
Warning: Duplication of texlight 'LITEPANEL1' in file 'C:\\Halflife stuff\\cs_nnhs_texceiling\\lights.rad'!
Warning: Duplication of texlight '+0~LIGHT4A' in file 'C:\\Halflife stuff\\cs_nnhs_texceiling\\lights.rad'!
[6 texlights parsed from 'C:\\Halflife stuff\\cs_nnhs_texceiling\\lights.rad']
21695 faces
Create Patches : 75040 base patches
0 opaque faces
323188 square feet [46539136.00 square inches]
Error: Exceeded MAX_PATCHES
Description: The map has a problem which must be fixed
Howto Fix: Check the file ZHLTProblems.html for a detailed explanation of this problem
----- END hlrad -----
hlrad v2.5.3 rel Custom Build 1.6 (Jun 3 2002)
Zoner's Half-Life Tools -- Custom Build
Based on code modifications by Sean 'Zoner' Cavanaugh
Based on Valve's version, modified with permission.
Submit detailed bug reports to (<A href='http://www.snarkpit.com/"mailto:merlinis@bigpond.net.au/"'>merlinis@bigpond.net.au</A>)
----- BEGIN hlrad -----
Command line: "C:\\Halflife stuff\\ZHLT Compile GUI\\ZHLT\\HLRAD.EXE"-sparse -extra -bounce 5 -lights "C:\\Halflife stuff\\cs_nnhs_texceiling\\lights.rad""C:\\Halflife stuff\\cs_nnhs_texceiling\\cs_nnhs_texceiling.map"
There was a problem compiling the map.
Check the file C:\\Halflife stuff\\cs_nnhs_texceiling\\cs_nnhs_texceiling.log for the cause.
----- END hlrad -----
The second appearance of hlrad was because I tried to run it again by itself but it wouldn't work.
Is there any way I can run this without having to run csg, bsp and vis?...vis took me over a day to finish and I'd rather not go through that again.
One more thing, I didn't use a sky box to enclose my map.
EDIT
The problem i'm having here is that it won't let me run hlrad by itself, it just goes directly to a pop up message that says my map has an error despite the fact that it ran csg, bsp and vis successfully. Is this a case where I have to run all the compile tools again?? Because if it is...that would suck.
Thanks in advance.