Raised This Month: $51 Target: $400
 12% 

Solved EXCEED That 512 Precache Limit


Post New Thread Reply   
 
Thread Tools Display Modes
FR0NTLINE
AlliedModders Donor
Join Date: Apr 2006
Location: Riverside Cali
Old 07-15-2017 , 21:12   Re: EXCEED That 512 Precache Limit
Reply With Quote #21

Quote:
Originally Posted by blanko View Post
Do you believe in santa claus too? Don't spread useless rumors nor HACKS here, it's FORBIDDEN!

It DOESN'T WORK! (of course, it's pretty obvious!)


Yeah Santa Clause is real, you need to watch ELF.
__________________
FR0NTLINE is offline
Send a message via AIM to FR0NTLINE Send a message via MSN to FR0NTLINE Send a message via Yahoo to FR0NTLINE
Godofwar
AlliedModders Donor
Join Date: Dec 2015
Location: Germany
Old 07-16-2017 , 04:33   Re: EXCEED That 512 Precache Limit
Reply With Quote #22

Attachment - i am using that and its works fine. I can add now 1024 MB.
Attached Files
File Type: sma Get Plugin or Get Source (Precache_Manager.sma - 1061 views - 5.0 KB)
Godofwar is offline
RAW_192
Senior Member
Join Date: Feb 2017
Old 07-16-2017 , 04:33   Re: EXCEED That 512 Precache Limit
Reply With Quote #23

I have a little question here ..

The plugin in gamebanana

even after installing it the server is precaching the files .. Can someone please confirm is this plugin correct ?

P.S - Mcache command is used to check the precached models by server right?

PHP Code:
#include <amxmodx>
#include <fakemeta>

#define PLUGIN "Addon: Precache Manager"
#define VERSION "1.0"
#define AUTHOR "Dias"

new Array:ArModel, Array:ArSound
new TempData[64]

