AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   New Plugin Submissions (https://forums.alliedmods.net/forumdisplay.php?f=26)
-   -   Precache Kit (https://forums.alliedmods.net/showthread.php?t=259880)

Jhob94 03-14-2015 16:53

Precache Kit
 
2 Attachment(s)
Precache Kit
Annoying 512 precache limit? You have the control now!

This plugin allows you to check how many files are precached per map and per type (Sounds/Models/Generic). You can also check wich files are precached.
Another tool that this plugin has is Unprecache utility, wich allows you to unprecache any file that you want. Yet, be careful. If you unprecache one file that is used (for example models/v_knife.mdl), the server will probably crash.

Commands
  • precache_view -> Prints a message to the admin's console with precache information
  • precache_viewfull -> Log all the names of precached files at the map


Requirements
  • Orpheu
  • You must compile this plugin locally


Credits

Changelog
  • v0.0.1 at 14/03/2015 - First Release
  • v0.0.2 at 15/03/2015 - Minor Fixes

Jhob94 03-14-2015 16:56

Re: Precache Kit
 
precache_view
Code:

*Current Map: de_dust2
*Total Precached: 616
*Sounds Precached: 396
*Models Precached: 215
*Generic Precached: 5

precache_viewfull
PHP Code:

L 03/14/2015 21:24:26: ***** INITIALIZING VIEWFULL ATde_dust2 *****
L 03/14/2015 21:24:26: * SOUND PRECACHE 396 Files ) *
L 03/14/2015 21:24:26items/tr_kevlar.wav
L 03
/14/2015 21:24:26items/gunpickup2.wav
L 03
/14/2015 21:24:26weapons/awp1.wav
L 03
/14/2015 21:24:26weapons/boltpull1.wav
L 03
/14/2015 21:24:26weapons/boltup.wav
L 03
/14/2015 21:24:26weapons/boltdown.wav
L 03
/14/2015 21:24:26weapons/zoom.wav
L 03
/14/2015 21:24:26weapons/awp_deploy.wav
L 03
/14/2015 21:24:26weapons/awp_clipin.wav
L 03
/14/2015 21:24:26weapons/awp_clipout.wav
L 03
/14/2015 21:24:26items/9mmclip1.wav
L 03
/14/2015 21:24:26weapons/g3sg1-1.wav
L 03
/14/2015 21:24:26weapons/g3sg1_slide.wav
L 03
/14/2015 21:24:26weapons/g3sg1_clipin.wav
L 03
/14/2015 21:24:26weapons/g3sg1_clipout.wav
L 03
/14/2015 21:24:26weapons/zoom.wav
L 03
/14/2015 21:24:26weapons/ak47-1.wav
L 03
/14/2015 21:24:26weapons/ak47-2.wav
L 03
/14/2015 21:24:26weapons/ak47_clipout.wav
L 03
/14/2015 21:24:26weapons/ak47_clipin.wav
L 03
/14/2015 21:24:26weapons/ak47_boltpull.wav
L 03
/14/2015 21:24:26weapons/scout_fire-1.wav
L 03
/14/2015 21:24:26weapons/scout_bolt.wav
L 03
/14/2015 21:24:26weapons/scout_clipin.wav
L 03
/14/2015 21:24:26weapons/scout_clipout.wav
L 03
/14/2015 21:24:26weapons/zoom.wav
L 03
/14/2015 21:24:26items/9mmclip1.wav
L 03
/14/2015 21:24:26weapons/m249-1.wav
L 03
/14/2015 21:24:26weapons/m249-2.wav
L 03
/14/2015 21:24:26weapons/m249_boxout.wav
L 03
/14/2015 21:24:26weapons/m249_boxin.wav
L 03
/14/2015 21:24:26weapons/m249_chain.wav
L 03
/14/2015 21:24:26weapons/m249_coverup.wav
L 03
/14/2015 21:24:26weapons/m249_coverdown.wav
L 03
/14/2015 21:24:26items/9mmclip1.wav
L 03
/14/2015 21:24:26weapons/m4a1-1.wav
L 03
/14/2015 21:24:26weapons/m4a1_unsil-1.wav
L 03
/14/2015 21:24:26weapons/m4a1_unsil-2.wav
L 03
/14/2015 21:24:26weapons/m4a1_clipin.wav
L 03
/14/2015 21:24:26weapons/m4a1_clipout.wav
L 03
/14/2015 21:24:26weapons/m4a1_boltpull.wav
L 03
/14/2015 21:24:26weapons/m4a1_deploy.wav
L 03
/14/2015 21:24:26weapons/m4a1_silencer_on.wav
L 03
/14/2015 21:24:26weapons/m4a1_silencer_off.wav
L 03
/14/2015 21:24:26weapons/sg552-1.wav
L 03
/14/2015 21:24:26weapons/sg552-2.wav
L 03
/14/2015 21:24:26weapons/sg552_clipout.wav
L 03
/14/2015 21:24:26weapons/sg552_clipin.wav
L 03
/14/2015 21:24:26weapons/sg552_boltpull.wav
L 03
/14/2015 21:24:26weapons/aug-1.wav
L 03
/14/2015 21:24:26weapons/aug_clipout.wav
L 03
/14/2015 21:24:26weapons/aug_clipin.wav
L 03
/14/2015 21:24:26weapons/aug_boltpull.wav
L 03
/14/2015 21:24:26weapons/aug_boltslap.wav
L 03
/14/2015 21:24:26weapons/aug_forearm.wav
L 03
/14/2015 21:24:26weapons/sg550-1.wav
L 03
/14/2015 21:24:26weapons/sg550_boltpull.wav
L 03
/14/2015 21:24:26weapons/sg550_clipin.wav
L 03
/14/2015 21:24:26weapons/sg550_clipout.wav
L 03
/14/2015 21:24:26weapons/zoom.wav
L 03
/14/2015 21:24:26items/9mmclip1.wav
L 03
/14/2015 21:24:26weapons/m3-1.wav
L 03
/14/2015 21:24:26weapons/m3_insertshell.wav
L 03
/14/2015 21:24:26weapons/m3_pump.wav
L 03
/14/2015 21:24:26weapons/reload1.wav
L 03
/14/2015 21:24:26weapons/reload3.wav
L 03
/14/2015 21:24:26weapons/xm1014-1.wav
L 03
/14/2015 21:24:26weapons/reload1.wav
L 03
/14/2015 21:24:26weapons/reload3.wav
L 03
/14/2015 21:24:26items/9mmclip1.wav
L 03
/14/2015 21:24:26weapons/usp1.wav
L 03
/14/2015 21:24:26weapons/usp2.wav
L 03
/14/2015 21:24:26weapons/usp_unsil-1.wav
L 03
/14/2015 21:24:26weapons/usp_clipout.wav
L 03
/14/2015 21:24:26weapons/usp_clipin.wav
L 03
/14/2015 21:24:26weapons/usp_silencer_on.wav
L 03
/14/2015 21:24:26weapons/usp_silencer_off.wav
L 03
/14/2015 21:24:26weapons/usp_sliderelease.wav
L 03
/14/2015 21:24:26weapons/usp_slideback.wav
L 03
/14/2015 21:24:26weapons/mac10-1.wav
L 03
/14/2015 21:24:26weapons/mac10_clipout.wav
L 03
/14/2015 21:24:26weapons/mac10_clipin.wav
L 03
/14/2015 21:24:26weapons/mac10_boltpull.wav
L 03
/14/2015 21:24:26weapons/ump45-1.wav
L 03
/14/2015 21:24:26weapons/ump45_clipout.wav
L 03
/14/2015 21:24:26weapons/ump45_clipin.wav
L 03
/14/2015 21:24:26weapons/ump45_boltslap.wav
L 03
/14/2015 21:24:26items/9mmclip1.wav
L 03
/14/2015 21:24:26weapons/fiveseven-1.wav
L 03
/14/2015 21:24:26weapons/fiveseven_clipout.wav
L 03
/14/2015 21:24:26weapons/fiveseven_clipin.wav
L 03
/14/2015 21:24:26weapons/fiveseven_sliderelease.wav
L 03
/14/2015 21:24:26weapons/fiveseven_slidepull.wav
L 03
/14/2015 21:24:26weapons/p90-1.wav
L 03
/14/2015 21:24:26weapons/p90_clipout.wav
L 03
/14/2015 21:24:26weapons/p90_clipin.wav
L 03
/14/2015 21:24:26weapons/p90_boltpull.wav
L 03
/14/2015 21:24:26weapons/p90_cliprelease.wav
L 03
/14/2015 21:24:26items/9mmclip1.wav
L 03
/14/2015 21:24:26weapons/deagle-1.wav
L 03
/14/2015 21:24:26weapons/deagle-2.wav
L 03
/14/2015 21:24:26weapons/de_clipout.wav
L 03
/14/2015 21:24:26weapons/de_clipin.wav
L 03
/14/2015 21:24:26weapons/de_deploy.wav
L 03
/14/2015 21:24:26items/9mmclip1.wav
L 03
/14/2015 21:24:26weapons/p228-1.wav
L 03
/14/2015 21:24:26weapons/p228_clipout.wav
L 03
/14/2015 21:24:26weapons/p228_clipin.wav
L 03
/14/2015 21:24:26weapons/p228_sliderelease.wav
L 03
/14/2015 21:24:26weapons/p228_slidepull.wav
L 03
/14/2015 21:24:26items/9mmclip1.wav
L 03
/14/2015 21:24:26weapons/knife_deploy1.wav
L 03
/14/2015 21:24:26weapons/knife_hit1.wav
L 03
/14/2015 21:24:26weapons/knife_hit2.wav
L 03
/14/2015 21:24:26weapons/knife_hit3.wav
L 03
/14/2015 21:24:26weapons/knife_hit4.wav
L 03
/14/2015 21:24:26weapons/knife_slash1.wav
L 03
/14/2015 21:24:26weapons/knife_slash2.wav
L 03
/14/2015 21:24:26weapons/knife_stab.wav
L 03
/14/2015 21:24:26weapons/knife_hitwall1.wav
L 03
/14/2015 21:24:26weapons/glock18-1.wav
L 03
/14/2015 21:24:26weapons/glock18-2.wav
L 03
/14/2015 21:24:26weapons/clipout1.wav
L 03
/14/2015 21:24:26weapons/clipin1.wav
L 03
/14/2015 21:24:26weapons/sliderelease1.wav
L 03
/14/2015 21:24:26weapons/slideback1.wav
L 03
/14/2015 21:24:26weapons/357_cock1.wav
L 03
/14/2015 21:24:26weapons/de_clipin.wav
L 03
/14/2015 21:24:26weapons/de_clipout.wav
L 03
/14/2015 21:24:26weapons/mp5-1.wav
L 03
/14/2015 21:24:26weapons/mp5-2.wav
L 03
/14/2015 21:24:26weapons/mp5_clipout.wav
L 03
/14/2015 21:24:26weapons/mp5_clipin.wav
L 03
/14/2015 21:24:26weapons/mp5_slideback.wav
L 03
/14/2015 21:24:26weapons/tmp-1.wav
L 03
/14/2015 21:24:26weapons/tmp-2.wav
L 03
/14/2015 21:24:26weapons/elite_fire.wav
L 03
/14/2015 21:24:26weapons/elite_reloadstart.wav
L 03
/14/2015 21:24:26weapons/elite_leftclipin.wav
L 03
/14/2015 21:24:26weapons/elite_clipout.wav
L 03
/14/2015 21:24:26weapons/elite_sliderelease.wav
L 03
/14/2015 21:24:26weapons/elite_rightclipin.wav
L 03
/14/2015 21:24:26weapons/elite_deploy.wav
L 03
/14/2015 21:24:26items/9mmclip1.wav
L 03
/14/2015 21:24:26weapons/flashbang-1.wav
L 03
/14/2015 21:24:26weapons/flashbang-2.wav
L 03
/14/2015 21:24:26weapons/pinpull.wav
L 03
/14/2015 21:24:26weapons/hegrenade-1.wav
L 03
/14/2015 21:24:26weapons/hegrenade-2.wav
L 03
/14/2015 21:24:26weapons/he_bounce-1.wav
L 03
/14/2015 21:24:26weapons/pinpull.wav
L 03
/14/2015 21:24:26weapons/pinpull.wav
L 03
/14/2015 21:24:26weapons/sg_explode.wav
L 03
/14/2015 21:24:26weapons/c4_click.wav
L 03
/14/2015 21:24:26weapons/galil-1.wav
L 03
/14/2015 21:24:26weapons/galil-2.wav
L 03
/14/2015 21:24:26weapons/galil_clipout.wav
L 03
/14/2015 21:24:26weapons/galil_clipin.wav
L 03
/14/2015 21:24:26weapons/galil_boltpull.wav
L 03
/14/2015 21:24:26weapons/famas-1.wav
L 03
/14/2015 21:24:26weapons/famas-2.wav
L 03
/14/2015 21:24:26weapons/famas_clipout.wav
L 03
/14/2015 21:24:26weapons/famas_clipin.wav
L 03
/14/2015 21:24:26weapons/famas_boltpull.wav
L 03
/14/2015 21:24:26weapons/famas_boltslap.wav
L 03
/14/2015 21:24:26weapons/famas_forearm.wav
L 03
/14/2015 21:24:26weapons/famas-burst.wav
L 03
/14/2015 21:24:26weapons/debris1.wav
L 03
/14/2015 21:24:26weapons/debris2.wav
L 03
/14/2015 21:24:26weapons/debris3.wav
L 03
/14/2015 21:24:26weapons/grenade_hit1.wav
L 03
/14/2015 21:24:26weapons/grenade_hit2.wav
L 03
/14/2015 21:24:26weapons/grenade_hit3.wav
L 03
/14/2015 21:24:26weapons/bullet_hit1.wav
L 03
/14/2015 21:24:26weapons/bullet_hit2.wav
L 03
/14/2015 21:24:26items/weapondrop1.wav
L 03
/14/2015 21:24:26weapons/generic_reload.wav
L 03
/14/2015 21:24:26weapons/dryfire_pistol.wav
L 03
/14/2015 21:24:26weapons/dryfire_rifle.wav
L 03
/14/2015 21:24:26player/pl_shot1.wav
L 03
/14/2015 21:24:26player/pl_die1.wav
L 03
/14/2015 21:24:26player/headshot1.wav
L 03
/14/2015 21:24:26player/headshot2.wav
L 03
/14/2015 21:24:26player/headshot3.wav
L 03
/14/2015 21:24:26player/bhit_flesh-1.wav
L 03
/14/2015 21:24:26player/bhit_flesh-2.wav
L 03
/14/2015 21:24:26player/bhit_flesh-3.wav
L 03
/14/2015 21:24:26player/bhit_kevlar-1.wav
L 03
/14/2015 21:24:26player/bhit_helmet-1.wav
L 03
/14/2015 21:24:26player/die1.wav
L 03
/14/2015 21:24:26player/die2.wav
L 03
/14/2015 21:24:26player/die3.wav
L 03
/14/2015 21:24:26player/death6.wav
L 03
/14/2015 21:24:26radio/locknload.wav
L 03
/14/2015 21:24:26radio/letsgo.wav
L 03
/14/2015 21:24:26radio/moveout.wav
L 03
/14/2015 21:24:26radio/com_go.wav
L 03
/14/2015 21:24:26radio/rescued.wav
L 03
/14/2015 21:24:26radio/rounddraw.wav
L 03
/14/2015 21:24:26items/kevlar.wav
L 03
/14/2015 21:24:26items/ammopickup2.wav
L 03
/14/2015 21:24:26items/nvg_on.wav
L 03
/14/2015 21:24:26items/nvg_off.wav
L 03
/14/2015 21:24:26items/equip_nvg.wav
L 03
/14/2015 21:24:26weapons/c4_beep1.wav
L 03
/14/2015 21:24:26weapons/c4_beep2.wav
L 03
/14/2015 21:24:26weapons/c4_beep3.wav
L 03
/14/2015 21:24:26weapons/c4_beep4.wav
L 03
/14/2015 21:24:26weapons/c4_beep5.wav
L 03
/14/2015 21:24:26weapons/c4_explode1.wav
L 03
/14/2015 21:24:26weapons/c4_plant.wav
L 03
/14/2015 21:24:26weapons/c4_disarm.wav
L 03
/14/2015 21:24:26weapons/c4_disarmed.wav
L 03
/14/2015 21:24:26weapons/explode3.wav
L 03
/14/2015 21:24:26weapons/explode4.wav
L 03
/14/2015 21:24:26weapons/explode5.wav
L 03
/14/2015 21:24:26player/sprayer.wav
L 03
/14/2015 21:24:26player/pl_fallpain2.wav
L 03
/14/2015 21:24:26player/pl_fallpain3.wav
L 03
/14/2015 21:24:26player/pl_snow1.wav
L 03
/14/2015 21:24:26player/pl_snow2.wav
L 03
/14/2015 21:24:26player/pl_snow3.wav
L 03
/14/2015 21:24:26player/pl_snow4.wav
L 03
/14/2015 21:24:26player/pl_snow5.wav
L 03
/14/2015 21:24:26player/pl_snow6.wav
L 03
/14/2015 21:24:26player/pl_step1.wav
L 03
/14/2015 21:24:26player/pl_step2.wav
L 03
/14/2015 21:24:26player/pl_step3.wav
L 03
/14/2015 21:24:26player/pl_step4.wav
L 03
/14/2015 21:24:26common/npc_step1.wav
L 03
/14/2015 21:24:26common/npc_step2.wav
L 03
/14/2015 21:24:26common/npc_step3.wav
L 03
/14/2015 21:24:26common/npc_step4.wav
L 03
/14/2015 21:24:26player/pl_metal1.wav
L 03
/14/2015 21:24:26player/pl_metal2.wav
L 03
/14/2015 21:24:26player/pl_metal3.wav
L 03
/14/2015 21:24:26player/pl_metal4.wav
L 03
/14/2015 21:24:26player/pl_dirt1.wav
L 03
/14/2015 21:24:26player/pl_dirt2.wav
L 03
/14/2015 21:24:26player/pl_dirt3.wav
L 03
/14/2015 21:24:26player/pl_dirt4.wav
L 03
/14/2015 21:24:26player/pl_duct1.wav
L 03
/14/2015 21:24:26player/pl_duct2.wav
L 03
/14/2015 21:24:26player/pl_duct3.wav
L 03
/14/2015 21:24:26player/pl_duct4.wav
L 03
/14/2015 21:24:26player/pl_grate1.wav
L 03
/14/2015 21:24:26player/pl_grate2.wav
L 03
/14/2015 21:24:26player/pl_grate3.wav
L 03
/14/2015 21:24:26player/pl_grate4.wav
L 03
/14/2015 21:24:26player/pl_slosh1.wav
L 03
/14/2015 21:24:26player/pl_slosh2.wav
L 03
/14/2015 21:24:26player/pl_slosh3.wav
L 03
/14/2015 21:24:26player/pl_slosh4.wav
L 03
/14/2015 21:24:26player/pl_tile1.wav
L 03
/14/2015 21:24:26player/pl_tile2.wav
L 03
/14/2015 21:24:26player/pl_tile3.wav
L 03
/14/2015 21:24:26player/pl_tile4.wav
L 03
/14/2015 21:24:26player/pl_tile5.wav
L 03
/14/2015 21:24:26player/pl_swim1.wav
L 03
/14/2015 21:24:26player/pl_swim2.wav
L 03
/14/2015 21:24:26player/pl_swim3.wav
L 03
/14/2015 21:24:26player/pl_swim4.wav
L 03
/14/2015 21:24:26player/pl_ladder1.wav
L 03
/14/2015 21:24:26player/pl_ladder2.wav
L 03
/14/2015 21:24:26player/pl_ladder3.wav
L 03
/14/2015 21:24:26player/pl_ladder4.wav
L 03
/14/2015 21:24:26player/pl_wade1.wav
L 03
/14/2015 21:24:26player/pl_wade2.wav
L 03
/14/2015 21:24:26player/pl_wade3.wav
L 03
/14/2015 21:24:26player/pl_wade4.wav
L 03
/14/2015 21:24:26debris/wood1.wav
L 03
/14/2015 21:24:26debris/wood2.wav
L 03
/14/2015 21:24:26debris/wood3.wav
L 03
/14/2015 21:24:26plats/train_use1.wav
L 03
/14/2015 21:24:26plats/vehicle_ignition.wav
L 03
/14/2015 21:24:26buttons/spark5.wav
L 03
/14/2015 21:24:26buttons/spark6.wav
L 03
/14/2015 21:24:26debris/glass1.wav
L 03
/14/2015 21:24:26debris/glass2.wav
L 03
/14/2015 21:24:26debris/glass3.wav
L 03
/14/2015 21:24:26items/flashlight1.wav
L 03
/14/2015 21:24:26items/flashlight1.wav
L 03
/14/2015 21:24:26common/bodysplat.wav
L 03
/14/2015 21:24:26player/pl_pain2.wav
L 03
/14/2015 21:24:26player/pl_pain4.wav
L 03
/14/2015 21:24:26player/pl_pain5.wav
L 03
/14/2015 21:24:26player/pl_pain6.wav
L 03
/14/2015 21:24:26player/pl_pain7.wav
L 03
/14/2015 21:24:26common/wpn_hudoff.wav
L 03
/14/2015 21:24:26common/wpn_hudon.wav
L 03
/14/2015 21:24:26common/wpn_moveselect.wav
L 03
/14/2015 21:24:26common/wpn_select.wav
L 03
/14/2015 21:24:26common/wpn_denyselect.wav
L 03
/14/2015 21:24:26player/geiger6.wav
L 03
/14/2015 21:24:26player/geiger5.wav
L 03
/14/2015 21:24:26player/geiger4.wav
L 03
/14/2015 21:24:26player/geiger3.wav
L 03
/14/2015 21:24:26player/geiger2.wav
L 03
/14/2015 21:24:26player/geiger1.wav
L 03
/14/2015 21:24:26buttons/bell1.wav
L 03
/14/2015 21:24:26buttons/blip1.wav
L 03
/14/2015 21:24:26buttons/blip2.wav
L 03
/14/2015 21:24:26buttons/button11.wav
L 03
/14/2015 21:24:26buttons/latchunlocked2.wav
L 03
/14/2015 21:24:26buttons/lightswitch2.wav
L 03
/14/2015 21:24:26ambience/quail1.wav
L 03
/14/2015 21:24:26events/tutor_msg.wav
L 03
/14/2015 21:24:26events/enemy_died.wav
L 03
/14/2015 21:24:26events/friend_died.wav
L 03
/14/2015 21:24:26events/task_complete.wav
L 03
/14/2015 21:24:26common/null.wav
L 03
/14/2015 21:24:26items/suitchargeok1.wav
L 03
/14/2015 21:24:26items/gunpickup2.wav
L 03
/14/2015 21:24:26common/bodydrop3.wav
L 03
/14/2015 21:24:26common/bodydrop4.wav
L 03
/14/2015 21:24:26weapons/ric1.wav
L 03
/14/2015 21:24:26weapons/ric2.wav
L 03
/14/2015 21:24:26weapons/ric3.wav
L 03
/14/2015 21:24:26weapons/ric4.wav
L 03
/14/2015 21:24:26weapons/ric5.wav
L 03
/14/2015 21:24:26weapons/ric_metal-1.wav
L 03
/14/2015 21:24:26weapons/ric_metal-2.wav
L 03
/14/2015 21:24:26weapons/ric_conc-1.wav
L 03
/14/2015 21:24:26weapons/ric_conc-2.wav
L 03
/14/2015 21:24:26debris/bustmetal1.wav
L 03
/14/2015 21:24:26debris/bustmetal2.wav
L 03
/14/2015 21:24:26debris/metal1.wav
L 03
/14/2015 21:24:26debris/metal2.wav
L 03
/14/2015 21:24:26debris/metal3.wav
L 03
/14/2015 21:24:26debris/bustmetal1.wav
L 03
/14/2015 21:24:26debris/bustmetal2.wav
L 03
/14/2015 21:24:26debris/metal1.wav
L 03
/14/2015 21:24:26debris/metal2.wav
L 03
/14/2015 21:24:26debris/metal3.wav
L 03
/14/2015 21:24:26debris/bustmetal1.wav
L 03
/14/2015 21:24:26debris/bustmetal2.wav
L 03
/14/2015 21:24:26debris/metal1.wav
L 03
/14/2015 21:24:26debris/metal2.wav
L 03
/14/2015 21:24:26debris/metal3.wav
L 03
/14/2015 21:24:26debris/bustmetal1.wav
L 03
/14/2015 21:24:26debris/bustmetal2.wav
L 03
/14/2015 21:24:26debris/metal1.wav
L 03
/14/2015 21:24:26debris/metal2.wav
L 03
/14/2015 21:24:26debris/metal3.wav
L 03
/14/2015 21:24:26debris/bustmetal1.wav
L 03
/14/2015 21:24:26debris/bustmetal2.wav
L 03
/14/2015 21:24:26debris/metal1.wav
L 03
/14/2015 21:24:26debris/metal2.wav
L 03
/14/2015 21:24:26debris/metal3.wav
L 03
/14/2015 21:24:26debris/bustmetal1.wav
L 03
/14/2015 21:24:26debris/bustmetal2.wav
L 03
/14/2015 21:24:26debris/metal1.wav
L 03
/14/2015 21:24:26debris/metal2.wav
L 03
/14/2015 21:24:26debris/metal3.wav
L 03
/14/2015 21:24:26debris/bustmetal1.wav
L 03
/14/2015 21:24:26debris/bustmetal2.wav
L 03
/14/2015 21:24:26debris/metal1.wav
L 03
/14/2015 21:24:26debris/metal2.wav
L 03
/14/2015 21:24:26debris/metal3.wav
L 03
/14/2015 21:24:26debris/bustmetal1.wav
L 03
/14/2015 21:24:26debris/bustmetal2.wav
L 03
/14/2015 21:24:26debris/metal1.wav
L 03
/14/2015 21:24:26debris/metal2.wav
L 03
/14/2015 21:24:26debris/metal3.wav
L 03
/14/2015 21:24:26debris/bustmetal1.wav
L 03
/14/2015 21:24:26debris/bustmetal2.wav
L 03
/14/2015 21:24:26debris/metal1.wav
L 03
/14/2015 21:24:26debris/metal2.wav
L 03
/14/2015 21:24:26debris/metal3.wav
L 03
/14/2015 21:24:26debris/bustmetal1.wav
L 03
/14/2015 21:24:26debris/bustmetal2.wav
L 03
/14/2015 21:24:26debris/metal1.wav
L 03
/14/2015 21:24:26debris/metal2.wav
L 03
/14/2015 21:24:26debris/metal3.wav
L 03
/14/2015 21:24:26weapons/knife_deploy1.wav
L 03
/14/2015 21:24:26weapons/knife_hit1.wav
L 03
/14/2015 21:24:26weapons/knife_hit2.wav
L 03
/14/2015 21:24:26weapons/knife_hit3.wav
L 03
/14/2015 21:24:26weapons/knife_hit4.wav
L 03
/14/2015 21:24:26weapons/knife_slash1.wav
L 03
/14/2015 21:24:26weapons/knife_slash2.wav
L 03
/14/2015 21:24:26weapons/knife_stab.wav
L 03
/14/2015 21:24:26weapons/knife_hitwall1.wav
L 03
/14/2015 21:24:26weapons/glock18-1.wav
L 03
/14/2015 21:24:26weapons/glock18-2.wav
L 03
/14/2015 21:24:26weapons/clipout1.wav
L 03
/14/2015 21:24:26weapons/clipin1.wav
L 03
/14/2015 21:24:26weapons/sliderelease1.wav
L 03
/14/2015 21:24:26weapons/slideback1.wav
L 03
/14/2015 21:24:26weapons/357_cock1.wav
L 03
/14/2015 21:24:26weapons/de_clipin.wav
L 03
/14/2015 21:24:26weapons/de_clipout.wav
L 03
/14/2015 21:24:26weapons/hegrenade-1.wav
L 03
/14/2015 21:24:26weapons/hegrenade-2.wav
L 03
/14/2015 21:24:26weapons/he_bounce-1.wav
L 03
/14/2015 21:24:26weapons/pinpull.wav
L 03
/14/2015 21:24:26: * MODEL PRECACHE 215 Files ) *
L 03/14/2015 21:24:26sprites/voiceicon.spr
L 03
/14/2015 21:24:26models/w_kevlar.mdl
L 03
/14/2015 21:24:26models/w_battery.mdl
L 03
/14/2015 21:24:26models/w_antidote.mdl
L 03
/14/2015 21:24:26models/w_security.mdl
L 03
/14/2015 21:24:26models/w_longjump.mdl
L 03
/14/2015 21:24:26models/w_kevlar.mdl
L 03
/14/2015 21:24:26models/w_assault.mdl
L 03
/14/2015 21:24:26models/w_thighpack.mdl
L 03
/14/2015 21:24:26models/v_awp.mdl
L 03
/14/2015 21:24:26models/w_awp.mdl
L 03
/14/2015 21:24:26models/rshell_big.mdl
L 03
/14/2015 21:24:26models/w_9mmclip.mdl
L 03
/14/2015 21:24:26models/v_g3sg1.mdl
L 03
/14/2015 21:24:26models/w_g3sg1.mdl
L 03
/14/2015 21:24:26models/rshell.mdl
L 03
/14/2015 21:24:26models/v_ak47.mdl
L 03
/14/2015 21:24:26models/w_ak47.mdl
L 03
/14/2015 21:24:26models/rshell.mdl
L 03
/14/2015 21:24:26models/v_scout.mdl
L 03
/14/2015 21:24:26models/w_scout.mdl
L 03
/14/2015 21:24:26models/rshell_big.mdl
L 03
/14/2015 21:24:26models/w_9mmclip.mdl
L 03
/14/2015 21:24:26models/v_m249.mdl
L 03
/14/2015 21:24:26models/w_m249.mdl
L 03
/14/2015 21:24:26models/rshell.mdl
L 03
/14/2015 21:24:26models/w_9mmclip.mdl
L 03
/14/2015 21:24:26models/v_m4a1.mdl
L 03
/14/2015 21:24:26models/w_m4a1.mdl
L 03
/14/2015 21:24:26models/rshell.mdl
L 03
/14/2015 21:24:26models/v_sg552.mdl
L 03
/14/2015 21:24:26models/w_sg552.mdl
L 03
/14/2015 21:24:26models/rshell.mdl
L 03
/14/2015 21:24:26models/v_aug.mdl
L 03
/14/2015 21:24:26models/w_aug.mdl
L 03
/14/2015 21:24:26models/rshell.mdl
L 03
/14/2015 21:24:26models/v_sg550.mdl
L 03
/14/2015 21:24:26models/w_sg550.mdl
L 03
/14/2015 21:24:26models/rshell.mdl
L 03
/14/2015 21:24:26models/w_9mmclip.mdl
L 03
/14/2015 21:24:26models/v_m3.mdl
L 03
/14/2015 21:24:26models/w_m3.mdl
L 03
/14/2015 21:24:26models/shotgunshell.mdl
L 03
/14/2015 21:24:26models/v_xm1014.mdl
L 03
/14/2015 21:24:26models/w_xm1014.mdl
L 03
/14/2015 21:24:26models/shotgunshell.mdl
L 03
/14/2015 21:24:26models/w_shotbox.mdl
L 03
/14/2015 21:24:26models/v_usp.mdl
L 03
/14/2015 21:24:26models/w_usp.mdl
L 03
/14/2015 21:24:26models/shield/v_shield_usp.mdl
L 03
/14/2015 21:24:26models/pshell.mdl
L 03
/14/2015 21:24:26models/v_mac10.mdl
L 03
/14/2015 21:24:26models/w_mac10.mdl
L 03
/14/2015 21:24:26models/pshell.mdl
L 03
/14/2015 21:24:26models/v_ump45.mdl
L 03
/14/2015 21:24:26models/w_ump45.mdl
L 03
/14/2015 21:24:26models/pshell.mdl
L 03
/14/2015 21:24:26models/w_9mmclip.mdl
L 03
/14/2015 21:24:26models/v_fiveseven.mdl
L 03
/14/2015 21:24:26models/w_fiveseven.mdl
L 03
/14/2015 21:24:26models/shield/v_shield_fiveseven.mdl
L 03
/14/2015 21:24:26models/pshell.mdl
L 03
/14/2015 21:24:26models/v_p90.mdl
L 03
/14/2015 21:24:26models/w_p90.mdl
L 03
/14/2015 21:24:26models/rshell.mdl
L 03
/14/2015 21:24:26models/w_9mmclip.mdl
L 03
/14/2015 21:24:26models/v_deagle.mdl
L 03
/14/2015 21:24:26models/shield/v_shield_deagle.mdl
L 03
/14/2015 21:24:26models/w_deagle.mdl
L 03
/14/2015 21:24:26models/pshell.mdl
L 03
/14/2015 21:24:26models/w_9mmclip.mdl
L 03
/14/2015 21:24:26models/v_p228.mdl
L 03
/14/2015 21:24:26models/w_p228.mdl
L 03
/14/2015 21:24:26models/shield/v_shield_p228.mdl
L 03
/14/2015 21:24:26models/pshell.mdl
L 03
/14/2015 21:24:26models/w_9mmclip.mdl
L 03
/14/2015 21:24:26models/v_knife.mdl
L 03
/14/2015 21:24:26models/shield/v_shield_knife.mdl
L 03
/14/2015 21:24:26models/w_knife.mdl
L 03
/14/2015 21:24:26models/v_glock18.mdl
L 03
/14/2015 21:24:26models/w_glock18.mdl
L 03
/14/2015 21:24:26models/shield/v_shield_glock18.mdl
L 03
/14/2015 21:24:26models/pshell.mdl
L 03
/14/2015 21:24:26models/v_mp5.mdl
L 03
/14/2015 21:24:26models/w_mp5.mdl
L 03
/14/2015 21:24:26models/pshell.mdl
L 03
/14/2015 21:24:26models/v_tmp.mdl
L 03
/14/2015 21:24:26models/w_tmp.mdl
L 03
/14/2015 21:24:26models/pshell.mdl
L 03
/14/2015 21:24:26models/v_elite.mdl
L 03
/14/2015 21:24:26models/w_elite.mdl
L 03
/14/2015 21:24:26models/pshell.mdl
L 03
/14/2015 21:24:26models/w_9mmclip.mdl
L 03
/14/2015 21:24:26models/v_flashbang.mdl
L 03
/14/2015 21:24:26models/shield/v_shield_flashbang.mdl
L 03
/14/2015 21:24:26models/shield/v_shield_hegrenade.mdl
L 03
/14/2015 21:24:26models/v_smokegrenade.mdl
L 03
/14/2015 21:24:26models/shield/v_shield_smokegrenade.mdl
L 03
/14/2015 21:24:26models/v_c4.mdl
L 03
/14/2015 21:24:26models/w_backpack.mdl
L 03
/14/2015 21:24:26models/v_galil.mdl
L 03
/14/2015 21:24:26models/w_galil.mdl
L 03
/14/2015 21:24:26models/rshell.mdl
L 03
/14/2015 21:24:26models/v_famas.mdl
L 03
/14/2015 21:24:26models/w_famas.mdl
L 03
/14/2015 21:24:26models/rshell.mdl
L 03
/14/2015 21:24:26models/w_weaponbox.mdl
L 03
/14/2015 21:24:26sprites/zerogxplode.spr
L 03
/14/2015 21:24:26sprites/WXplo1.spr
L 03
/14/2015 21:24:26sprites/steam1.spr
L 03
/14/2015 21:24:26sprites/bubble.spr
L 03
/14/2015 21:24:26sprites/bloodspray.spr
L 03
/14/2015 21:24:26sprites/blood.spr
L 03
/14/2015 21:24:26sprites/smokepuff.spr
L 03
/14/2015 21:24:26sprites/eexplo.spr
L 03
/14/2015 21:24:26sprites/fexplo.spr
L 03
/14/2015 21:24:26sprites/fexplo1.spr
L 03
/14/2015 21:24:26sprites/radio.spr
L 03
/14/2015 21:24:26sprites/b-tele1.spr
L 03
/14/2015 21:24:26sprites/c-tele1.spr
L 03
/14/2015 21:24:26sprites/ledglow.spr
L 03
/14/2015 21:24:26sprites/laserbeam.spr
L 03
/14/2015 21:24:26sprites/laserdot.spr
L 03
/14/2015 21:24:26models/grenade.mdl
L 03
/14/2015 21:24:26sprites/explode1.spr
L 03
/14/2015 21:24:26models/player.mdl
L 03
/14/2015 21:24:26models/player/leet/leet.mdl
L 03
/14/2015 21:24:26models/player/gign/gign.mdl
L 03
/14/2015 21:24:26models/player/vip/vip.mdl
L 03
/14/2015 21:24:26models/player/gsg9/gsg9.mdl
L 03
/14/2015 21:24:26models/player/guerilla/guerilla.mdl
L 03
/14/2015 21:24:26models/player/arctic/arctic.mdl
L 03
/14/2015 21:24:26models/player/sas/sas.mdl
L 03
/14/2015 21:24:26models/player/terror/terror.mdl
L 03
/14/2015 21:24:26models/player/urban/urban.mdl
L 03
/14/2015 21:24:26models/p_ak47.mdl
L 03
/14/2015 21:24:26models/p_aug.mdl
L 03
/14/2015 21:24:26models/p_awp.mdl
L 03
/14/2015 21:24:26models/p_c4.mdl
L 03
/14/2015 21:24:26models/w_c4.mdl
L 03
/14/2015 21:24:26models/p_deagle.mdl
L 03
/14/2015 21:24:26models/shield/p_shield_deagle.mdl
L 03
/14/2015 21:24:26models/p_flashbang.mdl
L 03
/14/2015 21:24:26models/shield/p_shield_flashbang.mdl
L 03
/14/2015 21:24:26models/p_hegrenade.mdl
L 03
/14/2015 21:24:26models/shield/p_shield_hegrenade.mdl
L 03
/14/2015 21:24:26models/p_glock18.mdl
L 03
/14/2015 21:24:26models/shield/p_shield_glock18.mdl
L 03
/14/2015 21:24:26models/p_p228.mdl
L 03
/14/2015 21:24:26models/shield/p_shield_p228.mdl
L 03
/14/2015 21:24:26models/p_smokegrenade.mdl
L 03
/14/2015 21:24:26models/shield/p_shield_smokegrenade.mdl
L 03
/14/2015 21:24:26models/p_usp.mdl
L 03
/14/2015 21:24:26models/shield/p_shield_usp.mdl
L 03
/14/2015 21:24:26models/p_fiveseven.mdl
L 03
/14/2015 21:24:26models/shield/p_shield_fiveseven.mdl
L 03
/14/2015 21:24:26models/p_knife.mdl
L 03
/14/2015 21:24:26models/shield/p_shield_knife.mdl
L 03
/14/2015 21:24:26models/w_flashbang.mdl
L 03
/14/2015 21:24:26models/w_hegrenade.mdl
L 03
/14/2015 21:24:26models/p_sg550.mdl
L 03
/14/2015 21:24:26models/p_g3sg1.mdl
L 03
/14/2015 21:24:26models/p_m249.mdl
L 03
/14/2015 21:24:26models/p_m3.mdl
L 03
/14/2015 21:24:26models/p_m4a1.mdl
L 03
/14/2015 21:24:26models/p_mac10.mdl
L 03
/14/2015 21:24:26models/p_mp5.mdl
L 03
/14/2015 21:24:26models/p_ump45.mdl
L 03
/14/2015 21:24:26models/p_p90.mdl
L 03
/14/2015 21:24:26models/p_scout.mdl
L 03
/14/2015 21:24:26models/p_sg552.mdl
L 03
/14/2015 21:24:26models/w_smokegrenade.mdl
L 03
/14/2015 21:24:26models/p_tmp.mdl
L 03
/14/2015 21:24:26models/p_elite.mdl
L 03
/14/2015 21:24:26models/p_xm1014.mdl
L 03
/14/2015 21:24:26models/p_galil.mdl
L 03
/14/2015 21:24:26models/p_famas.mdl
L 03
/14/2015 21:24:26models/p_shield.mdl
L 03
/14/2015 21:24:26models/w_shield.mdl
L 03
/14/2015 21:24:26sprites/shadow_circle.spr
L 03
/14/2015 21:24:26sprites/wall_puff1.spr
L 03
/14/2015 21:24:26sprites/wall_puff2.spr
L 03
/14/2015 21:24:26sprites/wall_puff3.spr
L 03
/14/2015 21:24:26sprites/wall_puff4.spr
L 03
/14/2015 21:24:26sprites/black_smoke1.spr
L 03
/14/2015 21:24:26sprites/black_smoke2.spr
L 03
/14/2015 21:24:26sprites/black_smoke3.spr
L 03
/14/2015 21:24:26sprites/black_smoke4.spr
L 03
/14/2015 21:24:26sprites/fast_wallpuff1.spr
L 03
/14/2015 21:24:26sprites/pistol_smoke1.spr
L 03
/14/2015 21:24:26sprites/pistol_smoke2.spr
L 03
/14/2015 21:24:26sprites/rifle_smoke1.spr
L 03
/14/2015 21:24:26sprites/rifle_smoke2.spr
L 03
/14/2015 21:24:26sprites/rifle_smoke3.spr
L 03
/14/2015 21:24:26sprites/smoke.spr
L 03
/14/2015 21:24:26models/hgibs.mdl
L 03
/14/2015 21:24:26models/agibs.mdl
L 03
/14/2015 21:24:26models/mil_crategibs.mdl
L 03
/14/2015 21:24:26models/mil_crategibs.mdl
L 03
/14/2015 21:24:26models/mil_crategibs.mdl
L 03
/14/2015 21:24:26models/mil_crategibs.mdl
L 03
/14/2015 21:24:26models/mil_crategibs.mdl
L 03
/14/2015 21:24:26models/mil_crategibs.mdl
L 03
/14/2015 21:24:26models/mil_crategibs.mdl
L 03
/14/2015 21:24:26models/mil_crategibs.mdl
L 03
/14/2015 21:24:26models/mil_crategibs.mdl
L 03
/14/2015 21:24:26models/mil_crategibs.mdl
L 03
/14/2015 21:24:26models/v_knife.mdl
L 03
/14/2015 21:24:26models/shield/v_shield_knife.mdl
L 03
/14/2015 21:24:26models/w_knife.mdl
L 03
/14/2015 21:24:26models/v_glock18.mdl
L 03
/14/2015 21:24:26models/w_glock18.mdl
L 03
/14/2015 21:24:26models/shield/v_shield_glock18.mdl
L 03
/14/2015 21:24:26models/pshell.mdl
L 03
/14/2015 21:24:26models/shield/v_shield_hegrenade.mdl
L 03
/14/2015 21:24:26: * GENERIC PRECACHE 5 Files ) *
L 03/14/2015 21:24:26sprites/scope_arc.tga
L 03
/14/2015 21:24:26sprites/scope_arc_nw.tga
L 03
/14/2015 21:24:26sprites/scope_arc_ne.tga
L 03
/14/2015 21:24:26sprites/scope_arc_sw.tga
L 03
/14/2015 21:24:26maps/de_dust2.txt 


