AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   Download Table Statistics v1.1 (https://forums.alliedmods.net/showthread.php?t=75555)

berni 08-07-2008 18:40

Download Table Statistics v1.1
 
2 Attachment(s)
http://www.ice-gfx.com/pics/sourcemo...statistics.png


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

wing_hk 08-07-2008 20:19

Re: Download Table Statistics v1.0
 
Well....it's for server side check? or kind of download status for players?

berni 08-07-2008 20:59

Re: Download Table Statistics v1.0
 
It's for the serverside download file list, that gets sent to the players when they connect.

Greyscale 08-07-2008 22:19

Re: Download Table Statistics v1.0
 
Very nice..

bl4nk 08-07-2008 22:51

Re: Download Table Statistics v1.0
 
You should note that this won't work with sv_downloadurl.

berni 08-07-2008 23:13

Re: Download Table Statistics v1.0
 
Right, but I normally have the same files I have on my gameserver also on the downloadserver, so it's the same result.

Greyscale 08-07-2008 23:15

Re: Download Table Statistics v1.0
 
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..

berni 08-07-2008 23:36

Re: Download Table Statistics v1.0
 
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.

Greyscale 08-07-2008 23:47

Re: Download Table Statistics v1.0
 
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.

PStar 08-08-2008 00:20

Re: Download Table Statistics v1.0
 
Bzip2 makes from the origna bsp file about a 1/3 size.


All times are GMT -4. The time now is 11:42.

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