AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   sv_downloadurl For fast download (https://forums.alliedmods.net/showthread.php?t=177688)

wwzw 02-04-2012 21:52

sv_downloadurl For fast download
 
I created three web site for fast download.

I want to modify some settings, to seek help:

1: I want some file for download by the first site. Another file from the second site or the third site...
When a player ready to download files, check the file where a site to download, then change the download link...Each file to check and modify the download link.
If can not edit link in the player downloading. Can I modify the download link when a players before downloading
(After get player's IP address). Purpose is: Give different download links for different players by user's IP.

2: Server may pre-cache the new file after the server change map. Online players will not download from sv_downloadurl.
Only players to restart the game, Client may download From sv_downliadurl.
I think the reason is the client program memoryed this server. But I do not know how to change the memory

Zer0Cool 02-05-2012 04:55

Re: sv_downloadurl For fast download
 
Hmmm i dont think that this is possible.
When a server got fast dl it will download exactly the same things
as on the website even when the server isnt using one of the files
it will still download all the files in the cstrike folder
And why just not use 1 site ? You can only download one thing
at time So it will be pretty useless.

ancient1 02-05-2012 09:13

Re: sv_downloadurl For fast download
 
Interesting idea.

The problem here is you would have to hook the SV_downloadurl function built into the HL Engine.

I dont know if thats possible.

The GEO IP module would allow you to make up a list of which SV_downlaod url to use dependant on your list. If your using good quality web servers then there really wont be much improvement for speedy download, assuming your web hosts are on 100mb pipes.

But as I say you would have to interupt the normal sv_download process to do this, which I have no idea if its possible to do.

Ancient

fysiks 02-06-2012 01:15

Re: sv_downloadurl For fast download
 
It's not possible (server-side, aka this forum) to use more than one url for fast download unless all urls have ALL files.

Devil259 02-06-2012 02:43

Re: sv_downloadurl For fast download
 
http://forums.alliedmods.net/showthread.php?p=1062982

Quote:

Originally Posted by joropito (Post 1062982)
I can make a PHP script for anyone that needs an HTTP 3xx response for redirect to another server when some file is missing.


wwzw 02-06-2012 06:04

Re: sv_downloadurl For fast download
 
Thank everyone to help me!
Upstairs, put it that plug-ins I have seen. But I do not know when a player connect to the server, set the new URL address for himself OR the next player. My understanding is that the next player, it will be discomfort and my.

Devil259:
I look forward to the client program to allow HTTP 3xx agreement.
This is a new idea! I think my first question may be solved!
Because my web site using PHP processing download request, rather than a direct download.
I will be tested immediately! Thank you!


All times are GMT -4. The time now is 00:21.

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