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

SM File/Folder Downloader and Precacher


Post New Thread Reply   
 
Thread Tools Display Modes
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
Old 09-17-2015 , 04:29   Re: SM File/Folder Downloader and Precacher
Reply With Quote #431

Quote:
Originally Posted by Darkness_ View Post
HTML tags don't work on here (thankfully).
That's not true, I've seen it in action
Alexmy is offline
Reminiscences
New Member
Join Date: Sep 2015
Old 09-17-2015 , 06:41   Re: SM File/Folder Downloader and Precacher
Reply With Quote #432

I use this + Root_'s Skins Chooser and it works perfectly for me. Never had a problem.
Reminiscences is offline
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
Old 09-17-2015 , 09:07   Re: SM File/Folder Downloader and Precacher
Reply With Quote #433

Quote:
Originally Posted by Reminiscences View Post
I use this + Root_'s Skins Chooser and it works perfectly for me. Never had a problem.
May I ask name game?
Alexmy is offline
winter96
Member
Join Date: Oct 2013
Old 10-25-2015 , 02:43   Re: SM File/Folder Downloader and Precacher
Reply With Quote #434

How to fix this is?
--
L 10/25/2015 - 09:27:19: [SM] Plugin encountered error 30: Script execution timed out
L 10/25/2015 - 09:27:19: [SM] Displaying call stack trace for plugin "sm_downloader.smx":
L 10/25/2015 - 09:27:19: [SM] [0] Line 145, /home/groups/alliedmodders/forums/files/3/8/9/9/6/118732.attach::ReadFileFolder()
L 10/25/2015 - 09:27:19: [SM] [1] Line 190, /home/groups/alliedmodders/forums/files/3/8/9/9/6/118732.attach::ReadDownloads()
L 10/25/2015 - 09:27:19: [SM] [2] Line 112, /home/groups/alliedmodders/forums/files/3/8/9/9/6/118732.attach::OnMapStart()
winter96 is offline
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 10-28-2015 , 04:00   Re: SM File/Folder Downloader and Precacher
Reply With Quote #435

Quote:
Originally Posted by winter96 View Post
How to fix this is?
--
L 10/25/2015 - 09:27:19: [SM] Plugin encountered error 30: Script execution timed out
L 10/25/2015 - 09:27:19: [SM] Displaying call stack trace for plugin "sm_downloader.smx":
L 10/25/2015 - 09:27:19: [SM] [0] Line 145, /home/groups/alliedmodders/forums/files/3/8/9/9/6/118732.attach::ReadFileFolder()
L 10/25/2015 - 09:27:19: [SM] [1] Line 190, /home/groups/alliedmodders/forums/files/3/8/9/9/6/118732.attach::ReadDownloads()
L 10/25/2015 - 09:27:19: [SM] [2] Line 112, /home/groups/alliedmodders/forums/files/3/8/9/9/6/118732.attach::OnMapStart()
Was there anything special you did?
Because the timeout error on Line 145 doesn't make a lot of sense to me.
__________________
SWAT_88 is offline
skyldgh
New Member
Join Date: Nov 2015
Old 11-30-2015 , 17:09   Re: SM File/Folder Downloader and Precacher
Reply With Quote #436

heya

I've been having alot of trouble trying to install custom sounds on my tf2 server. I have this plugin right here:

https://forums.alliedmods.net/showth...02270?p=602270

I put my custom sounds in the sounds file, they "download", but i'm the only one that can hear them, since i have it on my client side of tf2.

Here is my download.ini code right here:

