Raised This Month: $202 Target: $400
 50% 

Download Table Statistics v1.1


Post New Thread Reply   
 
Thread Tools Display Modes
Author
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Plugin ID:
495
Plugin Version:
1.1
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    29 
    Plugin Description:
    Shows statistics and missing files of the hl2 download table (for admins)
    Old 08-07-2008 , 18:40   Download Table Statistics v1.1
    Reply With Quote #1




    Plugin on Github: https://github.com/bcserv/downloadtable_statistics - Forks & Pull requests are welcome

    Description:

    This is a plugin for showing statistics and missing files of the servers download table that is sent to the players when they connect.

    You can use this to determine, how much data is getting sent to each player, on their first connect. and how long they have to wait until they have all the files.
    • missing files
    • file count in specific directory
    • total file size of a specific directory
    • total files count
    • total bzip2 files count (local)
    • total file size
    • the estimated download time for 56, 2mbit, 4mbit and 8mbit connection speed (in minutes)
    Note: This plugin can't open bzip2 files that are on a webserver (using sv_downloadurl). It can only calculate bzip2 files that are on the local server.

    Commands:

    sm_downloadtablestatistics
    sm_dts - Alias of above


    Example:

    Code:
    [SM] Displaying statistics for the download table:
    [SM] Warning: File sound/misc/sprayer.wav not found !
    [SM] Sounds (118):                    30.854 mb
    [SM] Maps (2):                      10.491 mb
    [SM] Models (0):                    0.000 mb
    [SM] Materials (0):                 0.000 mb
    [SM] Others (0):                    0.000 mb
    [SM] ------
    [SM] Total files: 121 (1 not found): 41.345 mb
    [SM] Compressed Files (bzip2): 1
    [SM] min. estimated download time: 56k: 100.80min   2mbit: 2.75min   4mbit: 1.37min   16mbit: 0.34min


    Changelog



    Date: 13.08.2008
    Version: 1.1
    • Added bzip2 support - bzip2 files are now used for calculation instead of uncomprossed file, if exists locally
    • Added compressed files count line
    • Added an alias command sm_dts because the other one seems pretty long
    Date: 08.08.2008
    Version: 1.0
    • Initial release
    Attached Files
    File Type: sp Get Plugin or Get Source (downloadtable_statistics.sp - 2016 views - 7.1 KB)

    Last edited by berni; 09-16-2013 at 10:39.
    berni is offline
    wing_hk
    Member
    Join Date: Jun 2008
    Old 08-07-2008 , 20:19   Re: Download Table Statistics v1.0
    Reply With Quote #2

    Well....it's for server side check? or kind of download status for players?
    __________________
    Tired of DM ? Let's COOP !
    wing_hk is offline
    berni
    SourceMod Plugin Approver
    Join Date: May 2007
    Location: Austria
    Old 08-07-2008 , 20:59   Re: Download Table Statistics v1.0
    Reply With Quote #3

    It's for the serverside download file list, that gets sent to the players when they connect.

    Last edited by berni; 08-07-2008 at 21:10.
    berni is offline
    Greyscale
    SourceMod Plugin Approver
    Join Date: Dec 2007
    Location: strYoMommasHouse[you];
    Old 08-07-2008 , 22:19   Re: Download Table Statistics v1.0
    Reply With Quote #4

    Very nice..
    __________________
    Greyscale is offline
    bl4nk
    SourceMod Developer
    Join Date: Jul 2007
    Old 08-07-2008 , 22:51   Re: Download Table Statistics v1.0
    Reply With Quote #5

    You should note that this won't work with sv_downloadurl.
    bl4nk is offline
    berni
    SourceMod Plugin Approver
    Join Date: May 2007
    Location: Austria
    Old 08-07-2008 , 23:13   Re: Download Table Statistics v1.0
    Reply With Quote #6

    Right, but I normally have the same files I have on my gameserver also on the downloadserver, so it's the same result.
    berni is offline
    Greyscale
    SourceMod Plugin Approver
    Join Date: Dec 2007
    Location: strYoMommasHouse[you];
    Old 08-07-2008 , 23:15   Re: Download Table Statistics v1.0
    Reply With Quote #7

    Actually don't you NEED the files from your downloadurl on the server?

    You can't load maps, sounds, models, or any type of materials from the downloadurl on the server..
    __________________
    Greyscale is offline
    berni
    SourceMod Plugin Approver
    Join Date: May 2007
    Location: Austria
    Old 08-07-2008 , 23:36   Re: Download Table Statistics v1.0
    Reply With Quote #8

    True that, but you can have them compressed as bzip2 on the webserver, for mp3 and wavs this is only minimal difference in size (as mp3s already have a compression and wav files are short) and there is only one map at a time in the download table (and the .ain which is also in the maps folder). But except the map, the size difference is minimal.
    berni is offline
    Greyscale
    SourceMod Plugin Approver
    Join Date: Dec 2007
    Location: strYoMommasHouse[you];
    Old 08-07-2008 , 23:47   Re: Download Table Statistics v1.0
    Reply With Quote #9

    Oh good point, so it's going to calculate these statistics for the files on the server, but not on the web server.

    You could probably detect the use of sv_downloadurl and compensate? Find out how much bzip really effects the file size.
    __________________
    Greyscale is offline
    PStar
    Veteran Member
    Join Date: Mar 2008
    Old 08-08-2008 , 00:20   Re: Download Table Statistics v1.0
    Reply With Quote #10

    Bzip2 makes from the origna bsp file about a 1/3 size.
    PStar 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 15:59.


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