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

Precache 512 Smart Solutions (?)


Post New Thread Reply   
 
Thread Tools Display Modes
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-15-2022 , 14:05   Re: Precache 512 Smart Solutions (?)
Reply With Quote #11

Quote:
If i dont remember wrongly, difference between precache generic/sound is that one is used to precache .wav files and the other one is used for .mp3 files
precache_sound() can still precache .mp3 files.

Quote:
But both of them add to precache limit error .
Wrong. precache_generic() does not add to the limit.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 05-15-2022 , 20:48   Re: Precache 512 Smart Solutions (?)
Reply With Quote #12

Quote:
Originally Posted by Craxor View Post
If i dont remember wrongly, difference between precache generic/sound is that one is used to precache .wav files and the other one is used for .mp3 files


don't remember wich one for is for wich.

But both of them add to precache limit error .

You can use oci method to remains less precaches but i suppose you use so many precaches that wont affect the end result, my advice is to only give up on some plugins that use too many models,sounds,sprites etc . Probably you should have a few useless onethat you can dispose ..
precache_generic does not count toward precache limit 512, that why so many people try to find a way to precache model though this method.
For sound, unless I have to emit it via emit_sound, I usually used precache_generic which included .mp3
some weapon have their sound included in the model, which can be used for precache_generic instead of precache_sound
__________________
My plugin:
Celena Luna is offline
MeliMeli
Senior Member
Join Date: Apr 2022
Location: Brazil
Old 05-16-2022 , 04:42   Re: Precache 512 Smart Solutions (?)
Reply With Quote #13

Even saving, the problem is the "Extra Items" that sometimes even have 7 precache_sounds and there's no way to use precache_generic in them because they don't have client_cmd

And let's assume that there are 7 extra, the 7 items each have 7 precache, it will be 49. Of course, some use 2 or 3, or even less.

Last edited by MeliMeli; 05-16-2022 at 04:44.
MeliMeli is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 05-16-2022 , 05:09   Re: Precache 512 Smart Solutions (?)
Reply With Quote #14

Quote:
Originally Posted by MeliMeli View Post
Even saving, the problem is the "Extra Items" that sometimes even have 7 precache_sounds and there's no way to use precache_generic in them because they don't have client_cmd

And let's assume that there are 7 extra, the 7 items each have 7 precache, it will be 49. Of course, some use 2 or 3, or even less.
You can just delay the inevitable capping 512 precache files unless you messing with the client code itself (which there is a mod did it but it is their private project) and you can't do it with just server side.

There are 2 posible action the we know up until now:
1. Unprecache unnecessary stuff which the unpreacher already did
2. Reduce number of precache_sound and replace it with precache_generic if the sound didn't emit
Or use less plugins
__________________
My plugin:

Last edited by Celena Luna; 05-16-2022 at 05:10.
Celena Luna is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 05-16-2022 , 12:47   Re: Precache 512 Smart Solutions (?)
Reply With Quote #15

Its not possible to precache models using precache_generic
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-16-2022 , 13:47   Re: Precache 512 Smart Solutions (?)
Reply With Quote #16

Quote:
Originally Posted by Natsheh View Post
Its not possible to precache models using precache_generic
With player models it's very possible.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
MeliMeli
Senior Member
Join Date: Apr 2022
Location: Brazil
Old 05-16-2022 , 15:32   Re: Precache 512 Smart Solutions (?)
Reply With Quote #17

Quote:
Originally Posted by OciXCrom View Post
With player models it's very possible.
You explained to me about using precache_generic when the plugin uses client_cmd instead of emit_sound, but you didn't talk about templates. Need to have something in the plugin about this? like some specific line to use precache_generic in models?

By the way I use the standard version of Mercylez in ZP 5.0 made by him, I used precache_management to see the amount of precaches loaded and it was about 344 by default, most of cs 1.6 itself.
MeliMeli is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 05-16-2022 , 15:40   Re: Precache 512 Smart Solutions (?)
Reply With Quote #18

What kind of template are you talking about? I very clearly said only player models can be precached with generic. All player models.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
MeliMeli
Senior Member
Join Date: Apr 2022
Location: Brazil
Old 05-16-2022 , 16:35   Re: Precache 512 Smart Solutions (?)
Reply With Quote #19

Yes, this. player models
MeliMeli is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 05-16-2022 , 20:39   Re: Precache 512 Smart Solutions (?)
Reply With Quote #20

Quote:
Originally Posted by MeliMeli View Post
You explained to me about using precache_generic when the plugin uses client_cmd instead of emit_sound, but you didn't talk about templates. Need to have something in the plugin about this? like some specific line to use precache_generic in models?

By the way I use the standard version of Mercylez in ZP 5.0 made by him, I used precache_management to see the amount of precaches loaded and it was about 344 by default, most of cs 1.6 itself.
There is no template. It as simple as it is.
"If sound used emitsound, you must use precache_sound. If it used mp3 or spk, you can use precache_generic"

If about the model, I haven't experenemt with it yet but it should be as simple.
__________________
My plugin:
Celena Luna 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 11:55.


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