Raised This Month: $ Target: $400
 0% 

Check how many mdl,snd,spr are precached.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-10-2011 , 07:46   Check how many mdl,snd,spr are precached.
Reply With Quote #1

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
.Dare Devil. is offline
lis_16
Senior Member
Join Date: Feb 2008
Old 05-11-2011 , 05:00   Re: Check how many mdl,snd,spr are precached.
Reply With Quote #2

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.
lis_16 is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-11-2011 , 05:58   Re: Check how many mdl,snd,spr are precached.
Reply With Quote #3

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.
.Dare Devil. is offline
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 05-11-2011 , 06:01   Re: Check how many mdl,snd,spr are precached.
Reply With Quote #4

https://forums.alliedmods.net/showthread.php?t=71193
dFF is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-11-2011 , 06:11   Re: Check how many mdl,snd,spr are precached.
Reply With Quote #5

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.
.Dare Devil. is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-11-2011 , 06:13   Re: Check how many mdl,snd,spr are precached.
Reply With Quote #6

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.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-11-2011 , 06:16   Re: Check how many mdl,snd,spr are precached.
Reply With Quote #7

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
.Dare Devil. is offline
dFF
sıɹɹoɥɔ ʞɔnu
Join Date: Oct 2009
Old 05-11-2011 , 06:24   Re: Check how many mdl,snd,spr are precached.
Reply With Quote #8

I Think the limit are for each sound/models. Not for sounds+models.
dFF is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-11-2011 , 06:29   Re: Check how many mdl,snd,spr are precached.
Reply With Quote #9

Exolent[jNr] must know this better because he is a amxmodx moderator.

But i hope it is like u say.
.Dare Devil. is offline
SonicSonedit
Veteran Member
Join Date: Nov 2008
Location: Silent Hill
Old 05-11-2011 , 08:06   Re: Check how many mdl,snd,spr are precached.
Reply With Quote #10

.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.
__________________

SonicSonedit is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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