--
[ Picked text/plain from multipart/alternative ]
The HL model limit is 512.

This includes any precached models using PRECACHE_MODEL, and it also
includes all map-based solid models, like func_walls.

So if you have 400 solid ents (the max) in your map, you can only have
112 other precached models in your mod.

-av

botman wrote:

>>What the H-E-double hockey sticks does this mean:
>>
>>Host_Error: PF_precache_model_l: 'models/w_ammobox.mdl' overflow
>>
>>That ONLY happens when the map runs in multiplayer mode. not in single
>>player, JUST multiplayer.
>>
>>And the other maps run fine, WTF?!?!?!
>>
>>
>
>The Half-Life engine version of this code is very similar to the original
>Quake engine version (which is available from ftp.idsoftware.com).  Here's
>the function from the Quake source (from the pr_cmds.c file)...
>
>void PF_precache_model (void)
>{
>   char *s;
>   int  i;
>
>   if (sv.state != ss_loading)
>      PR_RunError ("PF_Precache_*: Precache can only be done in spawn
>functions");
>
>   s = G_STRING(OFS_PARM0);
>   G_INT(OFS_RETURN) = G_INT(OFS_PARM0);
>   PR_CheckEmptyString (s);
>
>   for (i=0 ; i<MAX_MODELS ; i++)
>   {
>      if (!sv.model_precache[i])
>      {
>         sv.model_precache[i] = s;
>         return;
>      }
>      if (!strcmp(sv.model_precache[i], s))
>         return;
>   }
>   PR_RunError ("PF_precache_model: overflow");
>}
>
>...it looks like the engine is going through the list of all the models that
>can be precached at one time and trying to find the precached version of
>this model.  When it can't find it, you get that nastygram.  Perhaps you are
>trying to load too many models at one time.  Try reducing the number of
>models in your MOD.
>
>Jeffrey "botman" Broome
>
>_______________________________________________
>To unsubscribe, edit your list preferences, or view the list archives, please visit:
>http://list.valvesoftware.com/mailman/listinfo/hlcoders
>
>
>
>
>
--

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to