AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Check how many mdl,snd,spr are precached. (https://forums.alliedmods.net/showthread.php?t=156665)

.Dare Devil. 05-10-2011 07:46

Check how many mdl,snd,spr are precached.
 
How i can check how many are precached.

what is that code :)

i need to check this and i want to create test plugin like
say /testpre
and client_print "312 are precached"

or something :):):)

lis_16 05-11-2011 05:00

Re: Check how many mdl,snd,spr are precached.
 
You want check all unbasic file precache size game was installed? Or just fe. you make a plugin and want to check how many files he precache? Or maybe you want check how many files are precache from server every day?

If the last, you must add a global counter. In plugin init read this counter from file/nvault/sql. When a file precached ++counter. At plugin end save this counter.

.Dare Devil. 05-11-2011 05:58

Re: Check how many mdl,snd,spr are precached.
 
I want to make plugin that if i say /testpre then
client_print "%s are precached", precached_res

like plugin say how many are precached.

dFF 05-11-2011 06:01

Re: Check how many mdl,snd,spr are precached.
 
https://forums.alliedmods.net/showthread.php?t=71193

.Dare Devil. 05-11-2011 06:11

Re: Check how many mdl,snd,spr are precached.
 
thanks.

Omg

422 sounds - 5 generics - 172 models | TOTAL = 599

This mean i've exceeded the maximum?
If yes , why my server dont crash or dont warn, its still working fine.

Exolent[jNr] 05-11-2011 06:13

Re: Check how many mdl,snd,spr are precached.
 
I think there are 2 different limits.
1 for generic, the other for sound/model/sprites.

That may not be completely accurate, but I know there are 2 different precache sections with separate limits.

.Dare Devil. 05-11-2011 06:16

Re: Check how many mdl,snd,spr are precached.
 
But i hate limits!

i have sounds and models more than 512,
so sounds and models are ohter limit too? :)

What i think, sounds and models/sprite/generic are ohter limit. mayby. lol

dFF 05-11-2011 06:24

Re: Check how many mdl,snd,spr are precached.
 
I Think the limit are for each sound/models. Not for sounds+models.

.Dare Devil. 05-11-2011 06:29

Re: Check how many mdl,snd,spr are precached.
 
Exolent[jNr] must know this better because he is a amxmodx moderator.

But i hope it is like u say.

SonicSonedit 05-11-2011 08:06

Re: Check how many mdl,snd,spr are precached.
 
.Dare Devil.
It's like Exolent[jNr] said, actually (sound+modeks>512=crash). But I don't know about seperate limit for precache_generic, though.


All times are GMT -4. The time now is 04:25.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.