AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Multi FastDownload (https://forums.alliedmods.net/showthread.php?t=116306)

joropito 01-21-2010 21:27

Multi FastDownload
 
1 Attachment(s)
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

Zombiezzz 01-21-2010 21:33

Re: Multi FastDownload
 
cool :)

fysiks 01-21-2010 22:08

Re: Multi FastDownload
 
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.

joropito 01-21-2010 22:11

Re: Multi FastDownload
 
Quote:

Originally Posted by fysiks (Post 1063010)
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.

biscuit628 01-21-2010 22:37

Re: Multi FastDownload
 
i have made it b4,
and everyone said that it useless
http://forums.alliedmods.net/showthr...637#post856637

#8 SickneSS 01-22-2010 07:38

Re: Multi FastDownload
 
Quote:

Originally Posted by biscuit628 (Post 1063022)
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;)

joropito 01-22-2010 07:50

Re: Multi FastDownload
 
Quote:

Originally Posted by biscuit628 (Post 1063022)
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.

Nextra 01-22-2010 08:05

Re: Multi FastDownload
 
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

fechu 01-22-2010 08:35

Re: Multi FastDownload
 
i love joropito

niceeee

joropito 01-22-2010 08:53

Re: Multi FastDownload
 
Quote:

Originally Posted by Nextra (Post 1063247)
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.


All times are GMT -4. The time now is 07:19.

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