Server allowing www downloads doesnt work ???


(Spookstah) #1

Ive tried several ways to get it to work but it still doesnt work. Ive placed my landmine flag replacement pack here:

http://138pc222.sshunet.nl/etmain/z_mineflag.pk3

And i have put this in my server config:

set sv_dl_maxRate “50000”
set sv_allowDownload “1”
set sv_wwwDownload “1”
set sv_wwwBaseURL "http://138pc222.sshunet.nl
set sv_wwwDlDisconnected “0”

I also tried a / behind the URL and /etmain/ but when i connect with my server i dont get the z_mineflag.pk3.

Anyone who can help me out on this one.


(Wraith2k3) #2

set sv_wwwBaseURL "http://138pc222.sshunet.nl

Shouldn’t that have a " at the end?


(Spookstah) #3

it has a " , sorry bad copy/paste from my side :banana:


(SmokenStien) #4

UPDATED:

#1 just because you have a PK3 in your etmain does not mean it will download to a client. I know that with pk3 map files if you have them in rotation (meaning that they are listed in the map config that is running at the time) the client has to download them. If they are not in the map config there is no reason for them to be downloaded. This I think is your problem. Figured this out in playing around with them for day’s trying to figure out why clients had to download all the PK3 files just to play the one that was running on the serve at the time. Turns out that only the ones that are listed in the map config running at the time have to be downloaded. :clap:

#2 Is your set sv_allowdownload set to 1 in your server config?
In your game, is the GET MISSING FILES FROM SERVER set to yes?
Also in your game, is the USE HTTP/FTP set to yes?

I have tested your link and it works!!
Boils down to you have to tell the server that you want the clients to download this file.
On another note, if servers start doing this (having clients download customized files for their server) can you imagine how many files are going to build up?? :eek:

My suggestion to you is that you put a note with the link to it in your PBSV.CFG, under the PB_SV_TASK, this uses a “SAY” command that will spam it to your server and the client can then decide if they want to use it or not. :chef:

Also as an added note, your sv_dl_maxrate has an upper limit of 25000, watch the server counsel when some one connects (if you get the URL working) and you will see it won’t go over 25000. But this does not effect the URL downloads at all they will come as fast as the URL server will let it.
:drink:[/b]


(DrGratis) #5

From Jolt (the link metion in the field ops recarg bar thread)

set sv_wwwDownload “1”
set sv_wwwBaseURL “http://www.yoursite.com
set sv_wwwCheckPath “et_server/files/”

So you need to set the sv_wwwCheckPath “/etmain/”

HTH

EDIT:
Oops I just read that the file direction assumes there will be a ETMAIN folder after the checkpath…

Maybe set your checkpath to “/” stupid I know but worth a shot…


(SmokenStien) #6

Tried many versions of this and no dice. :disgust:
But others may have some luck with it!
/me shrugges and moves on…


(Spookstah) #7

@1 Its not a map but a replacement for the mine flags, the server loads it on startup so it is always loaded and i should get it automaticly ( i assume)

@2 My config allows downloads,getting missing files and use http/ftp is on, so this shouldnt be a problem eather


(Ozzie) #8

I was fooling with this the other day and noticed (when someone logged into the server), that

‘/etmain/rhine.pk3’ (in the case of the rhine map) was added to the base URL/checkpath

so if you did:

set sv_wwwDownload “1”
set sv_wwwBaseURL “http://www.yoursite.com
set sv_wwwCheckPath “et_server/files/”

you would end up with:

http://www.yoursite.com/et_server/files//etmain/rhine.pk3

notice the // before etmain, the server, Web/FTP would not like this at all, try dropping the trailing ‘/’

Ozzie


(SmokenStien) #9

That works either way, I had mine with the trailing / and it still worked. :smiley:
I’ve tried the wwwcheckpath a number of different way’s and have never had it work as Jolt say’s it should.
But who am I to say that it doesn’t, just passing on what I have tried.


(DrGratis) #10

Another stupid suggestions but try moving the files into a sub directory…

so rather than having etmain in the root directory move it down one say

/downloads/etmain

and the define the “downloads/”
maybe it needs a directory?


(davidc) #11

i have no wwwcheckpath setting, the following works fine:

set sv_allowDownload "1"                        // global toggle for both legacy download and web download
set sv_wwwDownload "1"                          // toggle to enable web download
set sv_wwwBaseURL "http://disgu.st/~david/et/"  // base URL for redirection
set sv_wwwDlDisconnected "1"                    // tell clients to perform their downloads while disconnected from the server
set sv_wwwFallbackURL ""                        // URL to send to if an http/ftp fails or is refused client side

the final url becomes http://disgu.st/~david/et/etmain/sargassov8.pk3

if this doesn’t help, check your web server access logs to see what the clients are actually requesting


(Spookstah) #12

Tried all the options you guys did recomment but still no sucess.
Did you guys try this on a Windows or a Linux/Unix server, maybe it is a Linux/Unix server problem because i dont see any requests in our logs.


(davidc) #13

You do also have the file in the ‘etmain’ directory on the server, right? Otherwise the server won’t know to tell the clients to download it.

Try copying it manually into the client’s etmain. Connect to the server, then scroll up through the console and see whether it lists that pk3 as being ‘on the pure list’.


(Spookstah) #14

Its in the pure list.

The server is loading the mineflag pk3 and 2 other custom packs, i also have those files on my client in /etmain and it works fine, but when i remove them on my client to get it from the server (2 test if it works) nothing happens :disgust:


(SmokenStien) #15

Yes it does work fine for actual MAP pk3’s that are listed in the map config file. We all know that, it’s getting modified models, or skin pk3’s to download that we are trying to do.
Your comment “THE FOLLOWING WORKS FINE” does not relate to this at all. Unless your telling us that you can get clients to down load your pk3 that you have listed in your link. Please let us know if you
DID get this to work. :drink:


(davidc) #16

sargassov9.pk3, rhine.pk3 and trainyard.pk3 are all downloaded by the client. The first one is texture and skin mods and a campaign script, the second two are maps.

None of these are listed in a server-side config file. The mapcycle.cfg just reads

set d1 "campaign cmpgn_complete ; set nextcampaign vstr d2"
set d2 "campaign cmpgn_complete ; set nextcampaign vstr d1"
etc.

I didn’t do anything special to have any of them downloaded, I assumed the server was simply telling the clients about any pk3s they were missing.

However, I did find that when I added sillyctf and kothet2 pk3s today, they were not downloaded to the client (I have no idea why). I just removed them from the campaign and from the server’s etmain directory for now.

I think there may be a bug, according to this thread, any pk3s on the server should be downloaded to the client… their being on the “pure list” for clients who already have them kinda indicates that they are present and valid on the server.


(digibob) #17

Yes it does work fine for actual MAP pk3’s that are listed in the map config file. We all know that, it’s getting modified models, or skin pk3’s to download that we are trying to do.
Your comment “THE FOLLOWING WORKS FINE” does not relate to this at all. Unless your telling us that you can get clients to down load your pk3 that you have listed in your link. Please let us know if you
DID get this to work. :drink:[/quote]

The server wont ever actually load anything from those pk3s, so as far as it is concerned, the client doesn’t need them, you’ll need to include something in them that makes the server need the pk3s. I’d suggest you do also put them in a seperate folder so that other people don’t end up using them when not on your server, as this could confuse/annoy them.