Raised This Month: $32 Target: $400
 8% 

[Any] S-Downloader : Automated Download & Precache Resources


Post New Thread Reply   
 
Thread Tools Display Modes
Starbish
AlliedModders Donor
Join Date: Oct 2011
Location: South Korea
Old 08-19-2015 , 02:45   Re: [Any] S-Downloader : Automated Download & Precache Resources
Reply With Quote #21

Quote:
Originally Posted by 8guawong View Post
add a cvar to turn off auto precaching would be good
since most plugins precache themselves
i think most people would want to use this so they don't have to manually setup the downloadtable
i tested a doubled precache by executing codes below.

PHP Code:

public void OnMapStart(){

    for(;;)
        
PrecacheModel("models/weapons/v_handcuffs.mdl");

Server never crashes.

LOL.
__________________
Starbish is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 08-19-2015 , 03:50   Re: [Any] S-Downloader : Automated Download & Precache Resources
Reply With Quote #22

no i'm talking about precache alot of stuff
8guawong is offline
Starbish
AlliedModders Donor
Join Date: Oct 2011
Location: South Korea
Old 08-19-2015 , 05:54   Re: [Any] S-Downloader : Automated Download & Precache Resources
Reply With Quote #23

Quote:
Originally Posted by 8guawong View Post
no i'm talking about precache alot of stuff
Basic resources (which are already inside of srcds folder) will not be precached.

So there's no more problem.

If your additional resources are too much not to crash servers, then remove or exclude resources by using this plugin's feature.
__________________

Last edited by Starbish; 08-19-2015 at 05:54.
Starbish is offline
Starbish
AlliedModders Donor
Join Date: Oct 2011
Location: South Korea
Old 08-19-2015 , 07:05   Re: [Any] S-Downloader : Automated Download & Precache Resources
Reply With Quote #24

Quote:
Originally Posted by 8guawong View Post
no i'm talking about precache alot of stuff
In short, you want to say that "Many Plugins precache their resources by themselves."

so, if this plugin also precaches them, then it will make crash. it's your thought.

but it will never happen. cuz resources won't be precached again if they were precached before.

and if i add something to prevent something trivial, i think that will spoil this plugin's objective.
__________________
Starbish is offline
Starbish
AlliedModders Donor
Join Date: Oct 2011
Location: South Korea
Old 08-19-2015 , 09:30   Re: [Any] S-Downloader : Automated Download & Precache Resources
Reply With Quote #25

Updated to 1.1.1.19
__________________
Starbish is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 08-19-2015 , 11:11   Re: [Any] S-Downloader : Automated Download & Precache Resources
Reply With Quote #26

Quote:
Originally Posted by Starbish View Post
Updated to 1.1.1.19
thanks!
no i do not know if precaching the same stuff twice will take up more precache table
all i know is that for csgo there is a 1024 limit
8guawong is offline
MilkStick
Member
Join Date: Aug 2015
Old 08-23-2015 , 13:28   Re: [Any] S-Downloader : Automated Download & Precache Resources
Reply With Quote #27

If i were to exclude every file under a directory or a file, Can I do it so;

Quote:
sound/music/danielsadowski_01/*.*
sound/music/...
My server crashed out of nowhere. And suddenly I can't start it up when I have this plugin installed.

Guess I need to exclude a lot of things.
I get this in my logs:

Quote:
Warning: Table modelprecache is full, can't add sound/music/seanmurray_01/startaction_01.mp3

Last edited by MilkStick; 08-23-2015 at 13:31.
MilkStick is offline
Starbish
AlliedModders Donor
Join Date: Oct 2011
Location: South Korea
Old 08-24-2015 , 02:55   Re: [Any] S-Downloader : Automated Download & Precache Resources
Reply With Quote #28

Quote:
Originally Posted by MilkStick View Post
If i were to exclude every file under a directory or a file, Can I do it so;



My server crashed out of nowhere. And suddenly I can't start it up when I have this plugin installed.

Guess I need to exclude a lot of things.
I get this in my logs:
how many files do you have installed on your server?

it can be crashed if you add files too much.
__________________
Starbish is offline
Starbish
AlliedModders Donor
Join Date: Oct 2011
Location: South Korea
Old 08-24-2015 , 03:07   Re: [Any] S-Downloader : Automated Download & Precache Resources
Reply With Quote #29

Quote:
Originally Posted by MilkStick View Post
If i were to exclude every file under a directory or a file, Can I do it so;



My server crashed out of nowhere. And suddenly I can't start it up when I have this plugin installed.

Guess I need to exclude a lot of things.
I get this in my logs:
When excluding folders on this plugin, write like this : "models/players/wall_e"

and the files below that will not be precached nor downloadable.
__________________
Starbish is offline
scso1502
Senior Member
Join Date: Dec 2007
Location: Windsor, CA USA
Old 08-26-2015 , 10:08   Re: [Any] S-Downloader : Automated Download & Precache Resources
Reply With Quote #30

What convar did you add in your last update? Perhaps you could add it to your notes on the original post?

Also, I get the below errors in the SM error log when running the latest version of this on my TF2 server. Any idea why? It's looking for CS:GO for some reason.

Quote:
L 08/26/2015 - 06:50:01: [SM] Native "ReadDirEntry" reported: Invalid file handle 0 (error 4)
L 08/26/2015 - 06:50:01: [SM] Displaying call stack trace for plugin "S_Downloader.smx":
L 08/26/2015 - 06:50:01: [SM] [0] Line 71, D:\csgo\steamapps\common\Counter-Strike Global Offensive Beta - Dedicated Server\csgo\addons\sourcemod\scripting\S_Down loader.sp:rocess_RegisterResource()
L 08/26/2015 - 06:50:01: [SM] [1] Line 50, D:\csgo\steamapps\common\Counter-Strike Global Offensive Beta - Dedicated Server\csgo\addons\sourcemod\scripting\S_Down loader.sp::OnMapStart()
This is a great plugin and I really hope I can get it to work. Every downloader plugin I've tried fails to download these Hud files. I don't get it. The concept behind this one to simply grab all the files without a download list is awesome!

Thanks.
__________________

Lt. Maverick
BOOM! Gaming & Technology Community
www.boomgaming.net
scso1502 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 02:50.


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