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

Multi FastDownload


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   Hawk552 (427)
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 01-21-2010 , 21:27   Multi FastDownload
Reply With Quote #1

Multi FastDownload

Description:
I made this script some time ago as a request for other user in this forum and my friend crazyeffect encouraged me to release it now.
It's intended to distribute multiple fast download servers to connecting users.

It works as round robin fashion with the configured url list.
Details:
When a client connects to the server, sv_downloadurl cvar will be changed to one of the configured fastdl servers.
Usage:
Just create the file multifastdl.ini in your configs directory and put one line for each fastdl url as you will put in sv_downloadurl cvar.

Example of multifastdl.ini contents:

You must copy all needed files in all servers to make sure clients will always use fast download.
For more information about fast download see this tutorial
Tip:
I can make a PHP script for anyone that needs an HTTP 3xx response for redirect to another server when some file is missing.
I didn't tested by it may work.
Changelog:
Quote:
v1.0
- First release
v1.1
- Improved code (thanks Nextra)
v1.2
- Fixed string length problem
Attached Files
File Type: sma Get Plugin or Get Source (multifastdl.sma - 26337 views - 986 Bytes)
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.

Last edited by joropito; 02-06-2010 at 16:57.
joropito is offline
Send a message via MSN to joropito
Zombiezzz
Veteran Member
Join Date: Nov 2009
Location: Nov 2009
Old 01-21-2010 , 21:33   Re: Multi FastDownload
Reply With Quote #2

cool
__________________
Zombiezzz is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-21-2010 , 22:08   Re: Multi FastDownload
Reply With Quote #3

You should probably mention that EVERY webserver MUST have ALL custom content files.

This will only reduce bandwidth usage and will not reduce the space required on the webserver.
__________________
fysiks is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 01-21-2010 , 22:11   Re: Multi FastDownload
Reply With Quote #4

Quote:
Originally Posted by fysiks View Post
You should probably mention that EVERY webserver MUST have ALL custom content files.

This will only reduce bandwidth usage and will not reduce the space required on the webserver.
Sure, that's why I put the link to the tutorial.

This is just a plugin to manage sv_downloadurl cvar.
Users of this plugin must learn how fastdl works.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
biscuit628
Senior Member
Join Date: Jun 2007
Location: 香港HongKong
Old 01-21-2010 , 22:37   Re: Multi FastDownload
Reply With Quote #5

i have made it b4,
and everyone said that it useless
http://forums.alliedmods.net/showthr...637#post856637
__________________
My Plugins

C4man with fun

Sniper Skill bonus
-------------------------
Sorry for my poor English!
biscuit628 is offline
#8 SickneSS
BANNED
Join Date: Sep 2008
Location: Here
Old 01-22-2010 , 07:38   Re: Multi FastDownload
Reply With Quote #6

Quote:
Originally Posted by biscuit628 View Post
i have made it b4,
and everyone said that it useless
http://forums.alliedmods.net/showthr...637#post856637
And is it,because is your plugin,but joropito ftw ;)

Joke;D

I Love it joro;)
#8 SickneSS is offline
Send a message via MSN to #8 SickneSS Send a message via Skype™ to #8 SickneSS
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 01-22-2010 , 07:50   Re: Multi FastDownload
Reply With Quote #7

Quote:
Originally Posted by biscuit628 View Post
i have made it b4,
and everyone said that it useless
http://forums.alliedmods.net/showthr...637#post856637
Yes, but the problem it was unnaproved because of bugs not solved and not for being useless.

If it's useless or not is up to each.

I think it's usefull for some situations.
I have a lot of web servers where I can host resources for fastdl so I don't have problem about traffic limits, disk space, etc.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Nextra
Veteran Member
Join Date: Apr 2008
Location: Germany
Old 01-22-2010 , 08:05   Re: Multi FastDownload
Reply With Quote #8

Hope that this one works ^^

Some suggestions:
- You can use the third parameter of equali to check http://, no need to use strcat and strtolower.
PHP Code:
if( !equalilink"http://") ) continue; 
- You don't have to return anything on client_connect
__________________
In Flames we trust!
Nextra is offline
fechu
BANNED
Join Date: Sep 2009
Location: aliedmod
Old 01-22-2010 , 08:35   Re: Multi FastDownload
Reply With Quote #9

i love joropito

niceeee
fechu is offline
Send a message via MSN to fechu Send a message via Skype™ to fechu
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 01-22-2010 , 08:53   Re: Multi FastDownload
Reply With Quote #10

Quote:
Originally Posted by Nextra View Post
Hope that this one works ^^

Some suggestions:
- You can use the third parameter of equali to check http://, no need to use strcat and strtolower.
PHP Code:
if( !equalilink"http://") ) continue; 
- You don't have to return anything on client_connect
You're right!!
Fixed.
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
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 04:20.


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