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

SM File/Folder Downloader and Precacher


Post New Thread Reply   
 
Thread Tools Display Modes
Byte
Senior Member
Join Date: Jun 2010
Location: 📦 CCSPlayer
Old 12-31-2016 , 18:51   Re: SM File/Folder Downloader and Precacher
Reply With Quote #471

Quote:
Originally Posted by wolvez04 View Post
Latest update broke this?

[SM] Blaming: sm_downloader.smx()
[SM] Call stack trace:
[SM] [0] ReadDirEntry
[SM] [1] Line 132, /home/forums/content/files/5/6/6/9/1/153448.attach::ReadFileFolder()
[SM] [2] Line 190, /home/forums/content/files/5/6/6/9/1/153448.attach::ReadDownloads()
[SM] [3] Line 112, /home/forums/content/files/5/6/6/9/1/153448.attach::OnMapStart()


Is there an alternative I can use instead of sm_downloader?
I had this issue as well.
Decided to rewrite the plugin for my needs, might help you too:
https://forums.alliedmods.net/showthread.php?p=2482368
__________________
STEAM: /id/invexbyte | Github: Mo Beigi | Discord: Byte#0017
Community: Invex Gaming | My Plugins: Click Me!

Byte is offline
hoanganh81097
Senior Member
Join Date: Apr 2016
Old 01-06-2017 , 16:06   Re: SM File/Folder Downloader and Precacher
Reply With Quote #472

what is the "precache" meaning ?
hoanganh81097 is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 01-06-2017 , 16:17   Re: SM File/Folder Downloader and Precacher
Reply With Quote #473

Quote:
Originally Posted by hoanganh81097 View Post
what is the "precache" meaning ?
http://www.pcmag.com/encyclopedia/term/60101/precaching
__________________
sneaK is offline
Smity
Member
Join Date: May 2017
Old 05-23-2017 , 07:32   Re: SM File/Folder Downloader and Precacher
Reply With Quote #474

[SM] Plugin downloader.smx failed to load: Unable to open file.

um... help?
__________________
Newbie Modders
Smity is offline
Byte
Senior Member
Join Date: Jun 2010
Location: 📦 CCSPlayer
Old 05-24-2017 , 19:08   Re: SM File/Folder Downloader and Precacher
Reply With Quote #475

Quote:
Originally Posted by Smity View Post
[SM] Plugin downloader.smx failed to load: Unable to open file.

um... help?
I think this plugin is broken (or was when I last used it).

I made a working version of it here if you want to manually specify files:
https://forums.alliedmods.net/showthread.php?p=2482368

There is also this one available:
https://forums.alliedmods.net/showthread.php?t=269792
__________________
STEAM: /id/invexbyte | Github: Mo Beigi | Discord: Byte#0017
Community: Invex Gaming | My Plugins: Click Me!

Byte is offline
Smity
Member
Join Date: May 2017
Old 05-28-2017 , 05:16   Re: SM File/Folder Downloader and Precacher
Reply With Quote #476

lol i fixed it! it wasnt broken
its me that put the sv_pure to 2 not to 0
__________________
Newbie Modders
Smity is offline
Byte
Senior Member
Join Date: Jun 2010
Location: 📦 CCSPlayer
Old 06-03-2017 , 04:28   Re: SM File/Folder Downloader and Precacher
Reply With Quote #477

Quote:
Originally Posted by Smity View Post
lol i fixed it! it wasnt broken
its me that put the sv_pure to 2 not to 0
You might not run into this issue but this plugin failed to download files properly for me at times and didn't spit out an error. I was wondering why some players wouldn't download various files thinking something was wrong with the fastdl but it was just this plugin.

Something to keep in mind if you experience that issue.
__________________
STEAM: /id/invexbyte | Github: Mo Beigi | Discord: Byte#0017
Community: Invex Gaming | My Plugins: Click Me!

Byte is offline
SmackDaddy
Veteran Member
Join Date: Oct 2009
Old 06-16-2017 , 20:00   Re: SM File/Folder Downloader and Precacher
Reply With Quote #478

Noob questions -- and I have done some searching of this post and didn't find my exact answers -- sorry if I overlooked or missed something.

Ok, so basically I have two plugins which seem to be broke (i.e. don't add the files associated with them to the server's download table) and as such, when people connect, they aren't getting the files from the fastDL redirect server.

My game host suggested this plugin and I have a couple questions:

1. If the files are listed in the following folder on my server: tf/custom/custom_files/
How do I type the path into the INI for them to download?

2. Which is preferred -- downloads or downloads_simple ?

3. How do I know which should be downloaded and which should be downloaded and precached?

4. Will the bz2 files that get downloaded be downloaded from my server or will they come from the fastDL server listed in sv_downloadurl cvar?

Thank you in advance for your time.
SmackDaddy is offline
SmackDaddy
Veteran Member
Join Date: Oct 2009
Old 06-16-2017 , 21:25   Re: SM File/Folder Downloader and Precacher
Reply With Quote #479

I tried using the download_simple and listed the files I needed:

materials/models/weapons/nades/duke1/w_grenade_conc_blu.vmt
materials/models/weapons/nades/duke1/w_grenade_conc_blu.vtf
materials/models/weapons/nades/duke1/w_grenade_conc_red.vmt
materials/models/weapons/nades/duke1/w_grenade_conc_red.vtf
materials/models/weapons/nades/duke1/w_grenade_emp_blu.vmt
etc etc....

And when I connected, it looked like it was downloading, but when I checked the downloads folder, the files weren't there.....I checked my fastDL server and can download them individually, so I know they exist there....

Any idea what could be the problem?

Last edited by SmackDaddy; 06-16-2017 at 21:26.
SmackDaddy is offline
Smity
Member
Join Date: May 2017
Old 07-09-2017 , 00:22   Re: SM File/Folder Downloader and Precacher
Reply With Quote #480

Quote:
Originally Posted by SmackDaddy View Post
I tried using the download_simple and listed the files I needed:

materials/models/weapons/nades/duke1/w_grenade_conc_blu.vmt
materials/models/weapons/nades/duke1/w_grenade_conc_blu.vtf
materials/models/weapons/nades/duke1/w_grenade_conc_red.vmt
materials/models/weapons/nades/duke1/w_grenade_conc_red.vtf
materials/models/weapons/nades/duke1/w_grenade_emp_blu.vmt
etc etc....

And when I connected, it looked like it was downloading, but when I checked the downloads folder, the files weren't there.....I checked my fastDL server and can download them individually, so I know they exist there....

Any idea what could be the problem?
Just put at your download_simple this

'GAME'/maps
'GAME'/materials
'GAME'/media
'GAME'/models
'GAME'/sound

Change the 'GAME' Into your game name

example : Team Fortress 2 = tf (ex. tf/maps)
Counter Strike = cstrike (ex. cstrike/maps)

and btw, change your profile pic. scary af
__________________
Newbie Modders
Smity 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 13:16.


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