Limits
MasterG
gmfbst Join Date: 2003-08-24 Member: 20169Members, Squad Five Blue
gmfbst Join Date: 2003-08-24 Member: 20169Members, Squad Five Blue
Comments
It means you have too many dynamic (read flickering/pulsing) light's near a face.
Anyone knows anything about this? <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
There's a cap of 2048 total entities including lights per map in the current tools. 1024 of those slots are reserved for unnamed light entities; the other 1024 are for all other entities combined.
In the original post, I was thinking more from the tool perspective, but it's true that unnamed <b>light</b>s and <b>light_spot</b>s don't contribute to runtime entities, either (just confirmed that in the SDK):
<!--c1--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>CODE</b> </td></tr><tr><td id='CODE'><!--ec1-->void CLight :: Spawn( void )
{
if (FStringNull(pev->targetname))
{ // inert light
REMOVE_ENTITY(ENT(pev));
return;
}
<snip>
<!--c2--></td></tr></table><span class='postcolor'><!--ec2-->
<b>info_null</b> is another entity that is removed on spawn (but it does count in the tools' internal 1024 non-light entity limit)... I'll email Flayra about getting those three types (two of them conditional) added to the official "do not count towards entity limit" list in the guidelines.
as far as i know you may only have 400 entities per map (minus NS specific entities, like info_location)
as far as i know you may only have 400 entities per map (minus NS specific entities, like info_location) <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
This is correct at the moment, although I'm double-checking with Flayra for the official word on generic remove-on-spawn entities.
<i>If</i> I get the go-ahead from Flay (waiting for email response now), you could potentially have 1648 unnamed lights (2048 compiler limit - the 400 entities) <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
But I didn't get an answer for my question, but that's my fault, 'cause I forgot to mention that I had got "Exceeded MAX_PATCHES".. But on my map I'm redoing all the lights, anyone got any tips about how to make I don't get the error when my lights are done again?