Posts: 21
Threads: 5
Joined: Aug 2008
Reputation:
0
08-08-2008, 07:39 PM
(This post was last modified: 08-08-2008, 07:40 PM by jdmmer.)
I have read the tutorial but it dont work. I have copy a test file to my server. It's a sound.
http://www.onlinewebworld.nl/cstrike/
I have change server.cfg, I add this:
sv_downloadurl "http://www.onlinewebworld.nl/cstrike"
sv_allowdownload 1
sv_allowupload 1
net_maxfilesize 99
But when I join server my pc don't download the song.. What can i do?
Posts: 708
Threads: 69
Joined: Apr 2007
Reputation:
10
Does it attempt to download the sound?
Posts: 261
Threads: 41
Joined: May 2008
Reputation:
0
It also needs to be on the server side. Also make sure you have no settings in your CLIENT cfg that is blocking downloading.
Posts: 21
Threads: 5
Joined: Aug 2008
Reputation:
0
It doesn't attempt to download the sound. I'm sure that the file is correctly uploaded to the server.
Where can i check the client settings?
Posts: 5,178
Threads: 65
Joined: Mar 2005
Reputation:
22
If you don't enter the sv_downloadurl, does it download the sound from the server?
Posts: 80
Threads: 1
Joined: Aug 2008
Reputation:
0
Just a suggestion,
Instead of copying and pasting it, just add this to your alias in your Apache Web Server:
Code:
Alias /tf2server/maps/ /usr/local/games/tf2/orangebox/tf/maps/
Change them accordingly (paths) And within your config, just add
Code:
sv_downloadurl "http://mywebsite/tf2server/"
That worked, and solved my speed issues (From 20KB/s to 1MB/s+)
Posts: 5,178
Threads: 65
Joined: Mar 2005
Reputation:
22
The whole point of sv_downloadurl is to make everyone download fast and most importantly, NOT from the server. If you alias, it means both the webserver and the gameserver are running on the same machine, resulting in severe lag in the gameserver when someone downloads the custom maps.
Posts: 4
Threads: 1
Joined: Sep 2008
Reputation:
0
OK, mine downloads from the server instead of the website - lol
(tf2)
sv_allowupload 1
sv_allowdownload 1
net_maxfilesize 99
sv_downloadurl "http://<mywebsite>.net/Downloads/tf"
(sv_lan 0, sv_pure 2)
The website holds bzip files and i can download them from the browser.
I didn't create .res files based on peoples posts
any ideas why it would prefer the server to the website?
Posts: 482
Threads: 6
Joined: Apr 2008
Reputation:
5
09-12-2008, 05:41 PM
(This post was last modified: 09-12-2008, 07:00 PM by css.)
Sporto Wrote:sv_downloadurl "http://<mywebsite>.net/Downloads/tf"
Try adding "/" in the end. Make sure you've got those quotes around the url properly. So it is like this:
Code:
sv_downloadurl "http://<mywebsite>.net/Downloads/tf/"
For example I've got sv_downloadurl http://website.com/cstrike/, and then I've got in my .../public_html/cstrike/ subdirectories /maps/, /materials/, /sounds/ etc.
You can take a look at your web server log files when you join the server without some custom map. Then see if the query to the web server goes to the right place. For example if you see that it queries /tf2/tf2/maps/cp_mymap.bsp.bz2, then you know you've got one /tf2/ too much in your sv_downloadurl etc.
Posts: 482
Threads: 6
Joined: Apr 2008
Reputation:
5
Drocona Wrote:The whole point of sv_downloadurl is to make everyone download fast and most importantly, NOT from the server.
Wrong.
The in-game downloads are capped to some 20kb/s because of the technical implementation (or by design). That's why it's always better to use sv_downloadurl even if the web server is on the same game server machine. That way players get fast HTTP downloads with full speed instead of the capped UDP in-game transfer.
I've been thinking that it'd be killer to "steal" someone else's sv_downloadurl. The downloads are plain HTTP, so it is possible to set for example Etherreal to capture all outgoing TCP traffic, then join a server with good server with good sv_downloadurl and sniff the URL. Then use the same URL with your own server. The originating web content server administrators can't do anything because they can't tell the difference between their own players and the "stealers"
Posts: 120
Threads: 8
Joined: Jan 2007
Reputation:
0
css Wrote:The in-game downloads are capped to some 20kb/s because of the technical implementation (or by design). That's why it's always better to use sv_downloadurl even if the web server is on the same game server machine. That way players get fast HTTP downloads with full speed instead of the capped UDP in-game transfer.
I've been thinking that it'd be killer to "steal" someone else's sv_downloadurl. The downloads are plain HTTP, so it is possible to set for example Etherreal to capture all outgoing TCP traffic, then join a server with good server with good sv_downloadurl and sniff the URL. Then use the same URL with your own server. The originating web content server administrators can't do anything because they can't tell the difference between their own players and the "stealers"
You're wrong. Web content providers can tell the difference and some have scripts in place to prevent other servers from 'stealing' their sv_downloadurl. It's possible, I've done it myself.
On another note, stealing someone's sv_downloadurl is just plain wrong. Some one is paying for that service, and for you to use it without permisison is immoral. It is possible to see who is using a sv_downloadurl. Stealing someone's sv_downloadurl is not as complicated as you think and it's not killer cool.
Manage your redirects/fast downloads with one click! SourceRSC and HL1RSC
Need a free web based game server hosting panel? Check out UGCC.
Posts: 4
Threads: 1
Joined: Sep 2008
Reputation:
0
09-13-2008, 01:36 AM
(This post was last modified: 09-13-2008, 01:38 AM by Sporto.)
css Wrote:For example I've got sv_downloadurl http://website.com/cstrike/, and then I've got in my .../public_html/cstrike/ subdirectories /maps/, /materials/, /sounds/ etc.
I tried
Code:
sv_downloadurl "http://<mywebsite>.net/Downloads/tf/"
And it had the same effect (I made the url case sensitive too)
but i'll try creating subdirectories
Code:
http://<mywebsite>.net/Downloads/tf/map/
http://<mywebsite>.net/Downloads/tf/sounds/
http://<mywebsite>.net/Downloads/tf/materials/
Posts: 7,778
Threads: 176
Joined: May 2008
Reputation:
83
Just a trought, is your webspace on a Subdomain?
Posts: 482
Threads: 6
Joined: Apr 2008
Reputation:
5
Masher Wrote:Web content providers can tell the difference and some have scripts in place to prevent other servers from 'stealing' their sv_downloadurl. It's possible, I've done it myself.
How? I bet it's not simple solution or I can circumvent it.
Masher Wrote:On another note, stealing someone's sv_downloadurl is just plain wrong.
That's why it's called stealing
However, it's not my problem if server admins don't have tools to protect their content. I've got 1000 GB monthly limit on my dedicated server, so the content is not problem for me. Anyway, if someone would steal from me, I probabaly wouldn't care. If I would steal from someone, I wouldn't care. Fair enough, don't you think
Posts: 5
Threads: 1
Joined: Nov 2008
Reputation:
0
Does the bzip works on windows? I'm totally confused..
|