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

File Downloads


Post New Thread Reply   
 
Thread Tools Display Modes
Author
ReFlexPoison
☠☠☠
Join Date: Jul 2011
Location: ☠☠☠
Plugin ID:
4441
Plugin Version:
1.2
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Download files from the internet
    Old 12-06-2014 , 23:41   File Downloads
    Reply With Quote #1

    File Downloads

    Description:
    Download files from the internet. Simple - as - that. Ever wanted to use a cfg file on all 15 of your servers but didn't want to drag it into every one of them... this will help eliminate that issue.
    Installation:
    • Place filedownloads.smx in your plugins folder
    • Place filedownloads.cfg in your configs folder
    • Download and install System2, Socket, cURL, or SteamTools.

    Configuration:
    PHP Code:
    "File Downloads"
    {
        
    "advertisements.cfg"
        
    {
            
    "url"        "www.somewebsite.com/advertisements.txt"
            "path"        "configs/advertisements.txt"
        
    }
        
    "console_welcome.cfg"
        
    {
            
    "url"        "www.someotherwebsite.com/console_welcome.txt"
            "path"        "configs/console_welcome.txt"
        
    }

    Control Variables:
    • sm_filedownloads_eachmap - Force files to redownload whenever the map changes? 0 = Disabled 1 = Enabled
    • sm_filedownloads_method - What extension handles downloads? 0 = None 1 = Socket 2 = cURL 3 = SteamTools 4 = System2

    Commands:
    • sm_filedownloads_files - Redownload all files from filedownloads.cfg

    Version Log:
    • Version 1.1
      • Added control variable to choose what extension to handle downloads
    • Version 1.1
    • Version 1.0
      • Initial Release

    My Plugins
    intox Gaming
    Attached Files
    File Type: sp Get Plugin or Get Source (filedownloads.sp - 499 views - 10.8 KB)
    File Type: smx filedownloads.smx (9.7 KB, 513 views)
    File Type: cfg filedownloads.cfg (273 Bytes, 564 views)

    Last edited by ReFlexPoison; 12-28-2014 at 19:02.
    ReFlexPoison is offline
    Root_
    Veteran Member
    Join Date: Jan 2012
    Location: ryssland
    Old 12-06-2014 , 23:47   Re: File Downloads
    Reply With Quote #2

    Not bad... I would like to see more extensions for support.
    You can use download code from this snippet, I can confirm that it works on all file types by all extensions.
    __________________


    dodsplugins.com - Plugins and Resources for Day of Defeat
    http://twitch.tv/zadroot
    Root_ is offline
    ReFlexPoison
    ☠☠☠
    Join Date: Jul 2011
    Location: ☠☠☠
    Old 12-07-2014 , 01:36   Re: File Downloads
    Reply With Quote #3

    Quote:
    Originally Posted by Root_ View Post
    Not bad... I would like to see more extensions for support.
    You can use download code from this snippet, I can confirm that it works on all file types by all extensions.
    Alright. Thanks for forwarding that. I pushed an update to support most of those extensions.

    Last edited by ReFlexPoison; 12-07-2014 at 01:36.
    ReFlexPoison is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 12-07-2014 , 03:47   Re: File Downloads
    Reply With Quote #4

    can you make it cache the timestamps of the files on the webserver and compare the two before initializing a download of that file?
    Mitchell is offline
    Root_
    Veteran Member
    Join Date: Jan 2012
    Location: ryssland
    Old 12-07-2014 , 06:18   Re: File Downloads
    Reply With Quote #5

    Please add support for SteamWorks as well because ST not working for CS:GO.
    __________________


    dodsplugins.com - Plugins and Resources for Day of Defeat
    http://twitch.tv/zadroot
    Root_ is offline
    ocwoody
    AlliedModders Donor
    Join Date: Nov 2010
    Location: huh
    Old 12-08-2014 , 11:02   Re: File Downloads
    Reply With Quote #6

    Oh this is awesome! Great work!
    __________________

    ocwoody is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 12-10-2014 , 17:48   Re: File Downloads
    Reply With Quote #7

    Makes me wonder if a search all directories/save them here type plugin would be useful for easy/fast server setup. (i.e. download all custom models, maps, etc. from a webhost and save it on a new server and save the pain of destroying your own connection to upload them.)
    Possible bz2 support?
    Mitchell is offline
    ReFlexPoison
    ☠☠☠
    Join Date: Jul 2011
    Location: ☠☠☠
    Old 12-10-2014 , 18:01   Re: File Downloads
    Reply With Quote #8

    Quote:
    Originally Posted by Mitchell View Post
    Possible bz2 support?
    Use System 2. It should extract them.

    EDIT: I'll make it so you can choose what extension to use.

    Last edited by ReFlexPoison; 12-12-2014 at 21:31.
    ReFlexPoison is offline
    ReFlexPoison
    ☠☠☠
    Join Date: Jul 2011
    Location: ☠☠☠
    Old 12-28-2014 , 19:02   Re: File Downloads
    Reply With Quote #9

    I've added a control variable to choose what extension handles file downloads.
    ReFlexPoison is offline
    Root_
    Veteran Member
    Join Date: Jan 2012
    Location: ryssland
    Old 12-29-2014 , 06:25   Re: File Downloads
    Reply With Quote #10

    Quote:
    Originally Posted by Root_ View Post
    Please add support for SteamWorks as well because ST not working for CS:GO.
    Why no support nor reply yet?
    __________________


    dodsplugins.com - Plugins and Resources for Day of Defeat
    http://twitch.tv/zadroot
    Root_ 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 03:34.


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