new const 
UnPrecache_SoundList[125][] =
{
    
"models/w_antidote.mdl",
    
"models/w_security.mdl",
    
"models/w_longjump.mdl",
    
"items/suitcharge1.wav",
    
"items/suitchargeno1.wav",
    
"items/suitchargeok1.wav",
    
"common/wpn_hudoff.wav",
    
"common/wpn_hudon.wav",
    
"common/wpn_moveselect.wav",
    
"common/wpn_denyselect.wav",
    
"player/geiger6.wav",
    
"player/geiger5.wav",
    
"player/geiger4.wav",
    
"player/geiger3.wav",
    
"player/geiger2.wav",
    
"player/geiger1.wav  ",
    
"sprites/zerogxplode.spr",
    
"sprites/WXplo1.spr",
    
"sprites/steam1.spr",
    
"sprites/bubble.spr",
    
"sprites/bloodspray.spr",
    
"sprites/blood.spr",
    
"sprites/smokepuff.spr",
    
"sprites/eexplo.spr",
    
"sprites/fexplo.spr",
    
"sprites/fexplo1.spr",
    
"sprites/b-tele1.spr",
    
"sprites/c-tele1.spr",
    
"sprites/ledglow.spr",
    
"sprites/laserdot.spr",
    
"sprites/explode1.spr",
    
"weapons/bullet_hit1.wav",
    
"weapons/bullet_hit2.wav",
    
"items/weapondrop1.wav",
    
"weapons/generic_reload.wav",
    
"sprites/smoke.spr",
    
"buttons/bell1.wav",
    
"buttons/blip1.wav",
    
"buttons/blip2.wav",
    
"buttons/button11.wav",
    
"buttons/latchunlocked2.wav",
    
"buttons/lightswitch2.wav",
    
"ambience/quail1.wav",
    
"events/tutor_msg.wav",
    
"events/enemy_died.wav",
    
"events/friend_died.wav",
    
"events/task_complete.wav",
    
    
"weapons/ak47_clipout.wav",
    
"weapons/ak47_clipin.wav",
    
"weapons/ak47_boltpull.wav",
    
"weapons/aug_clipout.wav",
    
"weapons/aug_clipin.wav",
    
"weapons/aug_boltpull.wav",
    
"weapons/aug_boltslap.wav",
    
"weapons/aug_forearm.wav",
    
"weapons/c4_click.wav",
    
"weapons/c4_beep1.wav",
    
"weapons/c4_beep2.wav",
    
"weapons/c4_beep3.wav",
    
"weapons/c4_beep4.wav",
    
"weapons/c4_beep5.wav",
    
"weapons/c4_explode1.wav",
    
"weapons/c4_plant.wav",
    
"weapons/c4_disarm.wav",
    
"weapons/c4_disarmed.wav",
    
"weapons/elite_reloadstart.wav",
    
"weapons/elite_leftclipin.wav",
    
"weapons/elite_clipout.wav",
    
"weapons/elite_sliderelease.wav",
    
"weapons/elite_rightclipin.wav",
    
"weapons/elite_deploy.wav",
    
"weapons/famas_clipout.wav",
    
"weapons/famas_clipin.wav",
    
"weapons/famas_boltpull.wav",
    
"weapons/famas_boltslap.wav",
    
"weapons/famas_forearm.wav",
    
"weapons/g3sg1_slide.wav",
    
"weapons/g3sg1_clipin.wav",
    
"weapons/g3sg1_clipout.wav",
    
"weapons/galil_clipout.wav",
    
"weapons/galil_clipin.wav",
    
"weapons/galil_boltpull.wav",
    
"weapons/m4a1_clipin.wav",
    
"weapons/m4a1_clipout.wav",
    
"weapons/m4a1_boltpull.wav",
    
"weapons/m4a1_deploy.wav",
    
"weapons/m4a1_silencer_on.wav",
    
"weapons/m4a1_silencer_off.wav",
    
"weapons/m249_boxout.wav",
    
"weapons/m249_boxin.wav",
    
"weapons/m249_chain.wav",
    
"weapons/m249_coverup.wav",
    
"weapons/m249_coverdown.wav",
    
"weapons/mac10_clipout.wav",
    
"weapons/mac10_clipin.wav",
    
"weapons/mac10_boltpull.wav",
    
"weapons/mp5_clipout.wav",
    
"weapons/mp5_clipin.wav",
    
"weapons/mp5_slideback.wav",
    
"weapons/p90_clipout.wav",
    
"weapons/p90_clipin.wav",
    
"weapons/p90_boltpull.wav",
    
"weapons/p90_cliprelease.wav",
    
"weapons/p228_clipout.wav",
    
"weapons/p228_clipin.wav",
    
"weapons/p228_sliderelease.wav",
    
"weapons/p228_slidepull.wav",
    
"weapons/scout_bolt.wav",
    
"weapons/scout_clipin.wav",
    
"weapons/scout_clipout.wav",
    
"weapons/sg550_boltpull.wav",
    
"weapons/sg550_clipin.wav",
    
"weapons/sg550_clipout.wav",
    
"weapons/sg552_clipout.wav",
    
"weapons/sg552_clipin.wav",
    
"weapons/sg552_boltpull.wav",
    
"weapons/ump45_clipout.wav",
    
"weapons/ump45_clipin.wav",
    
"weapons/ump45_boltslap.wav",
    
"weapons/usp_clipout.wav",
    
"weapons/usp_clipin.wav",
    
"weapons/usp_silencer_on.wav",
    
"weapons/usp_silencer_off.wav",
    
"weapons/usp_sliderelease.wav",
    
"weapons/usp_slideback.wav"
}

new 
Shit

public plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
server_print("[ZD] Precache Manager: Reserved Slots (Model: %i | Sound: %i)"512 ArraySize(ArModel), 512 ArraySize(ArSound))
}

public 
plugin_precache()
{
    
ArModel ArrayCreate(641)
    
ArSound ArrayCreate(641)
    
    
register_forward(FM_PrecacheModel"fw_PrecacheModel")
    
register_forward(FM_PrecacheSound"fw_PrecacheSound")
}

