SRCDS Steam group


Multiple sv_downloadurl
#1
I have done a forum search for this but too many responses, none with a relevant title.

I am just wondering if it is possible to use multiple sv_downloadurl entries for the same server. IE:

sv_downloadurl "http://host.one.com/cstrike"
sv_downloadurl "http://host.two.com/cstrike"

I have one host that has a maximum file limit of 500k (not maps) and one host that will not allow files with certain extensions (.lst, .csv etc...).

Therefore I have the ability to webhost all my files but spread over 2 hosts.

I am asking before trying as I do not want to impact by users unless I have to.

Thanks
Who knows where thoughts come from?

They just appear!!!
[Image: stuartjk.png]
Reply
#2
I'm afraid that's not possible, there's only one value possible, when you try to set 2 it will set to host.one.com first then it comes to the next and sets it to host.two.com

one ding you can do tho, on the host with extension limitation is to bzip all the files, that way it's a "legit" file and placable. It's faster to download, less bandwidth and space usage (bzip2 is built in the source engine, so it'll unpack on the fly and run)
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply
#3
Cheers droc. Hi again btw. Yeh thought of that but I remember something about bzip files not working from downloaduels but will try anyway
Who knows where thoughts come from?

They just appear!!!
[Image: stuartjk.png]
Reply
#4
Hi again. tried vzip, looks like free hosting sites are onto the old bz2 format. File format not allowed.

Awe well never mind. just have to can sv_downloadurl.

Unless you guys known of a free hoster that doesn;t quibble about what files you stick down (size, ext...)

Chow
Who knows where thoughts come from?

They just appear!!!
[Image: stuartjk.png]
Reply
#5
stuartjk Wrote:Hi again. tried vzip, looks like free hosting sites are onto the old bz2 format. File format not allowed.

Awe well never mind. just have to can sv_downloadurl.

Unless you guys known of a free hoster that doesn;t quibble about what files you stick down (size, ext...)

Chow

I am having the same problem. Wood this work?
filename.bz
filename.tbz2
filename.tbz

I will test this. i will let you know if it dose.
no it dos not, sorry for Posting this
Reply
#6
It's kind of possible.

I wrote a proof of concept script that had a database that contained all the files I have on my different redirects. The sv_downloadurl is set to the path of the script, the script would then redirect the users client to the appropriate redirect containing the file. I had planned on either selling the script or turning it into a redirect service were someone would pay like a buck month to use it. I abandoned the project assuming there'd be no interest it.

It's doable, and above is one way you can do it.
Manage your redirects/fast downloads with one click! SourceRSC and HL1RSC
Need a free web based game server hosting panel? Check out UGCC.
Reply
#7
i just posted code to do just this in the modifications section :S have a look, might be what your after

EDIT: ps masher, that csrsc is gold, helped me alot setting up my first sv_downloadurl, though i do it manually now days
Reply
#8
Thanks gussy, I always enjoy hearing from my users. Smile

Your php script looks good.  Now you just need a way for it update the file list from the other redirects automagically.  Wink
Manage your redirects/fast downloads with one click! SourceRSC and HL1RSC
Need a free web based game server hosting panel? Check out UGCC.
Reply
#9
yeah, the automagically i looked at using the fileexists function (cant remember the exact name), but this was just a quick proof-of-concept and hack for my server, and i felt i should share it with the community that helped me out so much setting up the server - so i didnt start getting into the really user (ie noob Toungue) friendly details, mostly, like i said, a proof-of-concept for anyone interested in how such a thing could work. (wow that was a long sentence)

i thought of a possibility of haivng one big file repositry with regularly used files, and that way users could direct some of their files there (such as quake sounds etc, or dm_biohazard for those hl2dm inclined, i have no idea what sorta files css would need) to reduce the large amount of redundant hosting. just a thought.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)