View Single Post
JoinedSenses
Senior Member
Join Date: Sep 2013
Old 01-13-2019 , 17:14   Re: SM File/Folder Downloader and Precacher
Reply With Quote #484

Attached a version with new syntax.

This version also performs searching in custom folders for files, eg /tf/custom/my_custom_folder/maps

If using this version and you have things in a custom folder, then just put the normal search path in the downloads(_simple).ini files

For example - if file is here:
tf/custom/my_custom_folder/model/some_model/whatever.mdl
Add model/some_model/whatever.mdl to the ini file used and place it in the corresponding location for fastdl

server layout
Code:
tf/custom/my_custom_folder/maps/jump_minecraftia_preview22_particles.txt
tf/custom/my_custom_folder/resource/jump_minecraftia_preview22.res
tf/custom/my_custom_folder/particles/torcheffects.pcf

OR

tf/maps/jump_minecraftia_preview22_particles.txt
tf/resource/jump_minecraftia_preview22.res
tf/particles/torcheffects.pcf
downloads.ini
Code:
//Don't modify or remove the Comment Lines ( // )
//Files (Download Only No Precache)
maps/jump_minecraftia_preview22_particles.txt
resource/jump_minecraftia_preview22.res
particles/torcheffects.pcf

//Decal Files (Download and Precache)

//Sound Files (Download and Precache)

//Model Files (Download and Precache)
fastdl layout
Code:
sv_downloadurl "http://whateverserver.com/fastdl/"

http://whateverserver.com/fastdl/maps/jump_minecraftia_preview22_particles.txt
http://whateverserver.com/fastdl/resource/jump_minecraftia_preview22.res
http://whateverserver.com/fastdl/particles/torcheffects.pcf
Attached Files
File Type: smx sm_downloader.smx (7.0 KB, 469 views)
File Type: sp Get Plugin or Get Source (sm_downloader.sp - 909 views - 6.8 KB)
__________________

Last edited by JoinedSenses; 01-13-2019 at 22:21.
JoinedSenses is offline