Too Many Direct Light Styles Error

sickboysickboy Join Date: 2003-09-13 Member: 20804Members, Constellation
Okay, I'm not a total nublet to mapping, but this error is starting to drive me nuts. I'll compile the map and everything will be fine... then it'll start posting:

Warning: Too many direct light styles on a face(?,?,?)

over and over and over. It does this for a grand total of 40 MEGS of text in my error log.

Perhaps I'm wrong, but I thought that error is caused by having more than 3 DIFFERENT lighting entities in one area. I've triple checked all my lights and I've even tried making them all EXACTLY the same (except for the light name).

I'll post part of the error log (and just make a note where all the thousands of "Warning: Too many direct light styles on a face(?,?,?)" lines.


<!--QuoteBegin--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> </td></tr><tr><td id='QUOTE'><!--QuoteEBegin-->
hlcsg v2.5.3 rel Custom Build 1.7 (Dec  9 2002)
Zoner's Half-Life Compilation Tools -- Custom Build
Based on code modifications by Sean 'Zoner' Cavanaugh
Based on Valve's version, modified with permission.
Submit detailed bug reports to (merlinis@bigpond.net.au)
-----  BEGIN  hlcsg -----
Command line: "C:\Documents and Settings\Owner\Desktop\ZHLT\hlcsg.exe"-wadinclude zhlt.wad -wadinclude signs.wad -wadinclude blacksofa.wad -wadinclude dw2.wad -wadinclude tm_harbor.wad -wadinclude TS_ph.wad -wadinclude DM_citedal.wad -wadinclude blazcity.wad -wadinclude Blazurban.wad -chart "C:\Documents and Settings\Owner\Desktop.map"
Entering C:\Documents and Settings\Owner\Desktop.map

Current hlcsg Settings
Name                |  Setting  |  Default
---------------------|-----------|-------------------------
threads              [      1 ] [  Varies ]
verbose              [    off ] [    off ]
log                  [      on ] [      on ]
developer            [      0 ] [      0 ]
chart                [      on ] [    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]
[zhlt.wad]
[signs.wad]
[blacksofa.wad]
[dw2.wad]
[tm_harbor.wad]
[TS_ph.wad]
[DM_citedal.wad]
[blazcity.wad]
[Blazurban.wad]

10 brushes (totalling 60 sides) discarded from clipping hulls
CreateBrush:
(2.73 seconds)
SetModelCenters:
(0.00 seconds)
CSGBrush:
(1.42 seconds)

Object names  Objects/Maxobjs  Memory / Maxmem  Fullness
------------  ---------------  ---------------  --------
models              0/400            0/25600    ( 0.0%)
planes          8072/32767    161440/655340  (24.6%)
vertexes            0/65535          0/786420  ( 0.0%)
nodes              0/32767          0/786408  ( 0.0%)
texinfos          961/32767      38440/1310680  ( 2.9%)
faces              0/65535          0/1310700  ( 0.0%)
clipnodes          0/32767          0/262136  ( 0.0%)
leaves              0/8192          0/229376  ( 0.0%)
marksurfaces        0/65535          0/131070  ( 0.0%)
surfedges          0/512000        0/2048000  ( 0.0%)
edges              0/256000        0/1024000  ( 0.0%)
texdata          [variable]          0/4194304  ( 0.0%)
lightdata        [variable]          0/4194304  ( 0.0%)
visdata          [variable]          0/2097152  ( 0.0%)
entdata          [variable]          0/524288  ( 0.0%)
0 textures referenced
=== Total BSP file data space used: 199880 bytes ===

Including Wadfile: \sierra\half-life\ts\ts_ph.wad
- Contains 3 used textures, 2.03 percent of map (126 textures in wad)
Using Wadfile: \sierra\half-life\ts\specialists.wad
- Contains 9 used textures, 6.08 percent of map (116 textures in wad)
Including Wadfile: \sierra\half-life\zhlt.wad
- Contains 0 used textures, 0.00 percent of map (2 textures in wad)
Using Wadfile: \sierra\half-life\valve\halflife.wad
- Contains 97 used textures, 65.54 percent of map (3116 textures in wad)
Including Wadfile: \sierra\half-life\ts\blacksofa.wad
- Contains 2 used textures, 1.35 percent of map (2 textures in wad)
Including Wadfile: \sierra\half-life\ts\dw2.wad
- Contains 0 used textures, 0.00 percent of map (7 textures in wad)
Including Wadfile: \sierra\half-life\ts\tm_harbor.wad
- Contains 8 used textures, 5.41 percent of map (125 textures in wad)
Including Wadfile: \sierra\half-life\ts\blazcity.wad
- Contains 6 used textures, 4.05 percent of map (29 textures in wad)
Including Wadfile: \sierra\half-life\ts\blazurban.wad
- Contains 17 used textures, 11.49 percent of map (72 textures in wad)
Including Wadfile: \documents and settings\owner\desktop\dm_citedal.wad
- Contains 1 used texture, 0.68 percent of map (68 textures in wad)
Including Wadfile: \documents and settings\owner\desktop\signs.wad
- Contains 4 used textures, 2.70 percent of map (6 textures in wad)

