Raised This Month: $ Target: $400
 0% 

Questions about precache


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 02-20-2017 , 16:48   Questions about precache
Reply With Quote #1

This can seem stupid question....
Precache count is increased by precaching two times the same model on different plugins?
I think the answer it's no.

Any way to count total files precached?
Without changing or add something to the native or plugins. Just one plugin or module that counts everything and output you the count of models, sounds, etc.
When I say everything it may consider default or map resources

Last edited by baneado; 02-20-2017 at 16:50.
baneado is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 02-21-2017 , 03:12   Re: Questions about precache
Reply With Quote #2

Quote:
Originally Posted by baneado View Post
Precache count is increased by precaching two times the same model on different plugins?
No.

Quote:
Originally Posted by baneado View Post
Any way to count total files precached?
Without changing or add something to the native or plugins. Just one plugin or module that counts everything and output you the count of models, sounds, etc.
When I say everything it may consider default or map resources
This only prints non-AMXX resources.
Code:
#include <amxmodx> #include <fakemeta> #include <D7Debug> public plugin_precache() {     register_plugin("D7 Resource precache listing", "0.0.1", "D i 5 7 i n c T")         register_forward(FM_PrecacheModel, "fwFmPrecache", 1)     register_forward(FM_PrecacheSound, "fwFmPrecache", 1)     register_forward(FM_PrecacheGeneric, "fwFmPrecache", 1)     register_forward(FM_PrecacheEvent, "fwFmPrecacheEvent", 1) } public fwFmPrecache(const szFile[]) {     ftD7Log(_, _, "Precached: ^"%s^".", szFile) } public fwFmPrecacheEvent(const iType, const szFile[]) {     ftD7Log(_, _, "Precached: ^"%s^".", szFile) }
Attached Files
File Type: sma Get Plugin or Get Source (D7ResourcePrecacheListing.sma - 682 views - 607 Bytes)
File Type: inc D7Debug.inc (2.8 KB, 288 views)
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 02-21-2017 , 10:44   Re: Questions about precache
Reply With Quote #3

Very thanks

But how about plugins resources too?
baneado is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 02-21-2017 , 11:09   Re: Questions about precache
Reply With Quote #4

Using Orpheu I guess. It's beyond my knowledge.
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
brlight
Senior Member
Join Date: Jun 2011
Old 02-22-2017 , 06:38   Re: Questions about precache
Reply With Quote #5

Try this, but read the post!
https://forums.alliedmods.net/showpo...4&postcount=15

Last edited by brlight; 02-22-2017 at 06:38.
brlight is offline
Reply


Thread Tools
Display Modes

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 21:00.


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