public 
fw_PrecacheModel(const Model[])
{
    new 
Precached 0
    
    
for(new 0ArraySize(ArModel); i++)
    {
        
ArrayGetString(ArModeliTempDatasizeof(TempData))
        if(
equal(TempDataModel)) { Precached 1; break; }
    }
    
    if(!
PrecachedArrayPushString(ArModelModel)
}

public 
fw_PrecacheSound(const Sound[])
{
    if(
Sound[0] == 'h' && Sound[1] == 'o'
        return 
FMRES_SUPERCEDE
        
    write_file
("Sound.dias"SoundShit)
    
Shit++
    
    for(new 
0sizeof(UnPrecache_SoundList); i++)
    {
        if(
equal(SoundUnPrecache_SoundList[i]))
            return 
FMRES_SUPERCEDE
    
}
    
    
write_file("Sound2.dias"SoundShit)
    
Shit++
        
    new 
Precached 0
    
    
for(new 0ArraySize(ArSound); i++)
    {
        
ArrayGetString(ArSoundiTempDatasizeof(TempData))
        if(
equal(TempDataSound)) { Precached 1; break; }
    }
    
    if(!
PrecachedArrayPushString(ArSoundSound)
    
    return 
FMRES_HANDLED
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1042\\ f0\\ fs16 \n\\ par }
*/ 

Last edited by RAW_192; 07-16-2017 at 04:42.
RAW_192 is offline
kristi
Senior Member
Join Date: Nov 2016
Old 07-16-2017 , 17:49   Re: EXCEED That 512 Precache Limit
Reply With Quote #24

Quote:
Originally Posted by Godofwar View Post
I can add now 1024 MB.
lol.
kristi is offline
Send a message via Skype™ to kristi
NITRO_GOD
Member
Join Date: Mar 2017
Location: De_dust2
Old 07-17-2017 , 04:28   Re: EXCEED That 512 Precache Limit
Reply With Quote #25

If we unprecache all those sounds that means those sounds wont play when i use the weapon ? :O
__________________
My Work in zppv [RaDNoX] http://zppv.boards.net/thread/2562/m...tems-zp-radnox

Join zppv for help in Zombie Plague!
NITRO_GOD is offline
Send a message via Skype™ to NITRO_GOD
Old 07-17-2017, 05:21
Ayman Khaled
This message has been deleted by Ayman Khaled.
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-17-2017 , 07:29   Re: EXCEED That 512 Precache Limit
Reply With Quote #26

Quote:
Originally Posted by NITRO_GOD View Post
If we unprecache all those sounds that means those sounds wont play when i use the weapon ? :O
No its already on client side...

Make sure you unprecaching original sounds on client side, and useless and unused ones..
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 07-17-2017 at 07:33.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 07-17-2017 , 15:23   Re: EXCEED That 512 Precache Limit
Reply With Quote #27

so, even if i dont need more than the precache limit, will it do any good to unprecache those files? or it wont make any diference?
tarsisd2 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-17-2017 , 16:41   Re: EXCEED That 512 Precache Limit
Reply With Quote #28

500 limit sounds a good limit since alot of servers dont use alot of resources...

Unprecache useless files as alot as you need...
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 07-17-2017 at 16:43.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Old 09-20-2017, 23:52
Anonymous
This message has been deleted by Anonymous. Reason: zzzzzzzzzzz
Anonymous
Member
Join Date: Nov 2009
Location: Anonuser.org
Old 09-20-2017 , 23:55   Re: EXCEED That 512 Precache Limit
Reply With Quote #29

Quote:
Originally Posted by NITRO_GOD View Post
If we unprecache all those sounds that means those sounds wont play when i use the weapon ? :O
It will unprecache the files but if anything else requires them, they will stay precached.. It only unprecaches the files that aren't being used.

If you have any questions you should add the original author http://steamcommunity.com/id/sneakyamxx/

Quote:
Originally Posted by HamletEagle View Post
Not even then, it's hardcoded in client too, if I'm not wrong.
This is why this forum has become complete shit. Because people like this guy have become plugin approvers when they know absolutely nothing about the goldsource engine.

If anyone wants advice or needs work done i suggest you contact the real experts at the GlobalModders website

Quote:
Originally Posted by blanko View Post
Do you believe in santa claus too? Don't spread useless rumors nor HACKS here, it's FORBIDDEN!

It DOESN'T WORK! (of course, it's pretty obvious!)
You're an idiot, why do you voice your opinion on shit you don't even know? Every moderator on this site is full of shit, especially arkshine.
__________________
This site is filled with shitters who call themselves experts.

Last edited by Anonymous; 09-21-2017 at 00:02.
Anonymous is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-21-2017 , 12:33   Re: EXCEED That 512 Precache Limit
Reply With Quote #30

@Anonymous chill dude. Since you are claiming you can increase the 512 precache limit please show us how to do so since you obviously know way more about the engine than we do.
__________________

Last edited by HamletEagle; 09-21-2017 at 12:33.
HamletEagle 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 10:38.


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