Warning: More than 8 wadfiles are in use. (11)
This may be harmless, and if no strange side effects are occurring, then
it can safely be ignored. However, if your map starts exhibiting strange
or obscure errors, consider this as suspect.


added 17 additional animating textures.
Warning: ::FindTexture() texture TECH_W4 not found!
Warning: ::LoadLump() texture TECH_W4 not found!
Texture usage is at 3.84 mb (of 4.00 mb MAX)
4.73 seconds elapsed

-----  END  hlcsg -----



hlbsp v2.5.3 rel Custom Build 1.7 (Dec  9 2002)
Zoner's Half-Life Compilation Tools -- Custom Build
Based on code modifications by Sean 'Zoner' Cavanaugh
Based on Valve's version, modified with permission.
Submit detailed bug reports to (merlinis@bigpond.net.au)
-----  BEGIN  hlbsp -----
Command line: "C:\Documents and Settings\Owner\Desktop\ZHLT\hlbsp.exe"-chart "C:\Documents and Settings\Owner\Desktop.map"

Current hlbsp Settings
Name              |  Setting  |  Default
-------------------|-----------|-------------------------
threads            [      1 ] [  Varies ]
verbose            [    off ] [    off ]
log                [      on ] [      on ]
developer          [      0 ] [      0 ]
chart              [      on ] [    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 512)
max node size      [    1024 ] [    1024 ] (Min 64) (Max 4096)


BSP generation successful, writing portal file 'C:\Documents and Settings\Owner\Desktop.prt'

Object names  Objects/Maxobjs  Memory / Maxmem  Fullness
------------  ---------------  ---------------  --------
models            75/400        4800/25600    (18.8%)
planes          8072/32767    161440/655340  (24.6%)
vertexes        8131/65535      97572/786420  (12.4%)
nodes            3193/32767      76632/786408  ( 9.7%)
texinfos          961/32767      38440/1310680  ( 2.9%)
faces            5729/65535    114580/1310700  ( 8.7%)
clipnodes        8027/32767      64216/262136  (24.5%)
leaves          2202/8192      61656/229376  (26.9%)
marksurfaces    7726/65535      15452/131070  (11.8%)
surfedges      27083/512000    108332/2048000  ( 5.3%)
edges          13812/256000    55248/1024000  ( 5.4%)
texdata          [variable]    2696004/4194304  (64.3%)
lightdata        [variable]          0/4194304  ( 0.0%)
visdata          [variable]          0/2097152  ( 0.0%)
entdata          [variable]      17058/524288  ( 3.3%)
165 textures referenced
=== Total BSP file data space used: 3511430 bytes ===
4.17 seconds elapsed

-----  END  hlbsp -----



hlvis v2.5.3 rel Custom Build 1.7 (Dec  9 2002)
Zoner's Half-Life Compilation Tools -- Custom Build
Based on code modifications by Sean 'Zoner' Cavanaugh
Based on Valve's version, modified with permission.
Submit detailed bug reports to (merlinis@bigpond.net.au)
-----  BEGIN  hlvis -----
Command line: "C:\Documents and Settings\Owner\Desktop\ZHLT\hlvis.exe"-full -chart "C:\Documents and Settings\Owner\Desktop.map"
1471 portalleafs
4988 numportals

-= Current hlvis Settings =-
Name              |  Setting  |  Default
-------------------|-----------|-------------------------
threads            [      1 ] [  Varies ]
verbose            [    off ] [    off ]
log                [      on ] [      on ]
developer          [      0 ] [      0 ]
chart              [      on ] [    off ]
estimate            [    off ] [    off ]
max texture memory  [ 4194304 ] [ 4194304 ]
max vis distance    [      0 ] [      0 ]
priority            [  Normal ] [  Normal ]

fast vis            [    off ] [    off ]
full vis            [      on ] [    off ]


BasePortalVis:
(14.30 seconds)
LeafThread:
(484.83 seconds)
average leafs visible: 166
g_visdatasize:72264  compressed from 270664

Object names  Objects/Maxobjs  Memory / Maxmem  Fullness
------------  ---------------  ---------------  --------
models            75/400        4800/25600    (18.8%)
planes          8072/32767    161440/655340  (24.6%)
vertexes        8131/65535      97572/786420  (12.4%)
nodes            3193/32767      76632/786408  ( 9.7%)
texinfos          961/32767      38440/1310680  ( 2.9%)
faces            5729/65535    114580/1310700  ( 8.7%)
clipnodes        8027/32767      64216/262136  (24.5%)
leaves          2202/8192      61656/229376  (26.9%)
marksurfaces    7726/65535      15452/131070  (11.8%)
surfedges      27083/512000    108332/2048000  ( 5.3%)
edges          13812/256000    55248/1024000  ( 5.4%)
texdata          [variable]    2696004/4194304  (64.3%)
lightdata        [variable]          0/4194304  ( 0.0%)
visdata          [variable]      72264/2097152  ( 3.4%)
entdata          [variable]      17058/524288  ( 3.3%)
165 textures referenced
=== Total BSP file data space used: 3583694 bytes ===
499.41 seconds elapsed [8m 19s]