[QUOTE//Don't modify or remove the Comment Lines ( // )
//Files (Download Only No Precache)

//Decal Files (Download and Precache)

//Sound Files (Download and Precache)

sound/Disco Putin/sound/music/cossack_sandvich.wav
sound/Metal Crusher Minigun/sound/weapons/minigun_shoot.wav
sound/Metal Crusher Minigun/sound/weapons/minigun_shoot_crit.wav
sound/Metal Crusher Minigun/sound/weapons/minigun_spin.wav
sound/my_custom_stuff/sound/Announcer_ends_1sec.wav
sound/my_custom_stuff/sound/Announcer_ends_2sec.wav
sound/my_custom_stuff/sound/Announcer_ends_3sec.wav
sound/my_custom_stuff/sound/Announcer_ends_4sec.wav
sound/my_custom_stuff/sound/Announcer_ends_5sec.wav
sound/my_custom_stuff/sound/Announcer_ends_10sec.wav
sound/my_custom_stuff/sound/Announcer_ends_30sec.wav
sound/my_custom_stuff/sound/Announcer_ends_60sec.wav
sound/dogsongfreezecam.vpk
sound/temspenser.vpk

//Model Files (Download and Precache)[/QUOTE]
Does anyone know what is wrong, or have a tutorial on how to do it?
skyldgh is offline
electronic_m
New Member
Join Date: Dec 2015
Old 12-16-2015 , 10:28   Re: SM File/Folder Downloader and Precacher
Reply With Quote #437

Quote:
Originally Posted by Powerlord View Post
I don't know if this will fix the SteamPipe issue or not, but I changed the FileExists calls to pass true as the second argument, which should allow it to read VPK files and directories under custom/

DirExists has no equivalent, though, so it may still fail.
Some other changes are needed.

Code:
130 -	if(DirExists(path)){
130 +	if(DirExists(path, true)){

131 -		dirh = OpenDirectory(path);
131 +		dirh = OpenDirectory(path, true);

239 -	else if (!StrEqual(buffer,"",false) && FileExists(buffer))
239 +	else if (!StrEqual(buffer,"",false) && FileExists(buffer, true))

294 -	else if (!StrEqual(buffer,"",false) && FileExists(buffer))
294 +	else if (!StrEqual(buffer,"",false) && FileExists(buffer, true))
Attached Files
File Type: sp Get Plugin or Get Source (sm_downloader.sp - 1735 views - 6.9 KB)
electronic_m is offline
Trans_Am_00
Senior Member
Join Date: Jul 2013
Location: 127.0.0.1
Old 12-19-2015 , 06:35   Re: SM File/Folder Downloader and Precacher
Reply With Quote #438

Quote:
Originally Posted by SWAT_88 View Post
Description:
This Plugin downloads and precaches the Files in downloads.ini.
There are several categories for Download and Precache in downloads.ini.
If you write no mapname the plugin downloads it in any map, else the plugin only download the files under the mapname if the map is running.
For more information see examples files.
The downloads_simple.ini contains simple downloads (no precache), like the original.
Folder Download usage:
Write your folder name in the downloads.ini or downloads_simple.ini.
Example:
Correct: sound/misc
Incorrect: sound/misc/
Lets say i wanna Downloader and Precacher file which is inside Map & Model, how do i write it in downloads_simple.ini ?

Like this?

downloads_simple.ini
Code:
map
model
__________________
-= Trans-Am =-
Quote:
Where pink owns everything
Trans_Am_00 is offline
valio_skull
Senior Member
Join Date: Jan 2013
Location: at home
Old 12-20-2015 , 16:54   Re: SM File/Folder Downloader and Precacher
Reply With Quote #439

Can it download maps/map.txt files ?
For example if I want to change the message when the map is loading.
I know a server that downloads map.txt for all maps, and if I join the server, everytime I load a default map I get their message.
__________________
valio_skull is offline
New.ZM.Life
Veteran Member
Join Date: Sep 2014
Location: Iran
Old 01-14-2016 , 15:27   Re: SM File/Folder Downloader and Precacher
Reply With Quote #440

Quote:
1.1 Added new features:
Added security checks.
Added map specific downloads.
Added simple downloads.
works with map prefixes or not?
for example , download models/any.mdl only in deathrun_ maps
__________________
PLUGINS

Zombie Plague 5.0 + New Modes

Added NightCrawler Mode to ZP





New.ZM.Life 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:18.


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