View Single Post
jian yu
Member
Join Date: Jun 2021
Old 07-06-2021 , 07:22   Re: SM File/Folder Downloader and Precacher
Reply With Quote #499

HI ! its about my L4D2 server's problem
I tried to start a " customer map " instead of official map
my purpose is to allowing players to download the customer map via my google drive
( just click join and wait , it will download & install the customer map by auto via the game inside and doesnt need to download the map manual from the map webside instead inside of the game ).
and I just extract the " xxxx.vpk " map file by vpk.exe , and upload it on my google drive and set the folder to public and I put the link into the sourcemod.cfg with the command : sv_downloadurl (I also put my google drive l4d2 cutomer map link here) & sv_allowdownload 1
and I already set up the downloads_simple.ini file .

I just installed the plugins with this guide down below:

Quote:
Originally Posted by JoinedSenses View Post
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
but it still not working ! players just cant join my server straight but showed up the message that to makes them download the map by the link as the picture
Attached Thumbnails
Click image for larger version

Name:	a2.PNG
Views:	257
Size:	14.3 KB
ID:	190228   Click image for larger version

Name:	a3.PNG
Views:	271
Size:	40.7 KB
ID:	190229  

Last edited by jian yu; 07-06-2021 at 07:25.
jian yu is offline