-----  END  hlvis -----



hlrad v2.5.3 rel Custom Build 1.7 (Dec  9 2002)
Zoner's Half-Life Compilation Tools -- Custom Build
Based on code modifications by Sean 'Zoner' Cavanaugh
Based on Valve's version, modified with permission.
Submit detailed bug reports to (merlinis@bigpond.net.au)
-----  BEGIN  hlrad -----
Command line: "C:\Documents and Settings\Owner\Desktop\ZHLT\hlrad.exe"-extra -sparse -nopaque -bounce 1 -chart "C:\Documents and Settings\Owner\Desktop.map"

-= Current hlrad Settings =-
Name                | Setting            | Default
--------------------|---------------------|-------------------------
threads              [                1 ] [            Varies ]
verbose              [              off ] [              off ]
log                  [                on ] [                on ]
developer            [                0 ] [                0 ]
chart                [                on ] [              off ]
estimate            [              off ] [              off ]
max texture memory  [          4194304 ] [          4194304 ]
priority            [            Normal ] [            Normal ]

vismatrix algorithm  [            Sparse ] [          Original ]
oversampling (-extra)[                on ] [              off ]
bounces              [                1 ] [                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      [              off ] [                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 ]

custom shadows with bounce light
                    [              off ] [              off ]
rgb transfers        [              off ] [              off ]


5729 faces
Create Patches : 24873 base patches
0 opaque faces
254870 square feet [36701296.00 square inches]
22 direct lights

BuildFacelights:
(213.69 seconds)
BuildVisLeafs:
(68.47 seconds)
visibility matrix  :  5.5 megs
MakeScales:
(92.73 seconds)
SwapTransfers:
(7.34 seconds)
Transfer Lists :    12918356 :  12.92M transfers
      Indices :    8953656 :    8.54M bytes
          Data :    51673424 :  49.28M bytes
GatherLight:
Warning: Too many direct light styles on a face(?,?,?)

<i><b>*******************************************************
repeat the previous line for the equivelant of 40mb of text
*******************************************************</b></i>

(256.73 seconds)
FinalLightFace:
(4.77 seconds)

Object names  Objects/Maxobjs  Memory / Maxmem  Fullness
------------  ---------------  ---------------  --------
models            75/400        4800/25600    (18.8%)
planes          8072/32767    161440/655340  (24.6%)
vertexes        8131/65535      97572/786420  (12.4%)
nodes            3193/32767      76632/786408  ( 9.7%)
texinfos          961/32767      38440/1310680  ( 2.9%)
faces            5729/65535    114580/1310700  ( 8.7%)
clipnodes        8027/32767      64216/262136  (24.5%)
leaves          2202/8192      61656/229376  (26.9%)
marksurfaces    7726/65535      15452/131070  (11.8%)
surfedges      27083/512000    108332/2048000  ( 5.3%)
edges          13812/256000    55248/1024000  ( 5.4%)
texdata          [variable]    2696004/4194304  (64.3%)
lightdata        [variable]    2618556/4194304  (62.4%)
visdata          [variable]      72264/2097152  ( 3.4%)
entdata          [variable]      17058/524288  ( 3.3%)
165 textures referenced
=== Total BSP file data space used: 6202250 bytes ===
645.55 seconds elapsed [10m 45s]

-----  END  hlrad -----
<!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->

ANY advice will help.

Thanks!

Comments

  • CageyCagey Ex-Unknown Worlds Programmer Join Date: 2002-11-15 Member: 8829Members, Retired Developer, NS1 Playtester, Constellation
    <!--QuoteBegin--sickboy+Dec 2 2003, 01:57 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (sickboy @ Dec 2 2003, 01:57 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> I've even tried making them all EXACTLY the same (except for the light name). <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    The light name is the problem -- lights are turned on and off by name; different names mean potentially being on/off at different times, and the engine has to store them separately, causing the lightstyles error. A light style is a unique combination of name, appearance, and custom appearance which together define a light's intensity over time. If those three fields are the same, all the others (color, fade, brightness) can vary.

    If you aren't triggering the lights, remove the names entirely -- unnamed lights are removed when the map loads and don't count toward the NS entity cap.

    On a different note, that error doesn't repeat any more with my latest tool builds available on the forum.
  • sickboysickboy Join Date: 2003-09-13 Member: 20804Members, Constellation
    most excellent. Thank you VERY much!
Sign In or Register to comment.