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

[CSGO/?] Folder Downloader & Precacher


Post New Thread Reply   
 
Thread Tools Display Modes
Author
SpirT
Senior Member
Join Date: Sep 2018
Location: Portugal
Plugin ID:
7544
Plugin Version:
1.1.2
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Folder downloader and precacher
    Old 03-07-2021 , 14:13   [CSGO/?] Folder Downloader & Precacher
    Reply With Quote #1

    Folder Downloader & Precacher

    by SpirT

    Before commenting:
    I know, there are some plugins that do the same as the one I'm posting now, but, as I got some feedback, SM Downloader, S - Downloader and so on are crashing a lot of servers. In my country a lot of servers used to have those plugins. They tested mine, worked perfectly and isn't crashing the servers anymore! Therefore, I decided to upload mine here. Isn't so complex as the ones I refered above but does its job



    What is this?
    Adds the files inside the folders specified to the downloads table and they will be also precached. All subfolders inside those folders will be added as well. All files inside are going to be precached. The extensions allowed for download are: mp3, m4a, wav, mdl, vtx, vvd, phy, vmt, vtf, png, svg, bsp and nav.

    Requirements
    - SourceMod Installed on your server (plugin was tested on 1.10 build 6482)
    - MetaMod Installed on your server (plugin was tested on 1.10 build 1144)

    Installation
    • Upload all files to your server
    • Restart your server / change map / type this command in your server console: 'sm plugins reload spirt_folder_dl_precache'
    • Add your desired folders to 'addons/sourcemod/configs/SpirT/Folder-Downloader-Precacher/folders.txt' PS: Do not place a / at the end of the lines. As example leave as "models/weapons/my/folder" without the quotes ("")

    ToDo List
    • Nothing for now.

    GitHub Repo
    Latest Release

    Releases
    -------------
    1.1.2 :
    -> Fixed plugin not checking if a file or folder directory was valid, causing the plugin to crash.
    -------------
    1.1.1 :
    -> Fixed materials not being added to downloads and precache table (.vtf files)
    -> Config file changed from 'cfg/SpirT/folder-...' to 'cfg/spirt.dl.cfg'
    -------------
    1.1.0 (FIXED, YOU CAN USE IT NOW) :
    -> Added support to .pcf files (Thanks to Pedrotski for the idea)
    -> Added a cvar to stop the plugin adding files to the downloads table (Thanks to NanoC for the ideia of the cvars and file support)
    -> Added a cvar to stop the plugin from precaching files.
    -> Added a cvar to change between folder and file support.
    -> Added a config file placed at configs/SpirT/Folder-Download-Precache/files.txt to provide the files.
    -> Added a config file placed at cfg/SpirT to change cvar values.
    -------------
    1.0.1:
    -> Fixed sound precaching -> Thanks to LiveAndLetDie
    -------------
    1.0.0:
    -> Plugin Release
    -------------

    For any issue or bug, reply to the post or contact me on steam.
    __________________

    Last edited by SpirT; 06-27-2021 at 11:30. Reason: Version Update
    SpirT is offline
    TrS
    New Member
    Join Date: Mar 2021
    Old 03-07-2021 , 14:26   Re: [CSGO/?] Folder Downloader & Precacher
    Reply With Quote #2

    I loved this plugin I finally got a downloader that worked well. Good job.

    Last edited by TrS; 03-07-2021 at 16:14.
    TrS is offline
    SpirT
    Senior Member
    Join Date: Sep 2018
    Location: Portugal
    Old 03-07-2021 , 14:28   Re: [CSGO/?] Folder Downloader & Precacher
    Reply With Quote #3

    Quote:
    Originally Posted by TrS View Post
    I loved this plugin I finally got a downloade that worked well. Good job.
    Thanks for the feedback. Hope this could fix a lot of issues with crashes in the CS:GO Community & other game server mods as well
    __________________

    Last edited by SpirT; 03-07-2021 at 14:28.
    SpirT is offline
    kratoss1812
    Senior Member
    Join Date: May 2018
    Location: Romānia
    Old 03-07-2021 , 15:24   Re: [CSGO/?] Folder Downloader & Precacher
    Reply With Quote #4

    This is really helpfull since I usually have a lot of model files that are not posted with paths and I have to write down every line.

    And btw, I belive that SM Downloader crashes servers because of miss-configuration. I ve used it for a while and works like a charm from the first day.

    Any way, nice realease !
    __________________
    kratoss1812 is offline
    SpirT
    Senior Member
    Join Date: Sep 2018
    Location: Portugal
    Old 03-07-2021 , 15:35   Re: [CSGO/?] Folder Downloader & Precacher
    Reply With Quote #5

    Quote:
    Originally Posted by kratoss1812 View Post
    This is really helpfull since I usually have a lot of model files that are not posted with paths and I have to write down every line.

    And btw, I belive that SM Downloader crashes servers because of miss-configuration. I ve used it for a while and works like a charm from the first day.

    Any way, nice realease !
    Thanks for the reply and for the feedback. I've been using SM Downloader for a lot of time. Recently, I got some problems and it was crashing the server (the configuration isn't changed since november of 2017). Anyways, I hope this can fix the issues that people have, also if it is miss-configured, it won't crash the server like SM Downloader and some others do
    __________________

    Last edited by SpirT; 03-07-2021 at 16:55.
    SpirT is offline
    LiveAndLetDie
    Junior Member
    Join Date: Sep 2019
    Location: Finland
    Old 03-07-2021 , 17:08   Re: [CSGO/?] Folder Downloader & Precacher
    Reply With Quote #6

    Yo,
    https://github.com/SpirTBBX/Folder-D...ecache.sp#L156

    Did you mean PrecacheSound instead of PrecacheDecal there?
    LiveAndLetDie is offline
    SpirT
    Senior Member
    Join Date: Sep 2018
    Location: Portugal
    Old 03-08-2021 , 03:38   Re: [CSGO/?] Folder Downloader & Precacher
    Reply With Quote #7

    Quote:
    Originally Posted by LiveAndLetDie View Post
    Yo,
    https://github.com/SpirTBBX/Folder-D...ecache.sp#L156

    Did you mean PrecacheSound instead of PrecacheDecal there?
    Yea, I did, my bad

    That's fixed already, you can download the fixed version (1.0.1) here or @ github.
    Thanks for the feedback btw ;)
    __________________
    SpirT is offline
    NanoC
    Veteran Member
    Join Date: Jan 2016
    Location: Argentina
    Old 03-08-2021 , 07:09   Re: [CSGO/?] Folder Downloader & Precacher
    Reply With Quote #8

    Suggestion: add file support like SM Downloader.
    Eg:
    materials/models
    models/player
    maps
    sound/my_effect
    sound/example.mp3
    maps/map_test.bsp
    __________________

    Last edited by NanoC; 03-08-2021 at 07:09.
    NanoC is offline
    Send a message via Skype™ to NanoC
    SpirT
    Senior Member
    Join Date: Sep 2018
    Location: Portugal
    Old 03-08-2021 , 07:12   Re: [CSGO/?] Folder Downloader & Precacher
    Reply With Quote #9

    Quote:
    Originally Posted by NanoC View Post
    Suggestion: add file support like SM Downloader.
    Eg:
    materials/models
    models/player
    maps
    sound/my_effect
    sound/example.mp3
    maps/map_test.bsp
    Thanks for your suggestion. Well, the idea is to add all files and precache them without placing file by file. That's what my plugin improves, but of course, we can add a file to only add certain files ;)
    __________________
    SpirT is offline
    NanoC
    Veteran Member
    Join Date: Jan 2016
    Location: Argentina
    Old 03-08-2021 , 09:18   Re: [CSGO/?] Folder Downloader & Precacher
    Reply With Quote #10

    Quote:
    Originally Posted by SpirT View Post
    Thanks for your suggestion. Well, the idea is to add all files and precache them without placing file by file. That's what my plugin improves, but of course, we can add a file to only add certain files ;)
    maybe you can add a cvar (disabled as default) to control download/precaches with a list
    __________________
    NanoC is offline
    Send a message via Skype™ to NanoC
    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 07:28.


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