AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved about precache 512limit, please help me, really weird (https://forums.alliedmods.net/showthread.php?t=301644)

zkfpk6 09-30-2017 02:28

about precache 512limit, please help me, really weird
 
i precache 13 .mdl files in a skin plugin
and i got a crash message on the dyd_bhop(when i load the skin plugin)
https://preview.ibb.co/crMgYw/66_D62..._F501388_F.jpg
i search about it, and i know i must reduce precache .wav/.mdl/.spr, so, i delete 4 .mdl and 3 .wav precache code line, and disable a plugin called "cmdmenu.amxx"(at least 15+ .wav).
B U T!
still crash!!!and same reason!!!
when i change other map which is more and more .mdl line in .res files than this map, it's NOT CRASH?!?!WTF?
i must reduce precache .mdl only? but i really cant do this, i only precache 2 .mdl in other plugins

plz help

zkfpk6 09-30-2017 03:16

Re: about precache 512limit, please help me, really weird
 
https://preview.ibb.co/mMaQtw/QQ20170930_151147.png
i try to connect my server with a new clean cs client, only download these resource(without map resource),
too much? i feel not.

TheSpaniard 09-30-2017 03:35

Re: about precache 512limit, please help me, really weird
 
Quote:

Originally Posted by zkfpk6 (Post 2551625)
i precache 13 .mdl files in a skin plugin
and i got a crash message on the dyd_bhop(when i load the skin plugin)
https://preview.ibb.co/crMgYw/66_D62..._F501388_F.jpg
i search about it, and i know i must reduce precache .wav/.mdl/.spr, so, i delete 4 .mdl and 3 .wav precache code line, and disable a plugin called "cmdmenu.amxx"(at least 15+ .wav).
B U T!
still crash!!!and same reason!!!
when i change other map which is more and more .mdl line in .res files than this map, it's NOT CRASH?!?!WTF?
i must reduce precache .mdl only? but i really cant do this, i only precache 2 .mdl in other plugins

plz help

Learn To Search Go Here

PRoSToTeM@ 09-30-2017 03:36

Re: about precache 512limit, please help me, really weird
 
Quote:

Originally Posted by zkfpk6 (Post 2551625)
when i change other map which is more and more .mdl line in .res files than this map, it's NOT CRASH?!?!WTF?

Brush models are also counted. Some maps have about 300 brush models.

zkfpk6 09-30-2017 04:39

Re: about precache 512limit, please help me, really weird
 
Quote:

Originally Posted by TheSpaniard (Post 2551628)
Learn To Search Go Here

trust me, i already searched again and again, all they told me is to reduce precache. like i said, dont work.

DjSoftero 09-30-2017 04:46

Re: about precache 512limit, please help me, really weird
 
you can use this:
Spoiler

to see how much files are precached. link https://forums.alliedmods.net/showthread.php?t=71193

zkfpk6 09-30-2017 11:54

Re: about precache 512limit, please help me, really weird
 
Quote:

Originally Posted by DjSoftero (Post 2551638)
you can use this:
Spoiler

to see how much files are precached. link https://forums.alliedmods.net/showthread.php?t=71193

tk u bro, i try this but it seems not log complete, i cant find my mdl in the log file. and when i crash, only log 405 precache.
by the way, can i reduce the default cstrike precache? my server is only kz, so dont need too much precache.

DjSoftero 09-30-2017 12:56

Re: about precache 512limit, please help me, really weird
 
you can use this: https://gamebanana.com/gamefiles/4165 to unprecache some junk files. the sounds will play as they should. because client has them downloaded.

as for the precache counter, it`s not 100% accurate.

DarthMan 10-02-2017 08:00

Re: about precache 512limit, please help me, really weird
 
Quote:

Originally Posted by DjSoftero (Post 2551719)
you can use this: https://gamebanana.com/gamefiles/4165 to unprecache some junk files. the sounds will play as they should. because client has them downloaded.

as for the precache counter, it`s not 100% accurate.

I made something a bit simillar for my game servers, but unlike this 1, it reads from an ini file. Basicall it checks the mapname and looks for the ini file inside the unprecache folder and if it's found, it will start un-precaching the resources. For his needs i guess this un-precacher is more than good.

HamletEagle 10-03-2017 15:17

Re: about precache 512limit, please help me, really weird
 
Quote:

Originally Posted by DjSoftero (Post 2551719)
you can use this: https://gamebanana.com/gamefiles/4165 to unprecache some junk files. the sounds will play as they should. because client has them downloaded.

as for the precache counter, it`s not 100% accurate.

Fakemeta hooks are not triggered by plugin calls. What I mean is that if a plugin precaches something FM_PrecacheModel will not be called.
To fix that you have to hook pfnPrecacheModel with orpheu instead of fakemeta.


All times are GMT -4. The time now is 00:59.

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