fysiks 03-14-2015 17:33

Re: Precache Kit
 
Attach the source code so we don't need to download the whole thing.

Jhob94 03-14-2015 17:37

Re: Precache Kit
 
My bad, done.

HamletEagle 03-15-2015 05:43

Re: Precache Kit
 
You used orpheu :O ? Nice...

g_szMapName should be 32, this is the size used by game, if I remember well.
I would create g_tUnPrecache trie outside the if check, if the file doesn't exists it will be invalid and your checks will throw an error(TrieKeyExists(g_tUnPrecache, .....)).
Edit: After testing it seems that server crash when file doesn't exists, you should do as I said to avoid that.

When parsing the file, trim found data because if someone use a space before ";" your check will fail.
Code:

;sth
. Here Data[0] is not ; but the line should be ignored.

PHP Code:

formatex(szFilecharsmax(szFile), "%s/unprecacher.ini"szFile

It should be format.

You didn't care to test this properly, because of:
PHP Code:

log_amx("[ PRECACHE KIT ] %s NOT FOUND"

I think you see the mistake.
Use formatex and not format when not formatting in the same buffer from where you get values.
I think that you can use only one trie, instead of 3(models/sound/generic) and set with an identifier(0 for models, 1 for sounds and so on).

You are not saying anything about unprecacher.ini file, it should be created by the user or is this automatically ? Even if in archive, you should add the instructions to the first post.

Just what I saw when fastly reading your code...

zmd94 03-15-2015 06:52

Re: Precache Kit
 
Quote:

Originally Posted by Jhob94 (Post 2273926)
Yet, be careful. If you unprecache one file that is used (for example models/v_knife.mdl), the server will probably crash.

So, it is possible for you to add some sort of code to prevent something like above to happen?

Jhob94 03-15-2015 07:47

Re: Precache Kit
 
@Hamlet
Thanks for reporting, as you probably saw, distraction errors.
About unprecacher.ini installation, i will do it, when i have time.
About using one trie instead of 3, i dont see what's the point of doing that.

@zmd
no, i cant.
The game will crash depending of what file you unprecache. If you unprecache a model like knife, it will crash. If you unprecache an sound, it will throw an error on client side but i think it doesn't crash.

Arkshine 03-15-2015 08:39

Re: Precache Kit
 
I remember starting something like that I've never finished.
If you want make this useful, just listing is not really helpful. The whole point of checking inside precached list is to see what is responsible to precache what files. It could be a pawn plugin, an amxx module or a metamod plugin. Having an global overview of this will help you to understand from where you could optimize, in the meaning reducing precache count, depending the map.
Basically to make this useful, you need to retrieve full details of everything.

"Unprecaching" is welcomed too, but this requires you filter things a bit more, because yes, you know when an entity is about to be created and you can block that. There are a lot of things you can do around that.

You should really study more the game and such.

Jhob94 03-15-2015 09:22

Re: Precache Kit
 
Quote:

Originally Posted by Arkshine (Post 2274105)
I remember starting something like that I've never finished.
If you want make this useful, just listing is not really helpful. The whole point of checking inside precached list is to see what is responsible to precache what files. It could be a pawn plugin, an amxx module or a metamod plugin. Having an global overview of this will help you to understand from where you could optimize, in the meaning reducing precache count, depending the map.
Basically to make this useful, you need to retrieve full details of everything.

"Unprecaching" is welcomed too, but this requires you filter things a bit more, because yes, you know when an entity is about to be created and you can block that. There are a lot of things you can do around that.

You should really study more the game and such.

The point of this plugin is to people know what files are being precached and check what they don't need.
Yet, I see your point and i agree, this can be more advanced. I will give a try on my free time during weekends. But this plugin still being usefull for now since it still helping people having a control under the server. I also thought about unprecache per map but after thinking for a while i thought it doesn't worth it. I mean, i think its very unlikely that i want to unprecache an file in de_dust2 and not in cs_italy.

zmd94 03-15-2015 09:54

Re: Precache Kit
 
Alright, Jhob94. By the way, nice plugin. ;)


All times are GMT -4. The time now is 01:15.

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